/* ============================================
   FUENTES SELF-HOSTED — generadas de Google Fonts
   ============================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Italiana';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/italiana-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Cocktail Face — v2 — Brand-faithful: matte gold + cream + warm black */

:root {
  /* Cream / sand / gold palette */
  --bone:     #F4EDE0;     /* main warm cream background */
  --bone-2:   #EBE1CE;     /* slightly deeper sand */
  --paper:    #FAF5EB;     /* lightest cream */
  --sand:     #E2D5BB;     /* deeper sand for surfaces */
  --ink:      #1E1814;     /* warm espresso */
  --ink-soft: #5B4F3F;     /* secondary text */
  --ink-mute: #6B5D4A;     /* tertiary / labels — WCAG AA 5.5:1 sobre --bone */
  --hairline: rgba(30, 24, 20, 0.16);
  --hairline-strong: rgba(30, 24, 20, 0.32);

  --gold:        #B89146;  /* matte brand gold */
  --gold-soft:   #D4B377;  /* lighter gold */
  --gold-deep:   #735926;  /* dorado para texto pequeño y hover — WCAG AA (4.5:1) sobre paper, bone, bone-2 y sand */
  --gold-tint:   rgba(184, 145, 70, 0.10);

  --black:    #0F0A07;     /* near-black */

  /* Type */
  --display: "Cormorant Garamond", "Bodoni Moda", Didot, "Times New Roman", serif;
  --display-tall: "Italiana", "Cormorant Garamond", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  /* Type scale */
  --t-mega: clamp(64px, 11vw, 200px);
  --t-h1: clamp(48px, 6.5vw, 104px);
  --t-h2: clamp(36px, 4.4vw, 72px);
  --t-h3: clamp(24px, 2.4vw, 38px);
  --t-h4: clamp(18px, 1.4vw, 22px);
  --t-body: 16px;
  --t-small: 13px;
  --t-micro: 10.5px;
  /* Titular de sección: valor canónico unificado (antes había 3 clamps casi iguales) */
  --t-section: clamp(40px, 5.4vw, 88px);
  --t-lead: 18px;   /* leads de sección y de audiencia */

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* Layout */
  --maxw: 1480px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bone); color: var(--ink); }
/* Red de seguridad: que las anclas no queden bajo el nav fijo (~93px) */
html { scroll-padding-top: 100px; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* —— Typography —— */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.0;
}
.display em, .display .it {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.display.tall { font-family: var(--display-tall); letter-spacing: 0.01em; }

.h1 { font-family: var(--display); font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.005em; font-weight: 400; margin: 0; }
.h2 { font-family: var(--display); font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.003em; font-weight: 400; margin: 0; }
.h3 { font-family: var(--display); font-size: var(--t-h3); line-height: 1.12; letter-spacing: 0; font-weight: 400; margin: 0; }
.h4 { font-family: var(--sans); font-size: var(--t-h4); font-weight: 500; letter-spacing: -0.002em; margin: 0; }
.lead {
  font-family: var(--sans);
  font-size: 18px; line-height: 1.55; font-weight: 300;
  color: var(--ink-soft); max-width: 60ch; margin: 0;
}
.body { font-size: var(--t-body); color: var(--ink-soft); margin: 0; font-weight: 300; }
.small { font-size: var(--t-small); color: var(--ink-soft); margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-micro);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
}
.eyebrow.on-dark { color: var(--gold-soft); }
.idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  /* gold-deep y no gold: a 11px sobre fondo claro, --gold se queda en 2,3:1 */
  color: var(--gold-deep);
  text-transform: uppercase;
}
.surface-ink .idx,
.surface-black .idx { color: var(--gold-soft); }

