/* ═══════════════════════════════════════════════════════════════════════════
   COLEGIO DIGITAL CRYPTO — LANDING
   ═══════════════════════════════════════════════════════════════════════════
   Sistema visual replicado 1:1 de la plantilla de referencia.
   Todos los valores provienen de getComputedStyle() sobre el sitio original,
   no de estimaciones a ojo.

   Fuentes e imágenes se sirven LOCALMENTE desde /public/assets/landing/ —
   la landing no depende de ningún CDN externo.

   Índice
     01. Fuentes (@font-face locales)
     02. Tokens de diseño
     03. Reset y base
     04. Tipografía
     05. Layout / contenedores
     06. Botones y píldoras
     07. Navbar (cambio claro/oscuro por scroll)
     08. Utilidades de animación
     09. Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   01. FUENTES
   ─────────────────────────────────────────────────────────────────────────── */

/* Inter Display — familia de titulares. El diseño solo usa 400/500/600
   (verificado recorriendo el DOM del original). */
@font-face {
  font-family: 'Inter Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-400-normal-0949a8.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-400-italic-9344b5.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-500-normal-727f74.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-500-italic-8e72f6.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-600-normal-15d783.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: italic; font-weight: 600; font-display: swap;
  src: url('/public/assets/landing/fonts/InterDisplay-600-italic-19cc4d.woff2') format('woff2');
}

/* Inter — cuerpo de texto e interfaz */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/assets/landing/fonts/Inter-400-normal-4eab01.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/assets/landing/fonts/Inter-600-normal-3c0d87.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/assets/landing/fonts/Inter-700-normal-e75bc0.woff2') format('woff2');
}

/* Havana — solo para el logotipo grande del footer */
@font-face {
  font-family: 'Havana';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/assets/landing/fonts/Havana-400-normal-b0b6e7.woff') format('woff');
}

/* Fragment Mono — cifras y etiquetas monoespaciadas */
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/assets/landing/fonts/FragmentMono-400-normal-5fe3cf.woff2') format('woff2');
}

/* ───────────────────────────────────────────────────────────────────────────
   02. TOKENS DE DISEÑO — valores exactos del sitio de referencia
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Color ──────────────────────────────────────────────────────────────
     Gris azulado casi negro (#242426) sobre lienzos blanco y azul-humo, con
     un lima eléctrico como único acento saturado. */
  --ink:            #242426;
  --ink-90:         rgba(36, 36, 38, 0.9);
  --ink-75:         rgba(36, 36, 38, 0.75);  /* texto secundario — el más usado */
  --ink-50:         rgba(36, 36, 38, 0.5);
  --ink-25:         rgba(36, 36, 38, 0.25);
  --ink-10:         rgba(36, 36, 38, 0.1);
  --ink-06:         rgba(36, 36, 38, 0.06);

  --surface:        #35363B;   /* tarjetas oscuras */
  --surface-soft:   #4D4F57;   /* botones oscuros / superficies elevadas */

  --canvas:         #FFFFFF;
  --canvas-alt:     #EBEFF5;   /* azul humo: hero, CTA y footer */

  /* ── Acento: azul marino premium ────────────────────────────────────────
     Ojo al cambiar este bloque: el acento es un color OSCURO, así que el
     texto que va encima es blanco (--accent-ink). Sobre superficies oscuras
     el marino se pierde, por eso existe --accent-bright: mismo azul pero
     luminoso, para usarlo SOLO sobre fondos oscuros. */
  --accent:         #103C7A;   /* marino profundo — botones, píldoras, tarjetas */
  --accent-ink:     #FFFFFF;   /* texto sobre el marino */
  --accent-hover:   #0C2E60;   /* un punto más oscuro al pasar el ratón */
  --accent-bright:  #7FB0FF;   /* azul luminoso — SOLO sobre fondo oscuro */
  --accent-soft:    #E9F0FC;   /* lavado pálido — fondos y realces suaves */

  /* Tintes de las tarjetas de testimonios */
  --tint-peach:      #E0C5B6;
  --tint-peach-soft: #FAE9E6;
  --tint-blue:       #B8DEFF;
  --tint-slate:      #A5B2CF;

  --white-92: rgba(255, 255, 255, 0.92);
  --white-75: rgba(255, 255, 255, 0.75);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-12: rgba(255, 255, 255, 0.12);

  /* ── Tipografía ─────────────────────────────────────────────────────────
     Los titulares van en peso 400 con tracking negativo agresivo: es la firma
     visual del diseño. Subirlos a 600 los rompe. */
  --font-display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand:   'Havana', var(--font-display);

  --fs-h1:   88px;  --lh-h1:   110px;   --ls-h1:   -3.52px;
  --fs-h2:   56px;  --lh-h2:   67.2px;  --ls-h2:   -2.24px;
  --fs-h3:   36px;  --lh-h3:   45px;    --ls-h3:   -1.08px;
  --fs-h4:   32px;  --lh-h4:   46.4px;  --ls-h4:   -0.96px;
  --fs-h5:   24px;  --lh-h5:   33.6px;  --ls-h5:   -0.72px;
  --fs-lead: 18px;  --lh-lead: 27px;    --ls-lead: -0.18px;
  --fs-body: 16px;  --lh-body: 24px;
  --fs-sm:   14px;  --lh-sm:   21px;
  --fs-xs:   12px;  --lh-xs:   18px;

  /* ── Espaciado ──────────────────────────────────────────────────────────*/
  --container:     1200px;
  --gutter:        24px;
  --section-pad-y: 120px;

  /* ── Radios ─────────────────────────────────────────────────────────────*/
  --r-sm: 12px;  --r-md: 16px;  --r-lg: 20px;
  --r-xl: 28px;  --r-2xl: 40px; --r-pill: 999px;

  /* ── Sombras ────────────────────────────────────────────────────────────*/
  --shadow-card:  0 1px 2px rgba(36, 36, 38, 0.04), 0 8px 24px -12px rgba(36, 36, 38, 0.12);
  --shadow-float: 0 18px 50px -18px rgba(36, 36, 38, 0.28);
  --shadow-nav:   0 8px 32px -12px rgba(36, 36, 38, 0.18);

  /* ── Movimiento — curva del original: entradas suaves, sin rebote ───────*/
  --ease:     cubic-bezier(0.44, 0, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur:      320ms;
  --dur-slow: 620ms;
}

