/* ═══════════════════════════════════════════════════════════════
   KAIZEN GYM · Landing v3 — base
   Tema único: oscuro grafito. Acento único: naranja #FF4401.
   (La única excepción de color es la carta de la barra: ahí el
   color de cada bebida es el argumento. Ver css/recorrido.css.)
   Radios: contenedores 16px · interactivos pill · inputs 10px ·
   hanko 6px (marca, no UI).
   Tipografía display: Bahnschrift condensada (variable local).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #131216;
  --bg-2: #1a1920;
  --bg-3: #211f28;
  --ink: #f5f3ef;
  --muted: #a5a09a;
  --accent: #ff4401;
  --accent-dim: #cc3701;
  --glass-border: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-input: 10px;
  --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-jp: "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: 4vw; /* diagonal seam between full-bleed bands */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

/* Cualquier `display` propio le gana al display:none que el navegador
   aplica a [hidden]. Se restituye una vez, aquí, para toda la página. */
[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Tipografía ─────────────────────────────────────────────── */

h1, h2, h3, .display-xl {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

.display-xl { font-size: clamp(2.6rem, 7vw, 5.5rem); }

.accent { color: var(--accent); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 46ch;
  margin-top: 1.1rem;
}

.body-sm { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }

.eyebrow {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
}

.fuente {
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #7d7973;
}

/* ── Layout ─────────────────────────────────────────────────── */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }

/* Kanji fantasma de sección, con deriva por scroll donde el
   navegador soporte scroll-driven animations. */
.section-kanji {
  position: absolute;
  right: -6%;
  top: 8%;
  width: min(38vw, 520px);
  opacity: 0.05;
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift {
      animation: drift linear both;
      animation-timeline: view();
    }
    @keyframes drift {
      from { transform: translateY(9%) rotate(-1.5deg); }
      to   { transform: translateY(-9%) rotate(1.5deg); }
    }
  }
}

/* ── Glass (streak especular + doble borde + luz interior) ───── */

.glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.07)),
    rgba(26, 25, 32, 0.38);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(26px) saturate(160%) brightness(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(160%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.glass::before {
  /* specular streak */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.02) 52%, transparent 60%);
  pointer-events: none;
}

.glass::after {
  /* inner edge refraction */
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.glass > * { position: relative; z-index: 1; }

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Escenario detrás de paneles glass: el vidrio solo se lee si hay
   algo con color y textura detrás que difuminar. */
.price-stage, .form-stage { position: relative; }

.stage-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 62% 38%, rgba(255, 68, 1, 0.38), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.stage-kanji {
  position: absolute;
  right: -9%;
  top: -13%;
  width: 64%;
  opacity: 0.55;
  filter: blur(2px) saturate(1.2);
  pointer-events: none;
}

/* ── Hanko (sello de marca) ─────────────────────────────────── */

.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 5px;
  background: var(--accent);
  border-radius: 6px;
  flex: none;
}

.hanko img {
  filter: brightness(0) invert(1);
  width: 100%;
}

/* ── Texto vertical japonés ─────────────────────────────────── */

/* A la derecha: el canto izquierdo lo ocupan las coordenadas del HUD. */
.vertical-jp {
  position: absolute;
  right: 6rem;
  bottom: 5rem;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  color: var(--muted);
  opacity: 0.55;
}

@media (max-width: 1100px) { .vertical-jp { display: none; } }

/* ── Escala térmica (instrumento) ───────────────────────────── */