/* —— Layout —— */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
  position: relative;
  /* Al navegar por ancla (#seccion), la cabecera sticky (~90px) + el padding
     superior dejaban mucho hueco muerto. Este margen negativo hace que el
     contenido aterrice apretado bajo la cabecera, con el título completo visible. */
  scroll-margin-top: -128px;
}
.section.compact { padding-top: var(--sp-9); padding-bottom: var(--sp-9); }
.section.tight { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-5);
}

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn .arrow { font-family: var(--display); font-size: 16px; font-style: italic; letter-spacing: 0; transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.gold  { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover  { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--bone); }
.btn.on-dark { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn.on-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.linklike {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}
.linklike::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .35s ease;
}
.linklike:hover { color: var(--gold-deep); }

/* —— Tag —— */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* —— Surfaces —— */
.surface-bone2  { background: var(--bone-2); }
.surface-paper  { background: var(--paper); }
.surface-sand   { background: var(--sand); }
.surface-ink    { background: var(--ink); color: var(--bone); }
.surface-black  { background: var(--black); color: var(--bone); }
.surface-ink .eyebrow,
.surface-black .eyebrow { color: var(--gold-soft); }
.surface-ink .body,
.surface-black .body { color: #C8BBA6; }
.surface-ink .lead,
.surface-black .lead { color: #D5C9B3; }

/* —— HERO partido (vídeo vertical + texto, sobre foto muy desenfocada) —— */
.hero {
  position: relative;
  /* Ground crema cálido; termina en --bone para fundir con la sección de cifras
     (mismo color) y que la transición sea imperceptible. */
  background:
    radial-gradient(120% 92% at 78% 12%, var(--paper) 0%, var(--bone) 68%, var(--bone) 100%);
  color: var(--ink);
  padding: 48px var(--pad) 40px;
  overflow: hidden;
  /* El hero ocupa el alto de ventana MENOS la cabecera (~72px), para que al
     100% entre completo y el carrusel de marcas no asome hasta un pequeño
     scroll. Es un min-height (suelo): si el contenido es más alto, crece sin
     cortar. svh evita que la barra del navegador móvil recorte. */
  display: flex; flex-direction: column;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
}
/* Fondo: boceto grabado de barra (botánica + coctelera + copas) en sepia
   apagado. Da carácter de landing (clásico, elegante) sin recargar ni restar
   legibilidad. Va sobre el ground crema, a media opacidad. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-motif {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.42;
  /* Doble desvanecido (se multiplican con mask-composite): (1) el tercio inferior
     funde antes en el crema para dejar aire limpio entre el CTA y las cifras;
     (2) la mitad derecha se aclara para que el shaker y las ramas no compitan
     con el titular. */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 56%, transparent 86%),
    linear-gradient(to right, #000 42%, rgba(0, 0, 0, 0.30) 100%);
  mask-image:
    linear-gradient(to bottom, #000 56%, transparent 86%),
    linear-gradient(to right, #000 42%, rgba(0, 0, 0, 0.30) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  /* Ocupa todo el alto del hero y centra el contenido (distribución equilibrada),
     sin alturas fijas que puedan cortar. */
  flex: 1;
  align-content: center;
}
.hero-media { justify-self: start; }
.hero-video {
  display: block;
  width: auto;
  height: min(600px, 66vh);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 3px;
  background: var(--black);
  box-shadow: 0 20px 56px rgba(15, 10, 7, 0.30);
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text .eyebrow { font-size: 12.5px; letter-spacing: 0.26em; color: var(--gold-deep); }
.hero-title {
  font-size: clamp(50px, 6.4vw, 116px);
  margin: 0;
  max-width: 14ch;
  color: var(--ink);
  line-height: 0.96;
  text-wrap: balance;
}
.hero-title em { color: var(--gold-deep); font-style: italic; }
.hero-lead {
  font-family: var(--sans);
  font-size: 18px; line-height: 1.6; font-weight: 300;
  color: var(--ink-soft);
  margin: 0; max-width: 48ch;
}
/* Lead corto solo para móvil (se activa en el breakpoint). */
.hero-lead--m { display: none; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-jumps {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-jumps a { color: var(--gold-deep); text-decoration: none; transition: color .25s ease; }
.hero-jumps a:hover { color: var(--ink); }
.hero-jumps .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
/* Tablet vertical (iPad ~768): mantiene las DOS columnas como escritorio, a
   escala menor (vídeo y titular algo más pequeños). En horizontal (>900) ya usa
   el diseño de escritorio completo. */
@media (min-width: 721px) and (max-width: 900px) {
  .hero-inner { gap: 40px; }
  .hero-video { height: min(460px, 56vh); }
  .hero-title { font-size: clamp(44px, 6vw, 76px); }
  /* En vertical el boceto apaisado, centrado, enseñaría su centro vacío. Mostramos
     la franja derecha (ramas + coctelera) para que se vea la trama. */
  .hero-motif { object-position: right center; opacity: 0.3; }
}
/* Móvil: una columna, vídeo centrado, boceto muy tenue en el lateral. */
@media (max-width: 720px) {
  .hero { padding: 28px var(--pad) 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;              /* vídeo cerca del CTA, con un respiro cómodo */
    min-height: 0;
    text-align: left;
  }
  .hero-media { order: 2; }
  .hero-video { height: auto; width: min(340px, 86%); margin: 0 auto; }
  .hero-text { order: 1; gap: 16px; }
  /* Tamaño ajustado para que "Cócteles de autor" quepa en una línea -> 2 líneas. */
  .hero-title { font-size: clamp(30px, 9vw, 44px); max-width: none; line-height: 1.05; }
  /* Eyebrow en UNA línea (ocultamos el sufijo largo). */
  .hero-text .eb-extra { display: none; }
  /* Lead: usar el corto de móvil, ocultar el largo de escritorio. */
  .hero-lead--d { display: none; }
  .hero-lead--m { display: block; font-size: 16px; }
  /* Fuera la línea Bodas · Eventos: tras el CTA va directo el vídeo. */
  .hero-jumps { display: none; }
  /* CTA centrado (alineado con el vídeo, que va centrado) y algo más pequeño. */
  .hero-actions { align-items: center; }
  .hero-actions .btn { padding: 13px 22px; font-size: 11px; }
  /* El bloque de texto NO estira: se queda arriba y el vídeo asoma reproduciéndose. */
  .hero-inner { align-content: start; }
  /* Boceto muy tenue y sólo en el lateral/esquina derecha: se desvanece hacia el
     centro (zona del texto) para que ramas/copas no crucen las letras. */
  .hero-motif {
    object-fit: cover; object-position: right center; opacity: 0.14;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 62%);
    mask-image: linear-gradient(to left, #000 20%, transparent 62%);
  }
}

/* —— Photo —— */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: 2px;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.photo:hover img { transform: scale(1.03); }
.photo.duotone img {
  filter: contrast(1.02) saturate(1.06);
}

.photo-caption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}

/* —— Nav —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 237, 224, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  max-width: var(--maxw); margin: 0 auto;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  line-height: 1;
}
.nav-logo img {
  height: 38px; width: auto;
}
.nav-logo .sub {
  font-size: 11px; letter-spacing: 0.32em; color: var(--ink-mute);
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--hairline);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 11px; color: var(--ink); text-decoration: none;
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.nav-links a:hover { color: var(--gold-deep); }
/* Piezas del menú móvil a pantalla completa: ocultas en escritorio. */
.menu-head, .menu-foot, .menu-deco, .nav-links .mi, .nav-links .mc { display: none; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-5); }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-logo .sub { display: none; }
}

/* —— Ticker —— */
.ticker-wrap { padding-top: 6px; }
.ticker-wrap > .container { margin-bottom: 22px; }
.ticker-wrap .eyebrow { display: block; }
.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--paper);
  padding: 22px 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 70s linear infinite;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-style: italic;
  color: var(--ink);
}
/* Marcas que han confiado en la marca (prueba social en movimiento). Se detiene
   con prefers-reduced-motion: una marquesina infinita marea a quien tiene
   sensibilidad al movimiento. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.ticker-track span { display: inline-flex; align-items: center; }
.ticker-track .sep { color: var(--gold); padding: 0 clamp(24px, 2.2vw, 46px); font-size: 0.5em; font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* —— Reveal —— */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* —— Form —— */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.field label {
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: #FCF8EE;
}

/* —— Modal —— */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 10, 7, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: stretch; justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(640px, 100%);
  background: var(--bone);
  height: 100%;
  overflow-y: auto;
  transform: translateX(40px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.modal-backdrop.open .modal { transform: none; }

/* —— FAQ —— */
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  cursor: pointer; user-select: none;
  color: var(--ink);
  gap: 16px;
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .5s ease, margin-top .4s ease, opacity .4s ease;
  color: var(--ink-soft); max-width: 65ch;
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 16px; opacity: 1; }
.faq-item .plus {
  font-family: var(--display);
  font-size: 32px; color: var(--gold);
  font-style: italic;
  transition: transform .4s ease;
  line-height: 1;
}
.faq-item.open .plus { transform: rotate(45deg); }

/* —— Selection / misc —— */
::selection { background: var(--gold); color: var(--bone); }

/* —— Ornament hairline —— */
.orn {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold);
  font-family: var(--display); font-style: italic;
}
.orn::before, .orn::after {
  content: ""; height: 1px; background: var(--gold); width: 32px;
}

/* —— Range styling —— */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--hairline-strong);
  outline: none; border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bone);
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bone); cursor: pointer;
}