/* ───────────────────────────────────────────────────────────────────────────
   03. RESET Y BASE
   ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* El scroll suave lo gestiona Lenis por JS; si no carga, el JS activa
     `.no-smooth-scroll` como fallback nativo. */
  scroll-behavior: auto;
  /* El corte lateral TIENE que estar también aquí. Con `overflow-x: hidden`
     solo en <body>, el desbordamiento se propaga a <html> y la barra
     horizontal aparece igual — es el fallo clásico de este patrón.
     Usamos `clip` en vez de `hidden` porque `hidden` convierte al elemento en
     contenedor de scroll y rompería los `position: sticky` de dentro
     (la columna del FAQ, por ejemplo). */
  overflow-x: clip;
}
html.no-smooth-scroll { scroll-behavior: smooth; }

body.lv {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Navegadores sin soporte de `clip` (Safari < 16): `hidden` es peor pero
   sigue evitando el desplazamiento lateral. */
@supports not (overflow-x: clip) {
  html, body.lv { overflow-x: hidden; }
}

/* Lenis: mientras el scroll suave está activo el body no debe tener su propio
   scroll nativo, o los dos compiten y el movimiento se siente roto. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Salto al contenido para lectores de pantalla y teclado.
   Se oculta encogiéndolo a 1px en su sitio, NO con `left:-9999px`: esa técnica
   ensancha el lienzo y provocaba desplazamiento lateral en móvil. */
.lv-skip {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 0 0 var(--r-sm) 0;
}
.lv-skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
}

/* ───────────────────────────────────────────────────────────────────────────
   04. TIPOGRAFÍA
   ─────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;           /* el diseño NO usa negritas en titulares */
  color: var(--ink);
  text-wrap: balance;
}

.lv-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.lv-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.lv-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.lv-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.lv-h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); }

p { margin: 0; }

.lv-lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead);
  color: var(--ink-75);
  text-wrap: pretty;
}
.lv-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
.lv-sm   { font-size: var(--fs-sm);   line-height: var(--lh-sm);   color: var(--ink-75); }
.lv-xs   { font-size: var(--fs-xs);   line-height: var(--lh-xs);   color: var(--ink-50); }

.lv-mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.02em; }

/* Etiqueta sobre los titulares ("Programa de educación", "Planes"…) */
.lv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-sm); line-height: var(--lh-sm);
  color: var(--ink-75);
}
.lv-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
/* Sobre fondo oscuro el marino no se ve: se usa el azul luminoso */
.on-dark .lv-eyebrow::before,
.lv-bento .lv-eyebrow::before { background: var(--accent-bright); }