.thermal-scale {
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.thermal-scale span {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  font-size: 0.8rem;
  color: rgba(245, 243, 239, 0.7);
}

.thermal-scale i {
  width: 6px;
  height: 34vh;
  border-radius: 3px;
  background: linear-gradient(180deg,
    #fffdfe 0%, #ffba84 14%, #ff7622 30%, #ff4401 46%,
    #d63701 60%, #8c2201 76%, #4a1302 88%, #0a0605 100%);
  box-shadow: 0 0 14px rgba(255, 68, 1, 0.35);
}

.thermal-scale-sm {
  right: auto;
  left: 1.1rem;
  top: 1.4rem;
  transform: none;
  gap: 0.3rem;
}

.thermal-scale-sm i { height: 22vh; max-height: 190px; width: 5px; }
.thermal-scale-sm span { font-size: 0.66rem; }

/* ── HUD: la página se lee como un instrumento ──────────────── */

.hud {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.hud-bracket {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hud-tl { top: 84px; left: 18px; border-right: 0; border-bottom: 0; }
.hud-tr { top: 84px; right: 18px; border-left: 0; border-bottom: 0; }
.hud-bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hud-br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

/* Vertical, pegado al canto izquierdo: fuera del ancho de contenido,
   así nunca choca con la planta del recorrido ni con el copy. */
.hud-coords {
  position: absolute;
  left: 22px;
  bottom: 58px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(245, 243, 239, 0.38);
}

.rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(255, 68, 1, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .rec-dot { animation: rec-blink 2.4s ease-in-out infinite; }
  @keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
}

@media (max-width: 1000px) { .hud { display: none; } }

/* ── Riel de progreso térmico (a la derecha, siempre) ───────── */

.progress-rail {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

/* Dentro del recorrido el instrumento de progreso es la planta
   horizontal, no el riel: se apaga para no encimarse a las zonas. */
body.en-recorrido .progress-rail { opacity: 0; }

/* El riel flota sobre bandas full-bleed: sin esta cortina se pierde
   encima de una foto clara. */
.progress-rail::before {
  content: "";
  position: absolute;
  inset: -1.4rem -1.2rem;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(10, 9, 12, 0.6) 45%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.rail-label {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: rgba(245, 243, 239, 0.55);
  transition: color 0.3s;
}

.rail-tube {
  position: relative;
  width: 5px;
  height: 30vh;
  min-height: 160px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  overflow: visible;
}

.rail-fill {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0%;
  border-radius: 3px;
  background: linear-gradient(180deg,
    #fffdfe 0%, #ffba84 16%, #ff7622 34%, #ff4401 55%, #d63701 78%, #8c2201 100%);
  box-shadow: 0 0 14px rgba(255, 68, 1, 0.45);
}

.rail-mark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px; height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 68, 1, 0.8);
}

.rail-pct {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(245, 243, 239, 0.45);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) { .progress-rail { display: none; } }

/* ── Cursor térmico ─────────────────────────────────────────── */

.thermal-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 122, 34, 0.16) 0%,
    rgba(255, 68, 1, 0.09) 32%,
    rgba(255, 68, 1, 0.03) 55%,
    transparent 72%);
  transition: opacity 0.6s ease;
  will-change: transform;
}

.thermal-cursor.is-on { opacity: 1; }

@media (hover: none), (pointer: coarse) { .thermal-cursor { display: none; } }

/* ── Botones (pill) ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #131216;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 68, 1, 0.35);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(19, 18, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; text-align: center; }

/* Botón magnético: se inclina hacia el cursor (--mx/--my en px) */
.magnetic {
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.35s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.magnetic:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }

/* ── Nav ────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(19, 18, 22, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(26, 25, 32, 0.78);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

/* 44px de alto mínimo: es el área táctil, no el tamaño del logo. */
.nav-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-brand img { height: 34px; width: auto; }

.nav-links { display: flex; gap: clamp(0.9rem, 1.8vw, 1.8rem); }

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-current::after { right: 0; }
.nav-links a.is-current { color: var(--ink); }

.btn-nav { padding: 0.6rem 1.4rem; font-size: 0.8rem; }

/* Hamburguesa (móvil) */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-burger span:nth-child(1) { top: 18px; }
.nav-burger span:nth-child(2) { top: 24px; }

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* `display:flex` le gana al display:none del UA para [hidden]:
   hay que apagarlo explícitamente o el cajón se ve en escritorio. */
.nav-drawer[hidden] { display: none; }

.nav-drawer {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
  background: rgba(19, 18, 22, 0.94);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-drawer a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 80;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .btn-nav { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: center right;
  background: var(--bg-2);
}

/* El zoom usa la propiedad `scale` (no `transform`) para que el
   parallax pueda escribir `transform` sin que la animación lo gane. */
.js .hero-img { animation: hero-zoom 22s var(--ease-out) both; }

@keyframes hero-zoom {
  from { scale: 1.12; }
  to   { scale: 1; }
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 18, 22, 0.94) 0%, rgba(19, 18, 22, 0.62) 44%, rgba(19, 18, 22, 0.12) 75%),
    linear-gradient(0deg, rgba(19, 18, 22, 0.9) 0%, transparent 30%);
}

/* brasas: polvo de magnesio encendido subiendo */
.hero-embers { position: absolute; inset: 0; pointer-events: none; }

.hero-embers i {
  position: absolute;
  bottom: -2%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(255, 68, 1, 0.55);
  opacity: 0;
  animation: ember-rise 11s linear infinite;
}

.hero-embers i:nth-child(1) { left: 58%; animation-delay: 0s;   animation-duration: 12s; }
.hero-embers i:nth-child(2) { left: 66%; animation-delay: 2.2s; animation-duration: 10s; width: 3px; height: 3px; }
.hero-embers i:nth-child(3) { left: 74%; animation-delay: 4.5s; animation-duration: 14s; }
.hero-embers i:nth-child(4) { left: 81%; animation-delay: 1.3s; animation-duration: 9s;  width: 3px; height: 3px; }
.hero-embers i:nth-child(5) { left: 88%; animation-delay: 6s;   animation-duration: 12s; }
.hero-embers i:nth-child(6) { left: 71%; animation-delay: 8.4s; animation-duration: 11s; width: 5px; height: 5px; }
.hero-embers i:nth-child(7) { left: 93%; animation-delay: 3.4s; animation-duration: 13s; width: 3px; height: 3px; }
.hero-embers i:nth-child(8) { left: 62%; animation-delay: 5.6s; animation-duration: 10s; }
.hero-embers i:nth-child(9) { left: 84%; animation-delay: 7.2s; animation-duration: 15s; width: 3px; height: 3px; }

@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.9; }
  60%  { opacity: 0.5; }
  100% { transform: translateY(-88vh) translateX(3vw); opacity: 0; }
}