/* ====================================================================
   NAV — burger + mobile drawer
   ==================================================================== */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; z-index: 110;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}
.nav-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger--open span:nth-child(2) { opacity: 0; }
.nav-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-phone, .nav-links-cta { display: none; }
body.nav-locked { overflow: hidden; }
/* Con el menú a pantalla completa abierto: ocultar la bola flotante de WhatsApp
   y la hamburguesa (dejamos solo la X limpia del propio menú). */
body.nav-locked .wa-float { display: none !important; }
body.nav-locked .nav-burger { display: none; }
/* En móvil la bola de WhatsApp NO aparece en la primera pantalla (hero);
   surge al hacer scroll (clase .scrolled la añade el JS). En escritorio,
   siempre visible (esta regla solo aplica en móvil). */
@media (max-width: 900px) {
  .wa-float { opacity: 0; pointer-events: none; transform: scale(0.85); transition: opacity .3s ease, transform .3s ease; }
  body.scrolled .wa-float { opacity: 1; pointer-events: auto; transform: none; }
}
.nav-phone { white-space: nowrap; font-size: 11px; }

/* ====================================================================
   RESPONSIVE — mobile-first overrides
   ==================================================================== */
/* 980px, no 900px: los enlaces del nav se ocultan a partir de 980px (arriba),
   así que si el burger no aparecía hasta 900px la web se quedaba sin ningún
   menú en la franja 901–980px — justo la de una tablet apaisada o una ventana
   de portátil a media pantalla. Los dos breakpoints tienen que coincidir. */