/* Variantes sobre fondo oscuro */
.on-dark { color: #fff; }
.on-dark .lv-h1, .on-dark .lv-h2, .on-dark .lv-h3,
.on-dark .lv-h4, .on-dark .lv-h5 { color: #fff; }
.on-dark .lv-lead, .on-dark .lv-body,
.on-dark .lv-sm, .on-dark .lv-eyebrow { color: var(--white-75); }
.on-dark .lv-xs { color: var(--white-50); }

/* ───────────────────────────────────────────────────────────────────────────
   05. LAYOUT
   ─────────────────────────────────────────────────────────────────────────── */
.lv-container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}

.lv-section { position: relative; padding-block: var(--section-pad-y); }
.lv-section--tight { padding-block: 80px; }
.lv-section--flush-top { padding-top: 0; }

.lv-canvas-alt { background: var(--canvas-alt); }
.lv-canvas-ink { background: var(--ink); }

/* Cabecera de sección: eyebrow + titular + bajada */
.lv-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
  max-width: 720px; margin-inline: auto;
}
.lv-head--left { align-items: flex-start; text-align: left; margin-inline: 0; }

/* Rejilla utilitaria */
.lv-grid { display: grid; gap: 24px; }
.lv-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lv-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ───────────────────────────────────────────────────────────────────────────
   06. BOTONES — radios reales: 12px (nav), 16px (estándar), 20px (grande)
   ─────────────────────────────────────────────────────────────────────────── */
.lv-btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 24px;
  border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lv-btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.lv-btn:active { transform: translateY(0); }

.lv-btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.lv-btn--accent:hover { --btn-bg: var(--accent-hover); }
.lv-btn--light  { --btn-bg: #fff; --btn-fg: var(--ink); }
.lv-btn--light:hover { --btn-bg: #F4F6FA; }
.lv-btn--soft   { --btn-bg: var(--surface-soft); --btn-fg: #fff; }
.lv-btn--soft:hover { --btn-bg: var(--surface); }
.lv-btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-10); }
.lv-btn--ghost:hover { --btn-bg: var(--ink-06); box-shadow: inset 0 0 0 1px var(--ink-25); }

/* Secundario: acceso de usuarios que ya tienen cuenta. Lleva el azul de la
   marca sobre un lavado pálido, así se lee como acción importante sin competir
   con el CTA principal (que es el marino sólido). */
.lv-btn--secondary {
  --btn-bg: var(--accent-soft);
  --btn-fg: var(--accent);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(16, 60, 122, 0.16);
}
.lv-btn--secondary:hover {
  --btn-bg: #DCE7F9;
  box-shadow: inset 0 0 0 1px rgba(16, 60, 122, 0.3);
}

.lv-btn--lg { height: 56px; padding-inline: 28px; border-radius: var(--r-lg); font-size: var(--fs-body); }
.lv-btn--sm { height: 40px; padding-inline: 18px; border-radius: var(--r-sm); font-size: var(--fs-xs); }

/* Píldora informativa ("Recomendado", "USDT BEP20"…) */
.lv-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding-inline: 12px;
  border-radius: var(--r-pill);
  background: var(--ink-06); color: var(--ink-75);
  font-family: var(--font-display); font-size: var(--fs-xs); line-height: 1;
}
.lv-pill--accent { background: var(--accent); color: var(--accent-ink); }
.lv-pill--dark   { background: var(--ink); color: #fff; }
/* Dentro de una tarjeta oscura, el marino contra el casi-negro no contrasta:
   se usa el azul luminoso con texto oscuro. */
.is-dark .lv-pill--accent { background: var(--accent-bright); color: var(--ink); }
.lv-pill--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-10); }

/* ───────────────────────────────────────────────────────────────────────────
   07. NAVBAR
   Comportamiento verificado en el original:
     · 56px arriba del todo → 64px al hacer scroll
     · el botón principal pasa de blanco a gris oscuro dentro de la franja de
       secciones oscuras, y vuelve a blanco al salir
   El cambio de tema lo dispara un IntersectionObserver sobre centinelas
   `.lv-nav-trigger`, igual que el original — no un umbral de píxeles fijo.
   ─────────────────────────────────────────────────────────────────────────── */
.lv-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; height: 56px;
  transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.lv-nav.is-scrolled {
  height: 64px;
  background: var(--white-92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-nav);
}