.hero-kanji-ghost {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(52vw, 640px);
  opacity: 0.09;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px clamp(1.25rem, 5vw, 4.5rem) 3rem;
  max-width: 820px;
}

.hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero-wordmark {
  width: min(500px, 80vw);
  margin: 1.5rem 0 1.7rem;
  filter: drop-shadow(0 0 30px rgba(255, 68, 1, 0.22));
}

.hero-headline {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  max-width: 44ch;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.js .hero-content > * {
  animation: rise 0.9s var(--ease-out) both;
}

.js .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.js .hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.js .hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.js .hero-content > *:nth-child(4) { animation-delay: 0.46s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.scroll-cue span {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.6rem;
  color: rgba(245, 243, 239, 0.5);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 68, 1, 0.9), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes cue {
    0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
    45%      { transform: scaleY(1);    opacity: 1; }
  }
}

@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ── El censo (adversarial) ─────────────────────────────────── */

.censo {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(6rem, 11vw, 9rem);
}

.censo-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.censo-content { position: relative; z-index: 1; }

.censo-number {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 75;
  font-size: clamp(7rem, 22vw, 19rem);
  line-height: 0.85;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 0 70px rgba(255, 68, 1, 0.35);
}

.censo-title { margin-top: 0.6rem; }

.censo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  max-width: 760px;
  margin-top: 2.6rem;
}

.censo-grid span {
  width: 9px; height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transform: rotate(45deg);
  flex: none;
}

.censo-grid span.is-kaizen {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px 3px rgba(255, 68, 1, 0.65);
}

@media (prefers-reduced-motion: no-preference) {
  .censo-grid span.is-kaizen { animation: kaizen-pulse 2.2s ease-in-out infinite; }
}

@keyframes kaizen-pulse {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(255, 68, 1, 0.55); }
  50%      { box-shadow: 0 0 20px 6px rgba(255, 68, 1, 0.9); }
}