@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  /* —— Menú móvil a pantalla completa (estilo sidebar de marca) —— */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%; height: 100dvh;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0 0 24px;
    z-index: 100;
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links--open { display: flex; opacity: 1; pointer-events: auto; transform: none; }

  /* Cabecera: logo + cerrar */
  .menu-head {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 30px 24px 10px;
  }
  .menu-logo { height: 34px; width: auto; }
  .menu-close {
    position: absolute; right: 18px; top: 24px;
    background: none; border: 0; color: var(--ink);
    padding: 8px; line-height: 0; cursor: pointer;
  }

  /* Filas de enlace: icono + etiqueta + chevron, con línea divisoria */
  .nav-links a {
    display: flex; align-items: center; gap: 16px;
    width: min(430px, 82%); margin: 0 auto;
    padding: 15px 2px;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--sans);
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    min-height: 44px;
  }
  .nav-links a:first-of-type { border-top: 1px solid var(--hairline); }
  .nav-links a:hover .ml, .nav-links a:active .ml { color: var(--gold-deep); }
  .nav-links .mi { display: block; width: 28px; height: 28px; object-fit: contain; flex: none; }
  .nav-links .ml { flex: 1; transition: color .25s ease; }
  .nav-links .mc { display: block; color: var(--gold-deep); font-size: 22px; font-weight: 400; }

  /* Pie: teléfono, CTA, WhatsApp, tagline */
  .menu-foot {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px;
    padding: 30px 24px 8px;
    position: relative; z-index: 2;
    text-align: center;
  }
  .menu-phone { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; width: min(340px, 82%); margin: 0 auto; justify-content: center; }
  .menu-phone-ico { width: 26px; height: 26px; object-fit: contain; flex: none; }
  .menu-phone-t { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--mono); font-size: 18px; letter-spacing: 0.04em; line-height: 1.1; }
  .menu-phone-t small { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 3px; }
  .menu-cta { width: min(340px, 82%); justify-content: center; align-items: center; gap: 10px; display: inline-flex; font-size: 15px !important; letter-spacing: 0.16em; }
  .menu-cta-wa { width: 22px; height: 22px; object-fit: contain; flex: none; }
  .menu-wa { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); text-decoration: none; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
  .menu-wa svg { color: var(--gold-deep); flex: none; }
  .menu-tag {
    width: min(300px, 74%); margin: 8px auto 0; padding-top: 18px;
    border-top: 1px solid var(--hairline);
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold-deep); line-height: 1.9;
  }

  /* Decoración botánica en las esquinas inferiores */
  .menu-deco { display: block; position: absolute; bottom: 0; z-index: 0; height: auto; pointer-events: none; opacity: 0.5; }
  .menu-deco-l { left: 0; width: min(150px, 38%); }
  .menu-deco-r { right: 0; width: min(180px, 44%); }
}

