/* Hallmark · macrostructure: Split Studio (hero + download rows) · H9 hero knobs: build=Tier-A/B, animation=loop, scale=dominant
 * theme: custom · vibe: "forjado premium, disciplina que arde, oscuro real, cinematografico" · paper: oklch(14.7% 0.011 285) · accent: oklch(63.6% 0.178 41.5)
 * display: Space Grotesk · body: Outfit · axes: dark / geometric-sans / warm
 * studied: no · context: explicit (brand locked by docs/aura/02_AURA_FORGE_IDENTITY.md) · nav: N5 Floating pill · footer: Ft5 Statement
 * enrichment: E2 ghost video (Seedance 2.0) + E5 aura ring + E7 grain · icons: fal.ai anime set
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 * craft pass 2026-07-28: pointer hover system, scroll-morph nav, unified feature-card
 *   grid, evidence-band/footer rhythm fix, ring readiness label — reviewed by an
 *   independent code-reviewer pre-deploy (float-card overlap, ring/label mismatch,
 *   evidence-band alignment, cache-busting all fixed)
 * scroll pass 2026-07-28: nav fixed + video bleed, scroll-driven layer (@supports
 *   animation-timeline), value-strip closed grid, timeline draw, btn font-family
 *   inherit, ritmo inferior compactado
 * contrast: pass (40-41)* · nav: N5 · footer: Ft5 · slop: pass (42-45) · honest: pass (46) · chrome: pass (47)
 * tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50-57)
 * gate 28: video muted + poster + sin lazy en LCP; preload="none" es deliberado —
 *   el LCP es el poster, el mp4 solo se inyecta en desktop sin reduced-motion
 * (*known caveat: white-on-accent primary button ~3.8:1, inherited from the existing shipped
 *  brand button — flagged to user, not silently changed since it's a recognised CTA)
 */

/* tokens.css is linked separately in <head>, before this file, to avoid an
   extra blocking @import hop on a page that's meant to load instantly. */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: var(--z-modal);
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  transition: none;
}

/* ---------- background ambience (atmospheric — one warm bloom, one cool trace) ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 520px at 84% -6%, color-mix(in oklch, var(--color-accent) 20%, transparent), transparent 60%),
    radial-gradient(620px 460px at 6% 14%, color-mix(in oklch, var(--color-sleep) 12%, transparent), transparent 60%),
    var(--color-paper);
}

/* ---------- nav — N5 floating pill ---------- */
/* fixed (not sticky): the hero video sits behind it and needs to reach
   y:0 with no seam. .hero compensates the lost flow height with its own
   padding-top (see --nav-h below and the .hero rule). */
.nav-shell {
  position: fixed;
  top: var(--space-md);
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-inline: var(--page-gutter);
  pointer-events: none;
}
.site-header {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(12, 12, 18, 0.18);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: none;
  pointer-events: auto;
  transition:
    background var(--dur-long) var(--ease-out),
    border-color var(--dur-long) var(--ease-out),
    box-shadow var(--dur-long) var(--ease-out),
    backdrop-filter var(--dur-long) var(--ease-out);
}
/* Sobre el hero el pill deja pasar la energia del video; al bajar toma
   cuerpo para separarse del contenido plano de abajo. site.js alterna
   is-docked via IntersectionObserver sobre .hero. */
.site-header.is-docked {
  background: rgba(12, 12, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--nav-h);
  padding-inline: var(--space-lg) var(--space-xs);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--color-ink);
}
.brand img {
  width: 28px;
  height: 28px;
}
.main-nav {
  display: flex;
  gap: var(--space-lg);
  margin-left: var(--space-xs);
  flex: 1;
}
.main-nav a {
  position: relative;
  color: var(--color-ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-short) var(--ease-out);
}
.main-nav a:hover {
  color: var(--color-ink);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--color-accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-short) var(--ease-snap);
}
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover::after {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav a::after { transition: none; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-muted);
}
.lang-switch a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--color-ink);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--color-ink);
  width: 44px; /* touch target >=44px (era 38px) */
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
  color: var(--color-accent-ink);
  box-shadow: 0 8px 26px rgba(224, 92, 32, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(224, 92, 32, 0.42);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--color-ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--color-accent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  min-height: 38px;
}
.btn-block {
  width: 100%;
}