.censo-caption { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.censo-claim {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.05;
}

/* ── Interrupción naranja ───────────────────────────────────── */

.interrupcion {
  background: var(--accent);
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.interrupcion-kanji {
  width: min(46vw, 540px);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .interrupcion-kanji {
      animation: kanji-grow linear both;
      animation-timeline: view();
    }
    @keyframes kanji-grow {
      from { transform: scale(0.82); }
      to   { transform: scale(1.1); }
    }
  }
}

/* ── Marquee (banda divisoria) ──────────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(19, 18, 22, 0.72);
  padding: 0.9rem 0;
}

.marquee-band { background: var(--bg-2); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
}

.js .marquee-track { animation: marquee 26s linear infinite; }

.marquee-track span {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track img { height: 22px; width: auto; opacity: 0.9; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Precios ────────────────────────────────────────────────── */

.precios { background: var(--bg); overflow: hidden; }

.precios-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.precios-copy .eyebrow { margin-bottom: 0.9rem; }

.persona-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.chip {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); }

.chip.is-active {
  color: #131216;
  background: var(--accent);
  border-color: var(--accent);
}

.price-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  overflow: hidden;
}

.tilt {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.card-kanji {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 55%;
  opacity: 0.06;
  pointer-events: none;
}

.plan-name {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.plan-price {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 75;
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.plan-price .currency { font-size: 0.45em; vertical-align: 0.7em; margin-right: 0.08em; }
.plan-price .per { font-size: 0.3em; margin-left: 0.12em; color: var(--muted); font-variation-settings: "wght" 500, "wdth" 82; }

/* ── Precio por definir ─────────────────────────────────────── */
/* Tres ranuras con el ancho de una cifra: la tarjeta conserva su
   forma y se lee "todavía no está", no "se nos olvidó". */

.precio-mask {
  display: inline-flex;
  gap: 0.1em;
  vertical-align: -0.03em;
}

.precio-mask i {
  display: block;
  position: relative;
  width: 0.46em;
  height: 0.74em;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .precio-mask i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 22%, rgba(255, 68, 1, 0.6) 50%, transparent 78%);
    transform: translateX(-130%);
    animation: mask-sweep 2.8s var(--ease-out) infinite;
  }
  .precio-mask i:nth-child(2)::after { animation-delay: 0.14s; }
  .precio-mask i:nth-child(3)::after { animation-delay: 0.28s; }

  @keyframes mask-sweep {
    0%        { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
  }
}

.plan-badge { display: none; }

.precios-ocultos .plan-badge {
  display: inline-block;
  margin: -0.15rem 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 68, 1, 0.42);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.plan-desc { color: var(--muted); min-height: 3.2em; }

.plan-feats { list-style: none; margin-top: 1.2rem; }

.plan-feats li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
}

.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 14px; height: 3px;
  background: var(--accent);
}

.plan-note {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
}

.price-card.is-morphing .plan-name,
.price-card.is-morphing .plan-desc,
.price-card.is-morphing .plan-feats { opacity: 0; transform: translateY(8px); }

.plan-name, .plan-desc, .plan-feats {
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

@media (max-width: 900px) {
  .precios-grid { grid-template-columns: 1fr; }
  .stage-kanji { right: -4%; top: -9%; width: 52%; }
}

/* ── Píldoras de estación (HYROX, dentro de la cápsula) ─────── */

.station-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.station-pills li {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(19, 18, 22, 0.45);
}

/* ── Lista de accesibilidad ─────────────────────────────────── */

.access-list { list-style: none; }

.access-list li {
  font-size: 0.88rem;
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--muted);
}

.access-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.9em;
  width: 12px; height: 3px;
  background: var(--accent);
}

/* ── Entrenadores ───────────────────────────────────────────── */

.entrenadores { background: var(--bg); overflow: hidden; }

.entrenadores .eyebrow { margin-bottom: 0.9rem; }

.entrenadores .section-kanji { right: auto; left: -8%; top: auto; bottom: 4%; }

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 3.2rem;
}

