/* =====================================================================
   Gana con Kris · Masterclass de Instagram para agentes de seguros
   Sistema visual tomado de los carruseles de @ganaconkris:
   fondo fotográfico oscuro, Didone blanca en mayúsculas, una línea en
   dorado champán, sans geométrica con caja negra detrás del texto.
   ===================================================================== */

:root {
  --ink: #1a1510;        /* espresso cálido, no negro plano */
  --ink-2: #241d16;      /* superficie elevada */
  --ink-3: #33291f;      /* bordes y cajas */
  --veil: 26, 20, 14;    /* color base de los velos sobre foto y video */
  --paper: #f4efe6;      /* blanco cálido del texto */
  --paper-2: #b9b2a5;    /* texto secundario, 7.2:1 sobre --ink */
  --gold: #c9a961;       /* champán de "COMPRAS LEADS" */
  --gold-2: #e6d3a0;     /* hover */
  --gold-ink: #16130d;   /* texto sobre botón dorado, 9.8:1 */
  --error: #f0a6a6;

  --display: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;         /* un solo sistema de esquinas: casi recto */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Grano fijo, sin repaint de scroll */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Tipografía ---------- */
.display {
  /* Bodoni con tamaño óptico pequeño: los trazos finos se engrosan y se lee a cualquier edad */
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.08;
  font-variation-settings: "opsz" 12;
  margin: 0;
}

.display .gold { color: var(--gold); }

.lede {
  max-width: 34em;
  color: var(--paper-2);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--gold-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  background: var(--bg); color: var(--fg);
  font: 700 1.05rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none; border: 0; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -14px rgba(201, 169, 97, .55);
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn img { width: 22px; height: 22px; }

.btn-ghost {
  --bg: transparent; --fg: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .28);
}
.btn-ghost:hover { --bg: rgba(244, 239, 230, .06); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 239, 230, .08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .01em; text-decoration: none; line-height: 1;
}
.wordmark em { font-style: italic; color: var(--gold); }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  --hero-pb: clamp(40px, 6vh, 72px);
  position: relative;
  min-height: min(calc(100dvh - var(--nav-h)), 880px);
  display: grid; align-items: center;
  padding: clamp(28px, 4vh, 56px) 0 var(--hero-pb);
  isolation: isolate; overflow: hidden;
}

/* Kris recortada, de pie sobre la ciudad (como en sus carruseles) */
.hero-portrait {
  position: relative; margin: 0; align-self: end; justify-self: center;
  margin-bottom: calc(-1 * var(--hero-pb, 0px));
  width: min(100%, 640px);
}
.hero-portrait::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; height: 70%;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 100%, rgba(201, 169, 97, .28), transparent 70%);
}
.hero-portrait img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}
/* Foto de fondo (Londres de noche, licencia Pexels) con velo oscuro que deja legible el texto */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before, .confirm::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--veil), .88) 0%, rgba(var(--veil), .64) 42%, rgba(var(--veil), .18) 100%),
    linear-gradient(180deg, rgba(var(--veil), .10), rgba(var(--veil), .90));
}