/* ---------- hero — Split Studio row 1 + E5 Aura-ring centerpiece ---------- */
.hero {
  /* .nav-shell is fixed (out of flow), so .hero starts at y:0 and its
     absolutely-positioned .hero-media (inset:0) reaches the top with no
     seam. This padding-top only pushes the *content* clear of the pill. */
  padding-top: calc(var(--nav-h) + var(--space-md) + var(--space-xl));
  padding-bottom: var(--space-xl);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Fondo cinematografico: el <source> lo inyecta site.js solo en viewports
   anchos sin reduced-motion ni ahorro de datos. El poster cubre el resto. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.15);
}
.hero-media__scrim {
  position: absolute;
  inset: 0;
  background:
    /* soft top darkening so the pill (now floating directly on the video,
       flush to y:0) still reads clearly against bright frames */
    linear-gradient(180deg, var(--scrim-light), transparent 18%),
    linear-gradient(90deg, var(--scrim-solid) 4%, var(--scrim-heavy) 42%, var(--scrim-light) 100%),
    linear-gradient(0deg, var(--scrim-solid) 0%, transparent 26%);
}
/* Grano: le saca el look sintetico al video. Solo el hero, sin animacion. */
.hero-media__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-2xl);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  background: var(--color-accent-dim);
  border: 1px solid rgba(224, 92, 32, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}
.hero h1 {
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.hero h1 .accent {
  color: var(--color-accent-2);
}
.hero-sub {
  color: var(--color-ink-2);
  font-size: 17.5px;
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.hero-note {
  font-size: 13px;
  color: var(--color-muted);
}
.hero-note strong {
  color: var(--color-ink-2);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* the Aura-ring artefact — Tier B hand-built SVG, one accent, one animated loop */
.aura-ring {
  position: relative;
  width: 300px;
  height: 300px;
  /* tilt 3D sutil que sigue al puntero (site.js escribe --tilt-x/y en
     punteros finos sin reduced-motion); la transition suaviza el retorno */
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms var(--ease-out);
}
/* arcos de modulo alrededor del anillo — lenguaje de instrumento (los
   mismos acentos por modulo del identity doc), no confetti: finos, con
   gaps, y suben de presencia cuando el puntero esta sobre el visual */
.aura-ring__seg {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 117 725;
  opacity: 0.5;
  transition: opacity var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-visual:hover .aura-ring__seg {
    opacity: 0.95;
  }
}
.aura-ring__glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--color-accent) 38%, transparent), transparent 70%);
  filter: blur(6px);
  animation: aura-breathe 5s var(--ease-in-out) infinite;
}
@keyframes aura-breathe {
  /* bajado un paso: con el video detras, el glow a full competia con el fondo */
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 0.82; }
}
.aura-ring svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 44px rgba(224, 92, 32, 0.35));
}
.aura-ring__track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 3.4;
}
.aura-ring__fill {
  fill: none;
  stroke: url(#auraGradient);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 754;
  stroke-dashoffset: 754;
  transform-origin: 150px 150px;
  transform: rotate(-90deg);
  animation: aura-draw 1.4s var(--ease-out) 0.5s forwards;
}
@keyframes aura-draw {
  /* 754 * (1 - 0.91) = 68: el arco debe coincidir con el 91% de Readiness
     que muestra el dato debajo, no con el 82% que quedo de un valor viejo. */
  to { stroke-dashoffset: 68; }
}
.aura-ring__emblem {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
}
.aura-ring__emblem img {
  width: 100px; /* 84 leia chico dentro del anillo de 300px; el stat de abajo ya tiene su propio bloque compacto */
  height: 100px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.aura-ring__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.aura-ring__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px; /* baja 2px para hacerle lugar al logo mas grande */
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}
.aura-ring__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 4px;
}
@media (prefers-reduced-motion: reduce) {
  /* mismo estado final que @keyframes aura-draw, no el valor inicial */
  .aura-ring__fill { animation: none; stroke-dashoffset: 68; }
  .aura-ring__glow { animation: none; }
}

.float-card {
  position: absolute;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 4;
  opacity: 0;
  animation: float-in var(--dur-long) var(--ease-out) forwards, float-bob 6s var(--ease-in-out) infinite;
  animation-delay: calc(0.7s + var(--i, 0) * 120ms), 1.2s;
}
/* cluster pegado al anillo (solapan apenas el arco), no en las esquinas
   del visual: sueltas en las esquinas leian como elementos sin relacion */