.trainer-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--bg-2);
  padding: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.trainer-card:hover { transform: translateY(-4px); }

.trainer-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.trainer-base {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  z-index: 1;
}

.trainer-base .card-kanji {
  right: -18%; top: -8%; bottom: auto;
  width: 70%;
}

.trainer-name {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.05;
  color: var(--ink);
}

.trainer-role {
  color: var(--accent);
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.trainer-hint {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  align-self: flex-start;
  transition: opacity 0.3s;
}

.trainer-photo {
  position: absolute; inset: 0;
  z-index: 2;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.6s var(--ease-out);
}

.trainer-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}

.trainer-photo .trainer-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.1rem;
  font-size: 0.72rem;
  color: rgba(245, 243, 239, 0.75);
  background: rgba(19, 18, 22, 0.6);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trainer-card.is-revealed .trainer-photo { clip-path: inset(0 0 0 0); }

.trainer-card.is-revealed {
  box-shadow: 0 20px 50px rgba(255, 68, 1, 0.22);
  border-color: rgba(255, 68, 1, 0.45);
}

.trainer-card.is-revealed .trainer-hint { opacity: 0; }

/* línea de escaneo térmico al revelar */
@media (prefers-reduced-motion: no-preference) {
  .trainer-card.is-revealed .trainer-photo::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: rgba(255, 253, 254, 0.9);
    box-shadow: 0 0 18px 5px rgba(255, 68, 1, 0.8);
    animation: scan 0.85s var(--ease-out) forwards;
  }
  @keyframes scan {
    from { top: 0; opacity: 1; }
    to   { top: 100%; opacity: 0; }
  }
}

@media (max-width: 720px) {
  .trainer-grid { grid-template-columns: 1fr; }
}

/* ── Ubicación ──────────────────────────────────────────────── */

.ubicacion {
  background: var(--bg-2);
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  position: relative;
  overflow: hidden;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ubicacion-copy .eyebrow { margin-bottom: 0.9rem; }
.ubicacion-copy .btn { margin-top: 1.8rem; }

.dato-list { margin-top: 2rem; display: grid; gap: 0.9rem; }

.dato-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dato-list dt {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--muted);
  padding-top: 0.25rem;
}

.dato-list dd { font-size: 0.98rem; }

.mapa-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 660px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0a0605;
}

.mapa-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.mapa-img.is-active { opacity: 1; transform: scale(1); }

.mapa-pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fffdfe;
  box-shadow: 0 0 0 3px rgba(255, 68, 1, 0.9), 0 0 26px 8px rgba(255, 68, 1, 0.7);
}

.mapa-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 68, 1, 0.55);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s, width 0.9s var(--ease-out);
}

.mapa.is-wide .mapa-ring { opacity: 1; width: 52%; }

.mapa-cross {
  position: absolute;
  background: rgba(255, 253, 254, 0.22);
}

.mapa-cross-h { left: 50%; top: 50%; width: 100%; height: 1px; transform: translate(-50%, -50%); }
.mapa-cross-v { left: 50%; top: 50%; width: 1px; height: 100%; transform: translate(-50%, -50%); }

@media (prefers-reduced-motion: no-preference) {
  .mapa-pin::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 68, 1, 0.8);
    animation: ping 2.6s ease-out infinite;
  }
  @keyframes ping {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(3.4); opacity: 0; }
  }
}

.mapa-toggle { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.mapa .fuente { margin-top: 1rem; }

@media (max-width: 900px) {
  .ubicacion-grid { grid-template-columns: 1fr; }
  .dato-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  /* El mapa se queda DESPUÉS del encabezado (orden del DOM): aterrizar
     en un mapa sin contexto no dice nada. */
  .mapa { margin-top: 2.4rem; }
}

/* ── CTA final ──────────────────────────────────────────────── */

.apartar { background: var(--bg); overflow: hidden; }

.apartar-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.kanji-forjado { width: min(300px, 55vw); margin-bottom: 1.6rem; }

.form-stage .stage-glow {
  inset: -12%;
  background: radial-gradient(circle at 30% 65%, rgba(255, 68, 1, 0.3), transparent 60%);
}

.apartar-form { padding: clamp(1.8rem, 3vw, 2.6rem); }

.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }

.field label {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--ink);
}

.field input, .field select {
  background: rgba(19, 18, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-input);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.field select { appearance: none; cursor: pointer; }
.field select option { background: #1a1920; color: var(--ink); }

.field input::placeholder { color: rgba(165, 160, 154, 0.65); }

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 68, 1, 0.18);
}

/* Trampa anti-bots: fuera de pantalla, nunca display:none (varios bots
   ignoran los campos ocultos y entonces la trampa no sirve). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  transition: color 0.25s;
}

.form-note a { color: inherit; }
.form-note em { font-style: normal; opacity: 0.75; }

.form-note[data-estado="ok"] { color: var(--accent); }
.form-note[data-estado="error"] { color: #ff8a6b; }

/* Nota legal: presente pero sin competir con el mensaje de estado. */
.form-legal {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
  opacity: 0.62;
}
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent); }

.apartar-form.is-sent .field { opacity: 0.45; }
.apartar-form .field { transition: opacity 0.4s var(--ease-out); }

.apartar-form button[disabled] { cursor: default; opacity: 0.75; }

@media (max-width: 900px) {
  .apartar-grid { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 2rem;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-brand .hanko { width: 32px; height: 32px; padding: 4px; }

.footer-mark { height: 40px; width: auto; }

.footer-info p, .footer-social a { color: var(--muted); font-size: 0.9rem; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-social a:hover { color: var(--ink); }

.footer-legal {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6f6b66;
  letter-spacing: 0.03em;
}

/* ── Grain ──────────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Reveal on scroll ───────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* marcadores del censo: encendido escalonado */
.js .censo-grid span {
  opacity: 0;
  transition: opacity 0.4s ease-out;
  transition-delay: calc(var(--i) * 5ms);
}

.js .censo-grid.is-visible span { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   REFINAMIENTO MÓVIL
   Dos reglas, medidas con tools/mobile-audit.cjs:
   · nada interactivo por debajo de 44×44 px (WCAG 2.5.5 / Apple HIG)
   · nada de texto por debajo de 12 px en pantalla de teléfono
   Lo de arriba se ve chico en un monitor a 60 cm; en un teléfono a 30 cm
   y en movimiento, no se lee.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 620px), (pointer: coarse) and (max-width: 900px) {
  /* Escala tipográfica: los tamaños "de instrumento" suben al piso
     legible sin perder el carácter de etiqueta técnica. */
  .eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; }
  .fuente { font-size: 0.76rem; }
  .body-sm { font-size: 0.94rem; }
  .lede { font-size: 1.02rem; }
  .plan-note { font-size: 0.84rem; }
  .form-note { font-size: 0.86rem; }

  /* La nota legal se quedó por debajo de los dos pisos de la auditoría
     cuando se agregó el aviso de privacidad: 11.5 px de texto y una liga
     de 15 px de alto. Se sube a 12 px y la liga se hace bloque con relleno
     para alcanzar los 44 px de alto sin romper el párrafo. */
  .form-legal { font-size: 0.75rem; }
  .form-legal a {
    display: inline-block;
    padding: 0.85rem 0.35rem;
    margin: -0.5rem 0;
  }
  .footer-legal { font-size: 0.75rem; }
  .footer-info p, .footer-social a { font-size: 0.95rem; }
  .censo-caption { font-size: 0.9rem; }
  .dato-list dt { font-size: 0.78rem; }
  /* especificidad (0,2,0): tiene que igualar a .precios-ocultos .plan-badge */
  .precios-ocultos .plan-badge { font-size: 0.78rem; letter-spacing: 0.18em; }
  /* los signos +/− de la escala térmica: son instrumento, no lectura,
     pero suben igual para no dejar nada por debajo del piso */
  .thermal-scale-sm span { font-size: 0.76rem; }
  .dato-list dd { font-size: 1.02rem; }
  .access-list li { font-size: 0.94rem; }
  .trainer-hint { font-size: 0.86rem; }
  .trainer-photo .trainer-caption { font-size: 0.78rem; }
  .station-pills li { font-size: 0.8rem; }
  .scroll-cue span { font-size: 0.7rem; }
  .hud-coords { font-size: 0.68rem; }

  /* Áreas táctiles */
  .chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
  }

  .nav-drawer a { padding: 0.95rem 0; }

  .field input, .field select { padding: 0.95rem 1rem; font-size: 1rem; }
  .btn { padding: 1.05rem 2rem; font-size: 0.95rem; }
}

/* Teléfono acostado: alto de sobra no hay, y las secciones a 100dvh
   dejan de tener sentido. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .interrupcion { min-height: 78vh; }
  .scroll-cue { display: none; }
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-img,
  .js .hero-content > *,
  .js .marquee-track { animation: none; }
  .hero-embers { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .censo-grid span { opacity: 1; transition: none; }
  .trainer-photo { transition: none; }
  .btn, .trainer-card, .tilt, .magnetic { transition: none; }
  .thermal-cursor { display: none; }
  .mapa-img { transition: opacity 0.2s; }
}

/* ── Acuse de registro (pop-up del formulario) ──────────────────
   El mecanismo es el sello, no una tarjeta con una palomita: un lugar
   apartado se acusa estampándolo. El hanko cae desde arriba, imprime,
   y de la impresión sale el bloom térmico de la campaña.
   Se reusa .capsula-close para que el cierre sea el mismo gesto que
   ya aprendió la persona en las cápsulas del recorrido. */

.acuse {
  position: fixed;
  inset: 0;
  z-index: 120; /* por encima de la cápsula (100) */
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 3vw, 2rem);
}