/* Fondos por sección: foto o video con velo cálido, nunca negro plano */
.has-bg { position: relative; isolation: isolate; }
.has-bg .bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.has-bg .bg img, .has-bg .bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.has-bg .bg video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.has-bg .bg video.is-ready { opacity: 1; }
.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(201, 169, 97, .16), transparent 70%),
    linear-gradient(180deg, rgba(var(--veil), .84), rgba(var(--veil), .90) 55%, rgba(var(--veil), .96));
}
.has-bg.light-veil::before {
  background:
    radial-gradient(60% 50% at 15% 80%, rgba(201, 169, 97, .14), transparent 70%),
    linear-gradient(90deg, rgba(var(--veil), .92) 0%, rgba(var(--veil), .78) 55%, rgba(var(--veil), .55) 100%);
}
.warm {
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(201, 169, 97, .12), transparent 60%),
    linear-gradient(180deg, #2a2119 0%, #1f1913 60%, var(--ink) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}

.rule {
  width: 72px; height: 2px; background: var(--gold); margin-bottom: 26px;
  transform-origin: left;
}

.date-line {
  margin: 0 0 22px; font-size: 1.05rem; font-weight: 600; color: var(--gold);
  letter-spacing: .03em; line-height: 1.45;
}
.date-line span { display: block; color: var(--paper); font-weight: 500; letter-spacing: .01em; margin-top: 4px; font-size: 1rem; }


/* Contador en tiempo real (se oculta el día del evento) */
.countdown-hero { display: flex; align-items: center; gap: 14px; margin: -6px 0 24px; flex-wrap: wrap; }
.countdown-hero .cd-label { font-weight: 600; color: var(--gold); font-size: .95rem; margin-right: 4px; }
.countdown-hero .cd-unit { display: grid; justify-items: center; min-width: 64px; padding: 8px 10px; border: 1px solid rgba(201, 169, 97, .4); border-radius: var(--radius); background: rgba(var(--veil), .45); }
.countdown-hero b { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 12; font-size: 1.7rem; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.countdown-hero span:not(.cd-label) { font-size: .8rem; color: var(--paper-2); margin-top: 3px; text-transform: lowercase; }

.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.9rem); margin-bottom: 26px; max-width: 12.5em; text-wrap: pretty; }

.hero .lede { margin-bottom: 34px; }

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.disqualifier {
  margin: 30px 0 0; padding-left: 16px;
  border-left: 2px solid var(--gold);
  color: var(--paper); font-size: 1.05rem; line-height: 1.5; max-width: 30em;
}

/* Retrato enmarcado (sección "Quién enseña") */
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; margin: 0;
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(201, 169, 97, .22), transparent 70%),
    linear-gradient(160deg, #221e19, var(--ink-2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.portrait::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 169, 97, .45);
  border-radius: 2px; pointer-events: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.portrait.wide { aspect-ratio: auto; background: var(--ink-2); }
.portrait.wide img { aspect-ratio: 2000 / 1059; object-position: center; }
.portrait.wide::after { inset: 10px; }
.portrait figcaption { padding: 12px 16px 14px; font-size: .95rem; color: var(--paper-2); }

/* Caja negra detrás del texto: firma de sus carruseles */
.caption-box {
  display: inline; padding: .12em .4em;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .06);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Historia (agitación con las palabras de Kris) */
.story-inner { max-width: 880px; }
.story .section-title { max-width: 14em; }
.story-lines { display: grid; gap: 14px; margin: 0 0 40px; }
.story-lines p { margin: 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); line-height: 1.55; font-weight: 500; max-width: 30em; }
.story-turn { margin: 0; max-width: 40em; color: var(--paper-2); font-size: 1.05rem; padding-left: 22px; border-left: 2px solid var(--gold); }
.story-turn strong { color: var(--paper); display: block; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin: 6px 0 10px; }

/* Quién enseña */
.kris { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ig-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ig-link:hover { color: var(--gold-2); }

/* Para quién es */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.fit-col h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; color: var(--gold); }
.fit-col.no h3 { color: var(--paper-2); }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit-col li { position: relative; padding-left: 26px; color: var(--paper-2); font-size: 1.05rem; }
.fit-col li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--gold); }
.fit-col.no li::before { background: var(--paper-2); opacity: .6; }

/* Barra fija en móvil */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(244, 239, 230, .1); display: none;
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.sticky-cta.show { transform: none; }
.btn-wa { padding-inline: 26px; }
.page-gracias .confirm { position: relative; isolation: isolate; }

/* ---------- Secciones ---------- */
section { padding: clamp(64px, 8vw, 112px) 0; }
section + section { border-top: 1px solid rgba(244, 239, 230, .06); }

.section-title { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem); margin-bottom: 40px; max-width: 16em; text-wrap: balance; }