.float-card.a { top: 12%; left: 3%; }
.float-card.b { bottom: 24%; right: 1%; }
.float-card.c { bottom: 8%; left: 10%; }
@keyframes float-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; opacity: 1; }
}
.float-label {
  font-size: 10.5px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.float-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.ring-mini {
  width: 34px;
  height: 34px;
}
.float-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Filas etiquetadas en vez de tres barras sueltas: las barras solas no decian
   que macro era cual ni cuanto. --m es el color del macro en cada fila. */
.macro-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  width: 150px;
}
.macro-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.macro-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--m);
  width: 10px;
}
.macro-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}
.macro-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--m);
}
.macro-val {
  font-size: 11px;
  color: var(--color-ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}

/* ---------- module marquee — cinta infinita bajo el hero ---------- */
.marquee {
  overflow: hidden;
  padding-block: var(--space-sm);
  /* fade en los bordes: la cinta aparece/desaparece, no se corta */
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}
.marquee-group .mq-dot {
  color: var(--color-accent-2);
  letter-spacing: 0;
}
@keyframes marquee {
  /* dos grupos identicos: al llegar a -50% (menos medio gap del track) el
     segundo grupo esta exactamente donde arranco el primero — loop perfecto */
  to { transform: translateX(calc(-50% - var(--space-lg) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- value strip (replaces the 3 equal-card pillars) ---------- */
.value-strip {
  padding-block: var(--space-lg) var(--space-xl);
}
.value-strip-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  /* items estiran a la altura de la fila: el border-left ahora cierra abajo
     contra border-bottom en vez de morir a la altura del texto (quedaba
     "encerrado solo arriba"). */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-item {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-lg);
  border-left: 1px solid var(--border);
}
.value-item:first-child {
  border-left: none;
  padding-left: 0;
}
.value-item .vi-mark {
  position: relative;
  color: var(--color-accent-2);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: inline-block;
  transition: color var(--dur-short) var(--ease-snap);
}
/* numeral fantasma: contorno del acento que se rellena al hover. Detras de
   @supports porque sin text-stroke el transparent lo haria invisible */
@supports (-webkit-text-stroke: 1px red) {
  .value-item .vi-mark {
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--color-accent-2) 80%, transparent);
  }
}
.value-item .vi-mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  /* subrayado permanente (26px visual): width fijo 44 + scaleX para que el
     hover anime transform, no layout */
  width: 44px;
  transform: scaleX(0.59);
  transform-origin: left;
  background: var(--color-accent-2);
  transition: transform var(--dur-short) var(--ease-snap);
}
.value-item h3 {
  font-size: 17px;
  margin-bottom: var(--space-2xs);
}
.value-item p {
  color: var(--color-ink-2);
  font-size: 14px;
  max-width: 42ch;
}
@media (hover: hover) and (pointer: fine) {
  .value-item:hover .vi-mark {
    color: var(--color-accent-2);
    -webkit-text-stroke-color: var(--color-accent-2);
  }
  .value-item:hover .vi-mark::after { transform: scaleX(1); }
}

/* ---------- section shell ---------- */
.section {
  /* compact pass 2: el usuario seguia viendo demasiado aire entre
     secciones — xl/lg deja el ritmo apretado tipo product page */
  padding-block: var(--space-xl) var(--space-lg);
}
/* Evidencia y descarga van encadenadas: cierran el argumento y el CTA le
   sigue de inmediato. Menos aire entre ellas, mas aire antes del conjunto —
   variar el ritmo en vez de repetir el mismo salto en toda la pagina. */
#evidencia, #evidence {
  padding-block: var(--space-xl) var(--space-lg);
}
#descargar, #download {
  padding-block: var(--space-lg) var(--space-xl);
}
.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}
.section-head .eyebrow {
  margin-bottom: var(--space-md);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  margin-bottom: var(--space-sm);
}
.section-head p {
  color: var(--color-ink-2);
  font-size: 15.5px;
}

/* ---------- features — grilla pareja de 3, un solo patron de card ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  overflow: hidden;
  transition:
    transform var(--dur-short) var(--ease-out),
    background var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}
.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: var(--space-2xs);
}
.feature-card p {
  font-size: 14px;
  color: var(--color-ink-2);
  max-width: 34ch;
}
/* Luz que sigue al puntero: mismo lenguaje del hero (energia del acento)
   aplicado a la card. --mx/--my los escribe site.js en pointermove. */