.acuse[hidden] { display: none !important; }

.acuse-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 8, 0.88);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.acuse.is-open .acuse-scrim { opacity: 1; }

.acuse-shell {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: 94dvh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 2.6rem) clamp(1.5rem, 4vw, 2.2rem) clamp(1.6rem, 4vw, 2rem);
  text-align: center;
  border-radius: 20px;
  border-color: rgba(255, 68, 1, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 50px 120px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 68, 1, 0.08);
  opacity: 0;
  transform: perspective(1400px) rotateX(10deg) translateY(38px) scale(0.94);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.acuse.is-open .acuse-shell {
  opacity: 1;
  transform: perspective(1400px) rotateX(0) translateY(0) scale(1);
}

/* Bloom térmico: nace del punto donde cae el sello. */
.acuse-bloom {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, 0) scale(0.4);
  background: radial-gradient(circle, rgba(255, 68, 1, 0.5), rgba(255, 68, 1, 0.12) 42%, transparent 68%);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.acuse.is-open .acuse-bloom { animation: acuse-bloom 1.5s var(--ease-out) 0.28s forwards; }

@keyframes acuse-bloom {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.35); }
  38%  { opacity: 1; }
  100% { opacity: 0.42; transform: translate(-50%, 0) scale(1); }
}

/* ── El sello ── */

.acuse-sello {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 1.4rem;
}

.acuse-hanko {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 15px;
  background: var(--accent);
  border-radius: 6px; /* el radio del hanko de marca, no pill */
  box-shadow: 0 14px 34px rgba(255, 68, 1, 0.42);
}

.acuse-hanko img { filter: brightness(0) invert(1); width: 100%; }

/* Cae, sobrepasa, e imprime. El rebote corto es el golpe del sello. */
.acuse.is-open .acuse-hanko { animation: acuse-estampa 0.62s var(--ease-out) 0.16s backwards; }