.lv-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* El logotipo es una imagen que YA incluye el texto de la marca (700×247),
   así que no se le acompaña de ningún <span> con el nombre: se duplicaría.
   Se dimensiona por altura y el ancho se deduce del ratio. */
.lv-nav__brand { display: inline-flex; align-items: center; }
/* 42px de alto: el logotipo lleva el nombre incrustado, así que por debajo de
   ~38px el texto deja de leerse. La marca del original era solo un símbolo y
   podía ir mucho más pequeña. */
.lv-nav__brand img {
  height: 42px; width: auto;
  object-fit: contain;
  transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.lv-nav__brand:hover img { opacity: .78; }

/* Sobre fondo oscuro el logotipo se invierte para no perderse */
.lv-nav.is-dark .lv-nav__brand img { filter: brightness(0) invert(1); }

.lv-nav__links { display: flex; align-items: center; gap: 28px; }
.lv-nav__link {
  font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-75);
  transition: color var(--dur-fast) var(--ease);
}
.lv-nav__link:hover { color: var(--ink); }

.lv-nav__actions { display: flex; align-items: center; gap: 12px; }

/* Estado "oscuro": el nav flota sobre secciones de fondo oscuro */
.lv-nav.is-dark .lv-nav__brand { color: #fff; }
.lv-nav.is-dark .lv-nav__link  { color: var(--white-75); }
.lv-nav.is-dark .lv-nav__link:hover { color: #fff; }
.lv-nav.is-dark.is-scrolled {
  background: rgba(36, 36, 38, 0.72);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.5);
}
.lv-nav.is-dark .lv-btn--light { --btn-bg: var(--surface-soft); --btn-fg: #fff; }
.lv-nav.is-dark .lv-btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
/* Sobre franja oscura el lavado pálido cegaría: pasa a un velo blanco */
.lv-nav.is-dark .lv-btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.13);
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.lv-nav.is-dark .lv-btn--secondary:hover { --btn-bg: rgba(255, 255, 255, 0.22); }
.lv-nav.is-dark .lv-nav__burger { color: #fff; }

/* Centinelas invisibles que marcan dónde empieza y termina la franja oscura.
   Misma altura (450px) que en el original. */
.lv-nav-trigger {
  position: absolute; inset-inline: 0; height: 450px;
  pointer-events: none; visibility: hidden;
}

/* Hamburguesa (solo móvil) */
.lv-nav__burger {
  display: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--ink);
}
.lv-nav__burger i {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative; transition: background-color var(--dur-fast) var(--ease);
}
.lv-nav__burger i::before,
.lv-nav__burger i::after {
  content: ''; position: absolute; inset-inline-start: 0;
  width: 18px; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.lv-nav__burger i::before { top: -6px; }
.lv-nav__burger i::after  { top: 6px; }
.lv-nav__burger[aria-expanded='true'] i { background: transparent; }
.lv-nav__burger[aria-expanded='true'] i::before { top: 0; transform: rotate(45deg); }
.lv-nav__burger[aria-expanded='true'] i::after  { top: 0; transform: rotate(-45deg); }

/* ── Menú móvil: panel-tarjeta flotante ──────────────────────────────────
   No ocupa toda la pantalla: es una tarjeta blanca con margen a los lados y
   esquinas redondeadas, que deja ver la foto del hero por debajo. */
.lv-nav__mobile {
  position: fixed; inset: 0; z-index: 120;
  padding: 12px;
  background: transparent;
}
.lv-nav__mobile[hidden] { display: none; }

.lv-nav__panel {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 20px 32px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 26px 70px -24px rgba(36, 36, 38, .3);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.lv-nav__mobile.is-open .lv-nav__panel { transform: none; opacity: 1; }

.lv-nav__panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.lv-nav__panel-hd img { height: 40px; width: auto; object-fit: contain; }
.lv-nav__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-inline-end: -6px;
  border-radius: 50%; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease);
}
.lv-nav__close:hover { background: var(--ink-06); }
.lv-nav__close svg { width: 22px; height: 22px; }

/* Enlaces centrados y bien espaciados, como en la referencia */
.lv-nav__panel-links {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; margin: 34px 0 30px;
}
.lv-nav__panel-links a {
  display: block; padding: 15px 8px;
  font-family: var(--font-display); font-size: 17px; line-height: 1.3;
  color: var(--ink-75);
  transition: color var(--dur-fast) var(--ease);
}
.lv-nav__panel-links a:hover,
.lv-nav__panel-links a:focus-visible { color: var(--ink); }

/* Las dos acciones del panel, apiladas y a ancho completo */
.lv-nav__panel-actions {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%;
}
.lv-nav__panel-actions .lv-btn,
.lv-nav__panel-actions .lv-cta-pill { width: 100%; justify-content: center; }
/* El disco de la píldora se ancla a la izquierda aunque el texto vaya centrado */
.lv-nav__panel-cta { position: relative; padding-inline: 5px; }
.lv-nav__panel-cta .lv-cta-pill__ic { position: absolute; inset-inline-start: 5px; }

/* ───────────────────────────────────────────────────────────────────────────
   08. UTILIDADES DE ANIMACIÓN
   ─────────────────────────────────────────────────────────────────────────── */

/* Entrada al viewport. El JS añade `.is-in` vía IntersectionObserver.
   `--d` escalona hijos sin escribir una regla por elemento. */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='fade']  { transform: none; }