@media (hover: hover) and (pointer: fine) {
  .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur-short) var(--ease-snap);
    background: radial-gradient(
      260px circle at var(--mx, 50%) var(--my, 0%),
      color-mix(in oklch, var(--card-accent, var(--color-accent)) 16%, transparent),
      transparent 60%
    );
  }
  .feature-card:hover {
    transform: translateY(var(--lift-card));
    background: var(--surface-2);
    border-color: color-mix(in srgb, var(--card-accent, var(--color-accent)) 40%, transparent);
  }
  .feature-card:hover::after {
    opacity: 1;
  }
  .feature-card:hover .feature-icon {
    transform: scale(1.06);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.5),
      0 0 30px color-mix(in srgb, var(--card-accent, var(--color-accent)) 26%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover { transform: none; }
  .feature-card:hover .feature-icon { transform: none; }
}
/* Los iconos son renders anime completos, con su fondo y su glow: se enmarcan
   en un tile redondeado en vez de recortarse, para no perder ese detalle. El
   borde toma el acento del modulo, que es el mismo --card-accent de la card. */
.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--color-accent)) 35%, transparent);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 22px color-mix(in srgb, var(--card-accent, var(--color-accent)) 14%, transparent);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* hairline de acento en el borde superior: detalle premium por card, con
   el color del modulo, sin competir con el glow del puntero */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--card-accent, var(--color-accent)) 45%, transparent),
    transparent
  );
}
/* bento: jerarquia dentro de la grilla — el core del producto (entreno)
   va ancho arriba, comunidad cierra a lo ancho en horizontal. Las cards
   anchas van en layout horizontal: con el layout de columna el texto de
   34ch dejaba media card vacia. */
.feature-card.feat-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
}
.feature-card.feat-wide .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.feature-card.feat-wide p {
  max-width: 52ch;
}
.feature-card.feat-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
}
.feature-card.feat-full .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.feature-card.feat-full p {
  max-width: 60ch;
}
/* chips de la card full-width: llenan el flanco derecho con contenido real
   (todo nombrado ya en el copy de la card), no con aire */
.feat-chips {
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
  max-width: 220px;
}
.feat-chips span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

/* ---------- hero mode — roster real + auras placeholder ---------- */
/* baraja de los 6 protagonistas — abanico tipo mano de cartas: hover/focus
   endereza y levanta la carta; click abre la carta completa con lore en el
   <dialog>. --dx/--dy/--rot vienen inline por carta. */
.hero-deck {
  position: relative;
  height: 420px;
  max-width: 960px;
  /* las esquinas de las cartas rotadas sobresalen del box: margen extra
     para que no pisen la nota de abajo */
  margin: 0 auto var(--space-xl);
}
.deck-card {
  --hero-c: var(--color-accent);
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 232px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--color-paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateX(calc(-50% + var(--dx, 0px))) translateY(var(--dy, 0px)) rotate(var(--rot, 0deg));
  transform-origin: 50% 130%;
  transition:
    transform var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}
.deck-card img {
  width: 100%;
  /* height auto: el atributo height del <img> gana sobre aspect-ratio si
     el CSS no declara height */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* anclado arriba: con cover centrado el arte de Aren perdia la cabeza */
  object-position: 50% 0;
  display: block;
}
.deck-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: var(--space-xl) var(--space-sm) var(--space-xs);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.9) 62%);
}
.deck-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.deck-epithet {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hero-c);
}
.deck-card:hover,
.deck-card:focus-visible {
  transform: translateX(calc(-50% + var(--dx, 0px))) translateY(-20px) rotate(0deg) scale(1.08);
  border-color: color-mix(in srgb, var(--hero-c) 55%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--hero-c) 30%, transparent);
  z-index: 10;
}
@media (prefers-reduced-motion: reduce) {
  .deck-card:hover,
  .deck-card:focus-visible {
    transform: translateX(calc(-50% + var(--dx, 0px))) translateY(var(--dy, 0px)) rotate(var(--rot, 0deg));
  }
}
/* la carta completa del heroe */
.hero-modal {
  width: min(720px, calc(100vw - 2 * var(--page-gutter)));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  color: var(--color-ink);
  overflow: hidden;
}
.hero-modal::backdrop {
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(4px);
}
.hero-modal[open] {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.hero-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  display: block;
}
.hero-modal__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.hero-modal__class {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero-modal__name {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-modal__epithet {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--hero-c, var(--color-accent-2));
  margin-bottom: var(--space-xs);
}
.hero-modal__lore {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-ink-2);
}
.hero-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--color-ink);
  cursor: pointer;
}
.roster-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}
.aura-subhead {
  font-size: 19px;
  margin-bottom: var(--space-3xs);
}
.aura-subcopy {
  font-size: 14px;
  color: var(--color-ink-2);
  margin-bottom: var(--space-md);
}
.aura-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.aura-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  overflow: hidden;
  transition:
    transform var(--dur-short) var(--ease-out),
    background var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}
