/* ---------- Fuentes (alojadas en local) ----------
   Descarga Alegreya (400, 700) y Libre Franklin (400, 600, 700)
   desde fonts.google.com y copia los .woff2 en /fonts con estos nombres.
   Si no están, se usa Georgia / Arial como alternativa. */
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Alegreya"), local("Alegreya Regular"), url("../fonts/alegreya-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Alegreya Bold"), url("../fonts/alegreya-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Libre Franklin"), url("../fonts/libre-franklin-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Libre Franklin Bold"), url("../fonts/libre-franklin-700.woff2") format("woff2"); }

:root {
  --bg: #f4e8d3;
  --bg-nav: #fff8ee;
  --card: #faf2e2;
  --ink: #2f2923;
  --brown: #84402c;
  --brown-deep: #733a2a;
  --rust: #a64b32;
  --gold: #e8b04f;
  --green: #5c6e4c;
  --dark: #352c24;
  --line: #d9c9aa;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", Arial, Helvetica, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(90, 60, 30, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
a.plain { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px -12px rgba(90, 60, 30, .4);
}
.header-inner {
  width: min(1480px, 100% - 3rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 68px;
}
.brand {
  font-weight: 700; font-size: 1.9rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.main-nav { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: .3rem 1.25rem; }
.main-nav a { color: var(--ink); font-size: .98rem; padding: .35rem 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--rust); text-decoration: none; box-shadow: inset 0 -2px 0 var(--gold); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--brown); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { padding: 6rem 0 6.5rem; border-top: 1px solid var(--line); }
.bar { display: block; width: 80px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 4.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--brown); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 2.6rem; }
h2.no-caps { text-transform: none; }
h3 { font-size: 1.9rem; text-transform: uppercase; margin: 3.2rem 0 .6rem; }

.prose { max-width: 62rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p.tight { margin-top: 0; }
.prose p.strong { font-weight: 700; color: #7b4630; }

/* ---------- Hero ---------- */
.hero { border-top: 0; padding: 5.2rem 0 6rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.35; text-transform: uppercase; color: var(--brown-deep); margin-bottom: .4rem; letter-spacing: .01em; }
.lead { font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.5; margin: 0 0 3rem; }
.hero-quote {
  margin: 0 0 0 5.2rem; padding: 1.6rem 2.2rem;
  background: #f6e7c9; border-left: 5px solid #b0533a; border-radius: 0 16px 16px 0;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem); color: #6b3e2c;
}
.hero-art { position: relative; margin: 0; padding-bottom: 5.5rem; }
.hero-img { width: 100%; border-radius: 4px; }
.logo-min { position: absolute; left: 4.5%; bottom: 1.1rem; width: 48%; }
.logo-li { position: absolute; right: 7%; bottom: 0; width: 23.5%; }

/* ---------- Fotos ---------- */
.photo { margin: 0; }
.photo img, .frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.photo-framed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 0; box-shadow: var(--shadow); }
.photo-framed img { border-radius: 0; box-shadow: none; }
.photo-wide-left { max-width: 41rem; margin-top: 3.5rem; }
.photo-full { margin-top: 3.2rem; }
.frame { margin: 3.2rem 0 0; padding: 2rem 2rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.frame img { border-radius: 0; box-shadow: none; max-width: 1342px; margin-inline: auto; }

/* ---------- Layouts de dos columnas ---------- */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 4.5rem; align-items: center; }
.split-top { align-items: start; }
.split-text .bar + h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; margin: 3.2rem 0; }
.grid-2 .photo img { height: 100%; object-fit: cover; }

/* ---------- Tarjetas con filete dorado ---------- */
.cards { list-style: none; margin: 0 0 0 3.6rem; padding: 0; display: grid; gap: 1.5rem; }
.cards li { background: var(--card); border-left: 5px solid var(--gold); padding: 1.35rem 1.4rem 1.35rem 1.2rem; }

.note { margin: 3.5rem 0 0; padding: .2rem 0 .2rem 2rem; border-left: 5px solid var(--green); color: var(--green); max-width: 62rem; }

/* ---------- Vídeo ---------- */
.video-box {
  aspect-ratio: 926 / 694; background: var(--bg); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.video-box iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.video-box:empty::after { content: ""; display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; }
.video-form { display: flex; gap: .9rem; max-width: 62rem; margin-top: 1rem; }
.video-form input { flex: 1; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fefdf9; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.3rem;
}
input::placeholder, textarea::placeholder { color: #9aa0ac; }
button {
  font: inherit; font-weight: 700; color: #fff; background: var(--dark);
  border: 0; border-radius: 10px; padding: 1rem 1.8rem; cursor: pointer; transition: background .2s;
}
button:hover { background: #4a3d32; }
.video-form button { font-weight: 400; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4.5rem; align-items: start; }
.contact-info p { margin: 1.4rem 0; }
.contact-info .tight { margin-bottom: 1.4rem; margin-top: .6rem; }
.logo-ingravity { width: 100%; margin: 1rem 0 0; }
.contact-form {
  font-family: var(--sans); font-size: 1.05rem;
  border: 1px solid var(--line); border-radius: 26px; padding: 4.5rem 5rem 5rem;
  box-shadow: var(--shadow); min-height: 44rem;
}
.contact-form h3 { font-family: var(--serif); font-size: 1.9rem; text-transform: none; color: var(--rust); margin: 0 0 1.8rem; }
.contact-form label { display: block; font-weight: 600; margin: 1.5rem 0 .6rem; }
.contact-form textarea { resize: vertical; min-height: 11rem; }
.contact-form button { margin-top: 2.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1.2rem 0 0; font-weight: 600; min-height: 1.5rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #a02a1c; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .6rem 1.5rem 1.2rem;
    background: var(--bg-nav); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px -14px rgba(90, 60, 30, .5);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; font-size: 1.15rem; }
  .header-inner { position: relative; }
}
@media (max-width: 900px) {
  body { font-size: 1.15rem; }
  .section { padding: 4rem 0 4.5rem; }
  .bar { margin-bottom: 2.5rem; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-quote { margin-left: 0; }
  .hero-art { max-width: 28rem; margin-inline: auto; }
  .cards { margin-left: 0; }
  .photo-framed, .photo-wide-left { max-width: 30rem; }
  .contact-form { padding: 2.4rem 1.6rem 2.8rem; min-height: 0; }
  .frame { padding: 1rem; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .video-form { flex-direction: column; }
  .brand { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