@media (max-width: 767px) {
  :root {
    --t-small: 14px;
    --t-micro: 12px;
    --pad: 20px;
  }

  /* Espaciado de secciones más compacto */
  .section { padding-top: 64px; padding-bottom: 64px; scroll-margin-top: -46px; }
  .section.compact { padding-top: 56px; padding-bottom: 56px; }
  .section.tight { padding-top: 48px; padding-bottom: 48px; }


  /* Modal a pantalla completa */
  .modal {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .modal-backdrop { padding: 0 !important; align-items: stretch !important; }
  .modal-header { padding: 18px 20px !important; }
  .modal-progress { padding: 14px 20px !important; }
  .modal-body { padding: 18px 20px 24px !important; }
  .modal-footer { padding: 14px 20px !important; }
  .modal .contact-grid { grid-template-columns: 1fr !important; }

  /* Inputs: 16px mínimo para evitar zoom iOS */
  input, textarea, select { font-size: 16px !important; }

  /* Touch targets mínimos */
  .btn, .nav-links a, button[aria-label] { min-height: 44px; }

  /* Colapsar layouts a una columna donde aplique */
  .audience-split,
  .designer-layout,
  .pricing-cards,
  .process-grid,
  .cases-grid,
  .testimonials-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Ticker — asegurar no provoque scroll lateral */
  .ticker { width: 100%; overflow: hidden; }
  /* En móvil la letra es más pequeña -> la pista es más corta y con la misma
     duración se ve lento. Acortamos la duración para igualar la velocidad. */
  .ticker-track { animation-duration: 20s; }
}

@media (max-width: 400px) {
  /* Galaxy S23 y pantallas estrechas */
  .nav-logo img { height: 30px; }
  .hero-title { font-size: clamp(40px, 12vw, 64px) !important; }
  .modal .choice-grid { grid-template-columns: 1fr !important; }
}

/* ====================================================================
   PÁGINAS LEGALES — Aviso Legal, Privacidad, Cookies
   ==================================================================== */
.legal-page {
  background: var(--bone);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
}
.legal-page .legal-nav {
  border-bottom: 1px solid var(--hairline);
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.legal-page .legal-nav a {
  text-decoration: none;
  color: var(--ink);
}
.legal-page .legal-nav .back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.legal-page .legal-nav .back:hover { color: var(--ink); }
.legal-page .legal-nav img { height: 28px; width: auto; }

.legal-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad) clamp(80px, 12vw, 160px);
}
.legal-page .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.legal-page h1 {
  font-family: var(--display-tall);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.legal-page .legal-lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 56px;
  font-weight: 300;
  max-width: 60ch;
}
.legal-page h2 {
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
  color: var(--gold-deep);
  margin: 48px 0 16px;
  font-weight: 400;
  line-height: 1.2;
}
.legal-page h2 .num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-right: 10px;
  vertical-align: middle;
}
.legal-page h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 28px 0 8px;
  color: var(--ink);
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.legal-page p { margin: 0 0 14px; }
.legal-page ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal-page li { margin-bottom: 6px; }
.legal-page strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-page .placeholder {
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  padding: 1px 8px;
  border-radius: 2px;
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.legal-page .legal-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-page .legal-foot {
  border-top: 1px solid var(--hairline);
  padding: 24px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-page .legal-foot a {
  color: var(--gold-deep);
  text-decoration: none;
}
.legal-page .legal-foot a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .legal-page main { padding-top: 48px; padding-bottom: 80px; }
  .legal-page h1 { font-size: 38px; }
  .legal-page h2 { font-size: 22px; }
  .legal-page .legal-foot { flex-direction: column; gap: 8px; }
}