/* orbe de energia — Tier A CSS art, placeholder del arte final del Aura */
.aura-orb {
  --aura-c: var(--color-accent);
  position: relative;
  width: 120px;
  height: 120px;
  margin: var(--space-sm) auto var(--space-md);
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    color-mix(in srgb, var(--aura-c) 62%, transparent),
    color-mix(in srgb, var(--aura-c) 16%, transparent) 58%,
    transparent 74%
  );
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--aura-c) 28%, transparent));
}
.aura-orb::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--aura-c) 38%, transparent);
}
.aura-orb::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--aura-c) 90%, transparent),
    color-mix(in srgb, var(--aura-c) 40%, transparent) 72%
  );
  filter: blur(1px);
}
.aura-card.is-active .aura-orb::after {
  animation: aura-breathe 5s var(--ease-in-out) infinite;
}
.aura-card.is-locked .aura-orb {
  filter: grayscale(0.85) opacity(0.55);
}
.aura-name {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3xs);
}
.aura-role {
  font-size: 13px;
  color: var(--color-ink-2);
  margin-bottom: var(--space-sm);
}
.aura-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--color-accent-2);
  background: var(--color-accent-dim);
  border: 1px solid rgba(224, 92, 32, 0.3);
}
.aura-card.is-locked .aura-tag {
  color: var(--color-muted);
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.aura-note {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--color-muted);
}
@media (hover: hover) and (pointer: fine) {
  .aura-card:hover {
    transform: translateY(var(--lift-card));
    background: var(--surface-2);
    border-color: color-mix(in srgb, var(--color-accent) 35%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .aura-card:hover { transform: none; }
  .aura-card.is-active .aura-orb::after { animation: none; }
}

/* ---------- how-it-works — diptych: text left, connected timeline right ---------- */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl);
  align-items: start;
}
.how-grid > * {
  min-width: 0;
}
.step-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-left: var(--space-2xl);
}
/* La linea son segmentos por step — del centro de un circulo al centro del
   siguiente — en vez de un trazo unico con top/bottom del contenedor: el
   trazo unico seguia la altura del TEXTO del ultimo paso y se pasaba del
   circulo 3. El segmento mide alto del step + gap: termina exacto en el
   centro del circulo siguiente. Centrado en x:15 (circulo de 30px) via
   translateX(-50%). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 17px);
  top: 17px;
  width: 1px;
  height: calc(100% + var(--space-xl));
  transform: translateX(-50%);
  background: var(--color-accent-2);
  opacity: 0.4;
  z-index: -1;
}
.step {
  position: relative;
}
.step .num {
  position: absolute;
  left: calc(-1 * var(--space-2xl));
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent-2);
  border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
  /* opaco (no --color-accent-dim, que es rgba con alpha .16): con la linea
     detras del circulo, el alpha dejaba ver el trazo A TRAVES del numero */
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-accent) 30%, var(--color-paper)),
    color-mix(in srgb, var(--color-accent) 8%, var(--color-paper))
  );
  box-shadow: 0 0 20px rgba(224, 92, 32, 0.18);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--dur-short) var(--ease-snap),
    color var(--dur-short) var(--ease-snap),
    transform var(--dur-short) var(--ease-snap);
}
.step h3 {
  font-size: 16.5px;
  margin-bottom: var(--space-2xs);
  transition: color var(--dur-short) var(--ease-snap);
}
.step p {
  color: var(--color-ink-2);
  font-size: 14.5px;
  max-width: 46ch;
}
@media (hover: hover) and (pointer: fine) {
  .step:hover .num {
    background: var(--color-accent);
    color: var(--color-accent-ink);
    transform: scale(1.12);
  }
  .step:hover h3 {
    color: var(--color-accent-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .step:hover .num { transform: none; }
}

/* ---------- evidence — statement band ---------- */
.evidence-band {
  /* Sin max-width propio: hereda el ancho/alineado de .container (1180px,
     margin:0 auto) como el resto de las secciones. h3 (22ch) y p (62ch)
     ya limitan la medida de lectura por su cuenta — un max-width acá
     encima ganaba la cascada sobre el de .container y lo re-centraba,
     desalineando la cita del resto de la pagina. */
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-xl);
}
.evidence-band h3 {
  position: relative;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: var(--space-sm);
  max-width: 22ch;
  text-wrap: balance;
}
/* Hanging quote editorial: comilla del tamano del heading colgando a su
   izquierda, en el margen de pagina — puntuacion tipografica intencional,
   no un glifo gigante flotando en la banda. */
.evidence-band h3::before {
  content: "\201C";
  position: absolute;
  left: -0.6em;
  top: -0.08em;
  font-size: 1.15em;
  line-height: 1;
  color: color-mix(in oklch, var(--color-accent-2) 72%, transparent);
}
.evidence-band p {
  position: relative;
  color: var(--color-ink-2);
  font-size: 15.5px;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- download — Split Studio row 2 ---------- */
.download-panel {
  background: linear-gradient(160deg, color-mix(in oklch, var(--color-accent) 12%, transparent), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-xl);
}
.download-panel h2 {
  font-size: var(--text-display-s);
  margin-bottom: var(--space-sm);
}
.download-panel > div > p {
  color: var(--color-ink-2);
  font-size: 15px;
  margin-bottom: var(--space-lg);
  max-width: 44ch;
}
.store-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}
.store-badge img {
  height: 54px;
  border-radius: 8px;
}
.store-badge {
  display: inline-block;
  transition: transform var(--dur-short) var(--ease-out);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.ios-note {
  font-size: 13px;
  color: var(--color-muted);
}

.waitlist-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-lg);
  align-self: start;
}
.waitlist-card h3 {
  font-size: 15.5px;
  margin-bottom: var(--space-3xs);
}
.waitlist-card p {
  font-size: 13px;
  color: var(--color-ink-2);
  margin-bottom: var(--space-md);
}
.waitlist-form {
  display: flex;
  gap: var(--space-xs);
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-ink);
  font-size: 14px;
  font-family: var(--font-body);
}
.waitlist-form .btn {
  min-height: 44px;
}
.waitlist-form input[type="email"]:focus-visible {
  border-color: var(--color-accent);
}
.waitlist-form label {
  position: absolute;
  left: -9999px;
}
.form-msg {
  margin-top: var(--space-xs);
  font-size: 13px;
  min-height: 18px;
}
.form-msg.ok { color: var(--color-body); }
.form-msg.err { color: var(--color-error); }
.privacy-note {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}
.privacy-note a {
  color: var(--color-ink-2);
  text-decoration: underline;
}