/* Lo que trabajamos: lista de enunciados, no tarjetas */
.work {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
}
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.work-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 26px 0; border-top: 1px solid rgba(244, 239, 230, .1);
}
.work-list li:last-child { border-bottom: 1px solid rgba(244, 239, 230, .1); }
.work-list .glyph {
  font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold);
  font-variation-settings: "opsz" 96; padding-top: 2px;
}
.work-list h3 { margin: 0 0 6px; font: 700 1.15rem/1.3 var(--sans); }
.work-list p { margin: 0; color: var(--paper-2); font-size: 1.05rem; max-width: 34em; }


/* Franja de cifras: la prueba social con protagonismo */
.proof-strip { padding: 0; background: linear-gradient(180deg, #2b2119, #221b15); border-top: 1px solid rgba(201, 169, 97, .35); border-bottom: 1px solid rgba(201, 169, 97, .2); }
.proof-strip ul { list-style: none; margin: 0; padding: clamp(28px, 4vw, 44px) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.proof-strip li { display: grid; gap: 6px; padding-left: 20px; border-left: 2px solid var(--gold); }
.proof-strip b { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 12; font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.6rem); line-height: 1; color: var(--gold); }
.proof-strip span { color: var(--paper); font-size: 1rem; line-height: 1.35; max-width: 16em; }

/* Statement: la frase de Kris a pantalla ancha */
.statement { text-align: left; }
.statement .display {
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5rem); max-width: 12em; line-height: 1.05;
}
.statement .display .line { display: block; }
.statement p { margin: 32px 0 0; max-width: 36em; color: var(--paper-2); }
.statement .proof {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px 56px;
}
.statement .proof div { display: grid; gap: 4px; }
.statement .proof b { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 12; font-size: 2.8rem; line-height: 1; color: var(--gold); }
.statement .proof span { color: var(--paper); font-size: 1rem; }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  border-top: 1px solid rgba(244, 239, 230, .12);
}
.faq details:last-of-type { border-bottom: 1px solid rgba(244, 239, 230, .12); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  align-items: center; padding: 24px 0; font: 600 1.15rem/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: 0 0 auto; width: 28px; height: 28px; position: relative;
  transition: transform .35s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transform: translate(-50%, -50%);
}
.faq summary .plus::before { width: 16px; height: 2px; }
.faq summary .plus::after { width: 2px; height: 16px; transition: transform .35s var(--ease); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq details[open] .answer { grid-template-rows: 1fr; }
.faq .answer > div { overflow: hidden; }
.faq .answer p { margin: 0 0 24px; color: var(--paper-2); max-width: 60ch; }

/* CTA final */
.final .wrap {
  display: grid; gap: 28px; justify-items: start;
  padding: clamp(40px, 6vw, 72px); border: 1px solid rgba(201, 169, 97, .35); border-radius: var(--radius);
  background: rgba(var(--veil), .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.final .display { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); max-width: 16em; }

/* Confirmación (paso 2) */
.confirm {
  --hero-pb: clamp(48px, 8vh, 96px);
  min-height: min(calc(100dvh - var(--nav-h)), 960px); display: grid; align-items: center;
  padding: clamp(40px, 6vh, 72px) 0 var(--hero-pb); overflow: hidden;
}
.confirm .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.confirm h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); margin-bottom: 22px; }
.confirm .warn {
  margin: 0 0 32px; padding: 20px 22px; border-left: 2px solid var(--gold);
  background: rgba(244, 239, 230, .04); max-width: 34em;
}
.confirm .when { margin-top: 28px; color: var(--paper-2); font-size: 1rem; }
.confirm .when strong { color: var(--paper); display: block; font-size: 1.05rem; }

/* Footer */
footer {
  padding: 40px 0 48px; border-top: 1px solid rgba(244, 239, 230, .08);
  color: var(--paper-2); font-size: .95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }
footer .ig { display: inline-flex; align-items: center; gap: 8px; }
footer .ig svg { width: 18px; height: 18px; opacity: .8; }
.ig-link svg { width: 18px; height: 18px; }