@keyframes acuse-estampa {
  0%   { opacity: 0; transform: translateY(-46px) scale(2.1) rotate(-14deg); }
  55%  { opacity: 1; transform: translateY(0) scale(0.9) rotate(2deg); }
  74%  { transform: translateY(0) scale(1.06) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* Ondas de la impresión: el papel devolviendo el golpe. */
.acuse-onda {
  grid-area: 1 / 1;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 68, 1, 0.6);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}

.acuse.is-open .acuse-onda { animation: acuse-onda 1.1s var(--ease-out) 0.5s forwards; }
.acuse.is-open .acuse-onda-2 { animation-delay: 0.66s; }

@keyframes acuse-onda {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* ── Texto ── */

.acuse-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.acuse-shell h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  line-height: 0.94;
  margin-bottom: 0.85rem;
}

.acuse-nombre {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 82;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.acuse-copy {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

/* Ficha: devolverle sus propios datos es lo que prueba que llegaron
   completos. Es el acuse, no un adorno. */
.acuse-ficha {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-input);
  overflow: hidden;
  margin-bottom: 1.3rem;
  text-align: left;
}

.acuse-ficha > div { background: rgba(19, 18, 22, 0.72); padding: 0.72rem 0.9rem; }

.acuse-ficha dt {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.22rem;
}

.acuse-ficha dd {
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.acuse-pie {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.acuse-ok { position: relative; z-index: 1; }

.acuse-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* Estado degradado: el correo no salió. El acuse no puede prometer un
   aviso que nadie va a mandar, así que cambia de cara entero. */
.acuse[data-estado="error"] .acuse-hanko { background: #4a2418; box-shadow: none; }
.acuse[data-estado="error"] .acuse-onda { display: none; }
.acuse[data-estado="error"] .acuse-bloom { display: none; }
.acuse[data-estado="error"] .acuse-kicker { color: #ff8a6b; }
.acuse[data-estado="error"] .acuse-shell { border-color: rgba(255, 138, 107, 0.34); }
.acuse[data-estado="error"] .acuse-ficha { display: none; }

.acuse a { color: var(--accent); }

/* ── Móvil ── */

@media (max-width: 620px), (pointer: coarse) and (max-width: 900px) {
  .acuse-shell { width: 100%; }
  .acuse-sello, .acuse-hanko, .acuse-onda { width: 66px; height: 66px; }
  .acuse-hanko { padding: 13px; }
  .acuse-kicker { font-size: 0.75rem; letter-spacing: 0.2em; }
  .acuse-copy { font-size: 0.95rem; }
  .acuse-ficha dt { font-size: 0.75rem; }
  .acuse-ficha dd { font-size: 0.92rem; }
  .acuse-pie { font-size: 0.8rem; }
  .acuse-close { width: 46px; height: 46px; top: 8px; right: 8px; }
  .acuse-close span { left: 14px; right: 14px; top: 22px; }
}

/* Teléfono acostado: no hay alto para el sello a tamaño completo. */
@media (max-height: 500px) and (orientation: landscape) {
  .acuse-shell { padding-top: 1.4rem; }
  .acuse-sello { margin-bottom: 0.9rem; }
  .acuse-ficha { margin-bottom: 0.9rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .acuse-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 5, 8, 0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .acuse-scrim, .acuse-shell { transition: opacity 0.2s; }
  .acuse-shell, .acuse.is-open .acuse-shell { transform: none; }
  .acuse.is-open .acuse-hanko,
  .acuse.is-open .acuse-onda,
  .acuse.is-open .acuse-bloom { animation: none; }
  .acuse-bloom { opacity: 0.3; transform: translate(-50%, 0) scale(1); }
}

/* "opcional" junto a la etiqueta: tiene que leerse como una nota, no como
   parte del nombre del campo, o la gente cree que se llama "WhatsApp
   opcional". Por eso pierde el peso y baja el contraste, sin bajar de 12 px. */
.field-opt {
  font-variation-settings: "wght" 400, "wdth" 88;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: lowercase;
}

/* El correo es el dato largo: ocupa la fila entera para que no se parta. */
.acuse-ficha .acuse-ancho { grid-column: 1 / -1; }

/* Si no dieron WhatsApp, su celda se esconde y "Te llamó" toma la fila. */
.acuse-ficha > div[hidden] { display: none; }
.acuse-ficha.sin-whats #acuse-celda-interes { grid-column: 1 / -1; }