/* ---------- footer — Ft5 Statement ---------- */
.site-footer {
  /* sin border-top full-bleed: junto al divisor de .footer-meta (ancho de
     container) quedaban dos rayas de anchos distintos, una arriba de otra */
  padding-block: var(--space-lg) var(--space-md);
}
.footer-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 26ch;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}
.footer-statement .accent {
  color: var(--color-accent-2);
}
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
}
.footer-brand img {
  width: 20px;
  height: 20px;
}
.footer-links {
  display: flex;
  gap: var(--space-lg);
  font-size: 13px;
}
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.footer-links a:hover {
  color: var(--color-ink-2);
}

/* ---------- legal / content pages (typography only, no enrichment) ---------- */
.legal {
  /* .nav-shell es fixed: sin hero debajo que la compense, esta pagina
     necesita su propio padding-top para que el pill no tape el h1. */
  padding-top: calc(var(--nav-h) + var(--space-md) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  max-width: 760px;
}
.legal h1 {
  font-size: var(--text-display-s);
  margin-bottom: var(--space-xs);
}
.legal .updated {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: var(--space-2xl);
}
.legal h2 {
  font-size: 1.15rem;
  margin: var(--space-xl) 0 var(--space-sm);
}
.legal p, .legal li {
  color: var(--color-ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.legal ul {
  padding-left: 20px;
  margin: var(--space-xs) 0;
}
.legal a {
  color: var(--color-accent-2);
}

/* ---------- reveal-on-scroll (stagger via --i, capped ~500ms) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* tabular counters — honest illustrative UI values, not marketing claims */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- scroll-driven enhancement layer (progressive, additive) ----------
   The .reveal + IntersectionObserver system above is the universal baseline —
   it works everywhere and is untouched by anything below. Everything here only
   engages with real scroll-linked timelines AND full motion consent; browsers
   without support, or users with prefers-reduced-motion, keep the plain static
   end-state already defined by the base rules (line fully drawn, quote with no
   drift, hero video with no parallax). transform/opacity only, linear or
   token easings, no bounce. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* a. hero parallax: subtle drift + scale-down, never reveals an edge —
       .hero has overflow:hidden and the scale keeps the video oversized. */
    .hero-media video {
      animation: hero-parallax linear;
      /* both: sin fill, al salir del range el transform revierte a none y
         el fondo pega un salto de ~19px con el hero todavia en pantalla */
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }
    /* a2. capa de profundidad: el visual (anillo + cards) deriva mas lento
       que el texto al scrollear — tres planos: video, visual, contenido */
    .hero-visual {
      animation: visual-drift linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
  @supports (animation-timeline: view()) {
    /* b. the timeline line draws itself as the step column enters view —
       reuses the translateX(-50%) centering fix from the base rule, this
       just adds the scaleY grow on top of it inside the same transform. */
    /* b2. secuencia scrollytelling de los 3 pasos, atada al progreso de UNA
       sola view-timeline (el contenedor): paso 1 → linea 1-2 → paso 2 →
       linea 2-3 → paso 3, en ese orden garantizado. Con view() por elemento
       los dos segmentos entraban al viewport casi juntos y se dibujaban a
       la vez. fill both en todo: estado definido fuera de cada range. */
    .step-timeline {
      view-timeline: --steps block;
    }
    .step {
      animation: step-in linear both;
      animation-timeline: --steps;
    }
    .step:nth-child(1) { animation-range: cover 2% cover 13%; }
    .step:nth-child(2) { animation-range: cover 28% cover 39%; }
    .step:nth-child(3) { animation-range: cover 54% cover 65%; }
    .step:not(:last-child)::after {
      transform-origin: top;
      animation: line-grow linear both;
    }
    .step:nth-child(1)::after { animation-timeline: --steps; animation-range: cover 13% cover 28%; }
    .step:nth-child(2)::after { animation-timeline: --steps; animation-range: cover 39% cover 54%; }
    /* b3. cascada del value strip: 01 → 02 → 03 de izquierda a derecha,
       scrubbed con el scroll de entrada de la fila */
    .value-strip-row {
      view-timeline: --vals block;
    }
    .value-item {
      animation: step-in linear both;
      animation-timeline: --vals;
    }
    .value-item:nth-child(1) { animation-range: entry 0% entry 55%; }
    .value-item:nth-child(2) { animation-range: entry 20% entry 75%; }
    .value-item:nth-child(3) { animation-range: entry 40% entry 95%; }
  }
}
@keyframes hero-parallax {
  from { transform: translateY(-3%) scale(1.06); }
  to   { transform: translateY(3%) scale(1); }
}
@keyframes visual-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(36px); }
}
@keyframes line-grow {
  from { transform: translateX(-50%) scaleY(0); }
  to   { transform: translateX(-50%) scaleY(1); }
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 300px;
    /* acotado y centrado: a ancho completo de container las float cards
       (posicionadas a los bordes del visual) quedaban a media pantalla
       de distancia del anillo */
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
  /* con el visual sangrando del gutter, el -6% de desktop recortaba la
     card contra el overflow del hero */
  .float-card.a {
    left: 0;
  }
  /* El hibrido de 2 columnas (item 3 a lo ancho) leia mal en esta franja
     intermedia: mismo tratamiento de 1 columna que ≤45rem para todo ≤62rem. */
  .value-strip-row {
    grid-template-columns: 1fr;
  }
  .value-item {
    border-left: none;
    padding-left: 0;
  }
  .value-item:not(:first-child) {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    grid-column: auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  /* el abanico no cabe en tablet/mobile: fila nativa con scroll-snap */
  .hero-deck {
    display: flex;
    gap: var(--space-sm);
    height: auto;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2xs);
  }
  .deck-card {
    position: static;
    flex: 0 0 176px;
    scroll-snap-align: center;
    transform: none;
  }
  .deck-card:hover,
  .deck-card:focus-visible {
    transform: none;
  }
  .download-panel {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
}

/* El nav completo (brand + 4 links + idioma + CTA) necesita ~900px reales:
   el colapso a hamburguesa cubre toda la franja tablet, no solo el mobile —
   verificado a 768px, donde el pill desbordaba y los links partian en dos
   lineas. El pill compacto de 52px acompaña al colapso. */
@media (max-width: 58rem) {
  :root {
    --nav-h: 52px;
  }
  .nav-shell {
    top: var(--space-sm);
  }
  .header-row {
    gap: var(--space-sm);
    padding-inline: var(--space-md) var(--space-2xs);
  }
  .main-nav {
    position: fixed;
    top: calc(var(--nav-h) + var(--space-sm) + var(--space-sm));
    left: var(--page-gutter);
    right: var(--page-gutter);
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: none;
    gap: var(--space-3xs);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: flex;
  }
  /* en touch los chips ES/EN suben a ~44px de alto tappable; en desktop
     mantienen el tamano visual compacto porque hay puntero fino */
  .lang-switch a {
    padding-block: 13px;
  }
  .header-actions .btn-sm.desktop-only {
    display: none;
  }
  .hero {
    /* mismo calculo que la regla base pero con el gap de nav-shell mas
       chico (--space-sm) que toma el pill en este breakpoint */
    padding-top: calc(var(--nav-h) + var(--space-sm) + var(--space-xl));
  }
}

@media (max-width: 45rem) {
  /* value-strip ya queda en 1 columna desde ≤62rem (regla de arriba) */
  .features-grid {
    grid-template-columns: 1fr;
  }
  /* en 1 columna los spans crean columnas implicitas: resetear, y las
     cards horizontales vuelven a columna */
  .feature-card.feat-wide,
  .feature-card.feat-full {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-card.feat-wide .feature-icon,
  .feature-card.feat-full .feature-icon {
    margin-bottom: var(--space-md);
  }
  .feat-chips {
    margin-left: 0;
    justify-content: flex-start;
    max-width: none;
    margin-top: var(--space-sm);
  }
  .aura-grid {
    grid-template-columns: 1fr;
  }
  .hero-modal[open] {
    grid-template-columns: 1fr;
  }
  .hero-modal img {
    height: 240px;
  }
  .step-timeline {
    padding-left: var(--space-xl);
  }
  .step .num {
    left: calc(-1 * var(--space-xl));
  }
  .step:not(:last-child)::after {
    left: calc(-1 * var(--space-xl) + 17px);
  }
  .waitlist-form {
    flex-direction: column;
  }
  /* flex:1 es para el layout en fila (reparte ancho); en columna la base
     0% deja que el input se comprima verticalmente bajo sus 44px */
  .waitlist-form input[type="email"] {
    flex: none;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .aura-ring {
    width: 240px;
    height: 240px;
  }
  /* El dato de readiness suma alto al contenido centrado del anillo; en el
     aro reducido de 240px hay que achicar emblema + stat para que no
     choque con la card de macros que se apoya en el borde inferior. */
  .aura-ring__emblem img {
    width: 72px;
    height: 72px;
  }
  .aura-ring__val {
    font-size: 20px;
  }
  .float-card.a { top: 0; left: 0; }
  .float-card.c { bottom: -4%; left: 2%; }
  /* Se oculta en vez de reposicionarse: medido con getBoundingClientRect,
     el hueco real entre el fondo de .hero-visual (300px) y el inicio de
     la columna de texto (order:-1 la pone debajo) es de ~72px — la card
     de macros mide ~110px de alto, no entra sin invadir el eyebrow o la
     card .c sin importar el offset. Es contenido ilustrativo, no
     critico: Body Battery + Racha activa ya transmiten la idea. */
  .float-card.b { display: none; }
}

@media (max-width: 25rem) {
  /* .header-row compacto ya viene heredado de ≤58rem (mismos valores) */
  .brand-word {
    display: none;
  }
}