/* Páginas legales */
.legal { max-width: 70ch; }
.legal h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 24px; }
.legal h2 { font: 700 1.1rem/1.3 var(--sans); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--paper-2); }

/* ---------- Pop-up de registro ---------- */
.modal {
  border: 0; padding: 0; margin: auto; max-width: min(92vw, 520px); width: 100%;
  background: var(--ink-2); color: var(--paper); border-radius: var(--radius);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(244, 239, 230, .08);
  max-height: min(94dvh, 1000px); overflow: auto;
}
.modal::backdrop { background: rgba(6, 5, 4, .72); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .55s var(--ease); }
.modal[open]::backdrop { animation: fade .45s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.modal-inner { padding: clamp(24px, 4vw, 36px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
.modal .when { margin: 12px 0 0; color: var(--paper-2); font-size: 1rem; line-height: 1.5; }
.modal .when strong { color: var(--paper); font-weight: 600; }
.close {
  flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(244, 239, 230, .06); color: var(--paper); cursor: pointer;
  display: grid; place-content: center; font-size: 1.4rem; line-height: 1;
  transition: background .25s var(--ease);
}
.close:hover { background: rgba(244, 239, 230, .14); }

/* Formulario */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: .95rem; font-weight: 600; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; font: 500 1.05rem var(--sans);
  color: var(--paper); background: var(--ink); border: 1px solid rgba(244, 239, 230, .2);
  border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #8f887c; }
.field input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .22); }
.field .hint { font-size: .9rem; color: var(--paper-2); margin: 0; }
.field .err { font-size: .92rem; color: var(--error); margin: 0; display: none; }
.field.is-invalid input { border-color: var(--error); }
.field.is-invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.consent .check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .9rem; line-height: 1.5; color: var(--paper-2); font-weight: 500; }
.consent .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.consent .check a { color: var(--gold); }
.consent.is-invalid .check { color: var(--error); }
footer .wrap > span { max-width: 62ch; line-height: 1.5; }
.form-note { margin: 14px 0 0; text-align: center; font-size: .92rem; color: var(--paper-2); }
.form-error { display: none; margin: 14px 0 0; color: var(--error); font-size: .9rem; }
.form-error.show { display: block; }