[data-reveal='left']  { transform: translateX(-28px); }
[data-reveal='right'] { transform: translateX(28px); }
[data-reveal='scale'] { transform: scale(0.96); }

/* Las cabeceras de sección suben desde más abajo (48px) que las tarjetas
   (24px). Es la misma diferencia que hace el original y da la sensación de
   que el bloque de título "pesa" más al entrar. */
.lv-head[data-reveal] { transform: translateY(48px); }
.lv-head[data-reveal].is-in { transform: none; }

/* Escalonado interno de la cabecera: eyebrow → titular → bajada → botones */
.lv-head.is-in > *  { animation: lv-rise var(--dur-slow) var(--ease-out) both; }
.lv-head.is-in > *:nth-child(1) { animation-delay: 40ms; }
.lv-head.is-in > *:nth-child(2) { animation-delay: 110ms; }
.lv-head.is-in > *:nth-child(3) { animation-delay: 180ms; }
.lv-head.is-in > *:nth-child(4) { animation-delay: 250ms; }
@keyframes lv-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Cinta infinita de logos */
.lv-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lv-marquee__track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: lv-marquee var(--marquee-dur, 38s) linear infinite;
}
.lv-marquee:hover .lv-marquee__track { animation-play-state: paused; }
@keyframes lv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Degradado que difumina el borde inferior del hero sobre el lienzo */
.lv-fade-bottom {
  position: absolute; inset-inline: 0; inset-block-end: 0; height: 379px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--canvas) 82%);
  pointer-events: none;
}

/* Respeto por quien pide menos movimiento: se apaga TODO el motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .lv-marquee__track { animation: none; }
}

/* ───────────────────────────────────────────────────────────────────────────
   09. RESPONSIVE — cortes del original: 1200 / 810 / 600
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --fs-h1: 68px; --lh-h1: 76px; --ls-h1: -2.72px;
    --fs-h2: 46px; --lh-h2: 55px; --ls-h2: -1.84px;
    --fs-h3: 30px; --lh-h3: 38px; --ls-h3: -0.9px;
    --fs-h4: 26px; --lh-h4: 36px; --ls-h4: -0.78px;
    --section-pad-y: 96px;
  }
}

@media (max-width: 810px) {
  :root {
    --fs-h1: 48px; --lh-h1: 54px; --ls-h1: -1.92px;
    --fs-h2: 36px; --lh-h2: 43px; --ls-h2: -1.44px;
    --fs-h3: 26px; --lh-h3: 33px; --ls-h3: -0.78px;
    --fs-h4: 22px; --lh-h4: 31px; --ls-h4: -0.66px;
    --fs-lead: 16px; --lh-lead: 25px;
    --section-pad-y: 72px;
    --gutter: 20px;
  }
  /* En móvil la barra queda con solo dos elementos: logotipo y hamburguesa.
     Los accesos («Ingresar», «Crear cuenta») viven dentro del panel, igual
     que en la referencia — meterlos aquí apretaba la barra. */
  .lv-nav__links  { display: none; }
  .lv-nav__burger { display: inline-flex; }
  .lv-nav__actions .lv-btn--ghost,
  .lv-nav__actions .lv-cta-pill { display: none; }
  .lv-grid--2, .lv-grid--3, .lv-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root {
    --fs-h1: 38px; --lh-h1: 44px; --ls-h1: -1.52px;
    --fs-h2: 30px; --lh-h2: 37px; --ls-h2: -1.2px;
    --section-pad-y: 60px;
    --gutter: 16px;
  }
  .lv-btn { height: 46px; padding-inline: 20px; }
  .lv-btn--lg { height: 52px; padding-inline: 24px; }
}