/* ---------- Motion de entrada (una sola coreografía) ---------- */
.reveal > .r { opacity: 0; transform: translateY(22px); }
.reveal .rule { transform: scaleX(0); }
.ready .reveal > .r {
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.ready .reveal .rule { animation: draw .8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }

/* Revelado al hacer scroll (IntersectionObserver añade .in) */
.io { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.io.in { opacity: 1; transform: none; }
.io-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.io-stagger.in > * { opacity: 1; transform: none; }
.io-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.io-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.io-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.io-stagger.in > *:nth-child(5) { transition-delay: .32s; }

/* Las líneas doradas del statement se "encienden" una por una */
.statement .line { color: var(--paper); transition: color .6s var(--ease); }
.statement.in .line:last-child { color: var(--gold); transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-bg .bg video { display: none; }
  .reveal > .r, .reveal .rule, .io, .io-stagger > * { opacity: 1; transform: none; animation: none; transition: none; }
  .modal[open], .modal[open]::backdrop { animation: none; }
  .btn, .faq .answer, .faq summary .plus::after { transition: none; }
}

/* ---------- Responsive ---------- */
.local-time { display: block; margin-top: 6px; color: var(--paper-2); font-weight: 500; letter-spacing: 0; }
.countdown { display: block; margin-top: 8px; color: var(--gold); font-weight: 600; }

@media (min-width: 1600px) {
  :root { --max: 1480px; }
  body { font-size: 20px; }
  .hero h1 { font-size: 4.3rem; }
  .hero-portrait { width: min(100%, 720px); }
  .hero .lede { font-size: 1.35rem; max-width: 30em; }
}
@media (min-width: 1900px) {
  :root { --max: 1600px; }
  body { font-size: 21px; }
  .hero h1 { font-size: 4.7rem; max-width: 12em; }
  .hero-portrait { width: min(100%, 800px); }
  .hero .lede { font-size: 1.4rem; }
  .story-inner { max-width: 1000px; }
  .faq { max-width: 880px; }
  .section-title { font-size: 3.3rem; }
  .proof-strip b { font-size: 3.9rem; }
  .statement .display { font-size: 5.4rem; }
}

/* Tablet horizontal y laptops chicas: titular más contenido para que el botón quede a la vista */
@media (min-width: 901px) and (max-width: 1280px) {
  .hero h1 { font-size: clamp(2.1rem, 1rem + 2.5vw, 2.9rem); margin-bottom: 20px; }
  .hero .lede { font-size: 1.08rem; margin-bottom: 26px; }
  .hero { padding-top: 24px; }
  .countdown-hero { margin-bottom: 18px; }
  .hero-portrait { width: min(100%, 500px); }
}

/* Laptops con pantalla baja (1366×768, 1440×800): que el botón siempre quede a la vista */
@media (min-width: 901px) and (max-height: 820px) {
  .hero { padding-top: 20px; --hero-pb: 32px; }
  .hero h1 { font-size: clamp(2rem, 1rem + 2.3vw, 2.9rem); margin-bottom: 16px; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 22px; }
  .date-line { margin-bottom: 14px; }
  .countdown-hero { margin-bottom: 16px; }
  .countdown-hero .cd-unit { min-width: 56px; padding: 6px 8px; }
  .countdown-hero b { font-size: 1.4rem; }
  .disqualifier { margin-top: 20px; }
  .hero-portrait { width: min(100%, 520px); }
}

@media (max-width: 900px) {
  .hero .wrap, .work, .confirm .wrap, .kris { grid-template-columns: 1fr; }
  .hero-portrait { width: min(100%, 460px); justify-self: center; margin-top: 8px; }
  .confirm .hero-portrait { display: none; }
  .kris .portrait { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero h1 br, .statement br { display: none; }
  :root { --nav-h: 64px; }
  .hero { min-height: 0; padding-top: 18px; }
  .hero .rule { display: none; } /* en móvil cada píxel vertical cuenta: el CTA debe verse sin scroll */
  .countdown-hero { margin-bottom: 16px; gap: 8px; flex-wrap: nowrap; }
  .countdown-hero .cd-label { margin-right: 0; }
  .countdown-hero .cd-unit { flex: 1 1 0; min-width: 0; padding: 6px 4px; } /* 4 cajas en una sola fila en 390 px */
  .countdown-hero b { font-size: 1.4rem; }
  .date-line { margin-bottom: 12px; line-height: 1.35; }
  .hero h1 { margin-bottom: 14px; line-height: 1.04; }
  .hero .lede { margin-bottom: 20px; line-height: 1.5; }
  .disqualifier { margin-top: 22px; }
  .nav .btn { display: none; } /* la barra fija ya lleva el CTA */
  .btn { white-space: normal; text-align: center; }
  .work-list li { grid-template-columns: 44px 1fr; }
  .final .wrap { justify-items: stretch; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .fit-grid { grid-template-columns: 1fr; }
  .proof-strip ul { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 88px; }
  .hero .cta-row .btn { width: 100%; }
  .hero-portrait { width: min(100%, 340px); justify-self: end; }
  .hero-bg img { object-position: 60% 50%; }
  .has-bg .bg video { display: none; } /* en móvil solo el fotograma, sin gastar datos */
  .has-bg::before, .has-bg.light-veil::before {
    background:
      radial-gradient(70% 50% at 85% 15%, rgba(201, 169, 97, .12), transparent 70%),
      linear-gradient(180deg, rgba(var(--veil), .92), rgba(var(--veil), .95) 50%, rgba(var(--veil), .97));
  }
  .has-bg .section-title, .has-bg .lede { text-shadow: 0 2px 14px rgba(var(--veil), .9); }
}
