/* ============================================================
   TRIMEALO — Landing scrollytelling · Light premium aeronáutico
   "Del caos operativo a una operación clara, visible y lista
   para despegar." La claridad ES el mensaje.

   CSS mobile-first, sin dependencias externas.
   Animaciones solo con transform/opacity (+ stroke-dashoffset
   en la ruta final, área pequeña).

   Sistema: mundo claro (papel, hielo, blueprint) + instrumentos
   oscuros (los paneles de producto son "pantallas" de cabina).
   ============================================================ */

/* ---------- Tipografía display self-hosted ----------
   Space Grotesk (OFL) · variable 300-700 · subset latin ~22KB */
@font-face {
  font-family: 'Space Grotesk';
  src: url('./fonts/SpaceGrotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Fondos claros */
  --bg-0: #f2f6fb;      /* blanco humo azulado */
  --bg-1: #e9f0f8;      /* gris perla */
  --bg-2: #dfe9f4;      /* azul hielo */
  --paper: #ffffff;
  --paper-2: #f7fafd;

  /* Tinta */
  --ink: #0b1d36;       /* navy profundo */
  --ink-dim: #42587297; /* fallback below */
  --ink-dim: #425a74;
  --ink-faint: #5c7189;

  /* Acentos seguros para texto sobre claro */
  --cyan-text: #0a7ca3;
  --teal-text: #0c7d72;
  --amber-text: #96690e;
  --green-text: #157a45;
  /* Acento IA unificado a cyan brillante sobre noche (4 colores funcionales, no 5) */

  /* Acentos vívidos para gráficos/luces */
  --cyan: #14b4e6;
  --teal: #14b8a6;
  --amber: #f0a52e;
  --green: #2fd57b;
  --red: #e2574b;
  --violet: #4fd7ff;

  --line: rgba(16, 45, 84, 0.12);
  --line-strong: rgba(16, 45, 84, 0.22);

  /* Paleta de pantallas oscuras (paneles de producto) */
  --scr-bg-a: #14304f;
  --scr-bg-b: #0a1c33;
  --sink: #e9f1fb;
  --sink-dim: #a9bbd1;
  --sink-faint: #7288a3;
  --sline: rgba(150, 190, 235, 0.16);
  --sline-strong: rgba(150, 190, 235, 0.3);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Consolas, monospace;

  --radius: 16px;
  --radius-lg: 22px;

  --shadow-soft: 0 14px 40px rgba(16, 52, 96, 0.1);
  --shadow-lift: 0 24px 60px rgba(16, 52, 96, 0.14);

  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 600px at 85% -8%, rgba(20, 180, 230, 0.09), transparent 60%),
    radial-gradient(900px 520px at 5% 24%, rgba(20, 184, 166, 0.07), transparent 60%),
    radial-gradient(1000px 700px at 92% 68%, rgba(18, 58, 99, 0.05), transparent 65%);
  overflow-x: hidden;
}

/* Grano técnico muy sutil: papel, no plástico */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
  mix-blend-mode: soft-light;
}

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

h1, h2, h3, h4, p, ul, ol, dl, blockquote, fieldset { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
fieldset { border: 0; }

a { color: var(--cyan-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

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

::selection { background: rgba(20, 180, 230, 0.28); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  background: linear-gradient(90deg, #0891c9, #0d9488);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.wrap-narrow { max-width: 780px; }

.section {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9.5rem);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section h2 {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  margin-top: 0.9rem;
  max-width: 24ch;
}

.section-lead {
  margin-top: 1.1rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-dim);
}

.section-cta { margin-top: 2.5rem; }

/* Tinte atmosférico por escena */
.scene-tint { position: absolute; inset: 0; pointer-events: none; }
.scene-tint-warn { background: radial-gradient(70% 55% at 80% 15%, rgba(240, 165, 46, 0.08), transparent 70%); }
.scene-tint-cyan { background: radial-gradient(70% 60% at 50% 30%, rgba(20, 180, 230, 0.08), transparent 70%); }
.scene-tint-violet { background: radial-gradient(70% 60% at 50% 25%, rgba(63, 217, 255, 0.1), transparent 70%); }

/* ---------- HUD label + numeración de escena ---------- */
.hud-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hud-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}
.hud-label-warn { color: var(--amber-text); }
.hud-label-ok { color: var(--green-text); }
.hud-label-ia { color: #4fd7ff; }

.scene-num {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  opacity: 0.75;
}

/* ---------- Manifiesto ---------- */
.manifest {
  position: relative;
  padding-block: clamp(4rem, 12vh, 8rem);
  text-align: center;
}
.manifest-line {
  margin-inline: auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
/* Entrada del manifiesto: se descubre como una franja, no cae */
html.js .manifest-line.reveal {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s ease, clip-path 1s var(--ease-out);
}
html.js .manifest-line.reveal.in-view { clip-path: inset(0 0 -8% 0); }
.manifest-line em {
  font-style: normal;
  background: linear-gradient(100deg, #0891c9, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifest-alt .manifest-line em {
  background: linear-gradient(100deg, #157a45, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #16436f, #0c2a4b);
  color: #ecf5fe;
  box-shadow: 0 10px 26px rgba(16, 52, 96, 0.28);
}
.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 52, 96, 0.32), 0 0 24px rgba(20, 180, 230, 0.25);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { border-color: var(--cyan-text); color: var(--cyan-text); }

.btn-lg { min-height: 54px; padding: 0.85rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 250, 253, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 52, 96, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
/* Logo completo (isotipo + nombre incluidos en la imagen trimealo-borde.png) */
.brand-logo { height: 55px; width: auto; }
.site-footer .brand-logo { height: 32px; }

.site-nav { display: none; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-dim); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.btn-nav { min-height: 40px; padding: 0.45rem 1.2rem; font-size: 0.88rem; }
.site-nav .btn-nav,
.site-nav .btn-nav:hover {
  color: #eef7ff;
  text-decoration: none;
}
.site-nav .btn-nav:hover {
  color: #ffffff;
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899.98px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(247, 250, 253, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(16, 52, 96, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn-nav {
    margin-top: 1rem;
    border-bottom: 0;
    min-height: 50px;
    font-size: 1rem;
    justify-content: center;
  }
  .header-cta { display: inline-flex; margin-left: auto; }
  .header-inner { gap: 0.5rem; }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   ESCENA 1 — HERO · CIELO CLARO, PISTA BLUEPRINT
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem));
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Capa blueprint: grilla técnica + señales, se desvanece hacia la pista */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 52, 92, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 52, 92, 0.05) 1px, transparent 1px),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(10, 158, 208, 0.4), transparent 100%),
    radial-gradient(1px 1px at 240px 200px, rgba(18, 52, 92, 0.3), transparent 100%);
  background-size: 56px 56px, 56px 56px, 300px 260px, 300px 260px;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 88%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 88%);
}

.aurora {
  position: absolute;
  width: 70vw;
  height: 55vh;
  border-radius: 50%;
  will-change: transform;
}
.aurora-a {
  top: -12%;
  right: -18%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 180, 230, 0.16), transparent 70%);
  animation: auroraDrift 46s ease-in-out infinite alternate;
}
.aurora-b {
  bottom: 4%;
  left: -22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 184, 166, 0.12), transparent 70%);
  animation: auroraDrift 58s ease-in-out infinite alternate-reverse;
}
@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-6vw, 4vh, 0) scale(1.15); }
}

/* Niebla técnica clara que asienta la escena */
.fogbank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(242, 246, 251, 0.95), transparent);
}

.particles { position: absolute; inset: 0; }
.particles i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(10, 124, 163, 0.4);
  animation: rise linear infinite;
  will-change: transform, opacity;
}
.particles i:nth-child(1) { left: 8%;  bottom: 10%; animation-duration: 16s; }
.particles i:nth-child(2) { left: 22%; bottom: 4%;  animation-duration: 21s; animation-delay: 3s; }
.particles i:nth-child(3) { left: 38%; bottom: 14%; animation-duration: 18s; animation-delay: 6s; }
.particles i:nth-child(4) { left: 55%; bottom: 6%;  animation-duration: 24s; animation-delay: 1.5s; }
.particles i:nth-child(5) { left: 68%; bottom: 12%; animation-duration: 17s; animation-delay: 8s; }
.particles i:nth-child(6) { left: 80%; bottom: 5%;  animation-duration: 22s; animation-delay: 4s; }
.particles i:nth-child(7) { left: 90%; bottom: 16%; animation-duration: 19s; animation-delay: 10s; }
.particles i:nth-child(8) { left: 47%; bottom: 2%;  animation-duration: 26s; animation-delay: 12s; }
@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.7; }
  85%  { opacity: 0.25; }
  100% { transform: translateY(-46vh); opacity: 0; }
}

/* Composición hero */
.hero-layout {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  gap: 2.5rem;
  align-content: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3rem;
  }
}

.hero-copy { text-align: left; }

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  max-width: 17ch;
  margin-top: 1.2rem;
}
.h1-accent {
  display: block;
  background: linear-gradient(100deg, #0891c9 10%, #0d9488 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 54ch;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--ink-dim);
}
.hero-sub em { font-style: italic; color: var(--ink); }

.hero-kicker {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--cyan-text);
}

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

.hero-microcopy {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 52ch;
}

/* Escenario derecho */
.hero-stage {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 559.98px) {
  .chip-sm-hide { display: none; }
  .hero-stage { min-height: 320px; }
}

/* ---------- Paneles de comando: pantallas oscuras de cabina ----------
   El único territorio oscuro del sitio: el producto es el instrumento. */
.cmd {
  position: relative;
  border: 1px solid rgba(16, 45, 84, 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--scr-bg-a), var(--scr-bg-b) 60%);
  box-shadow:
    0 30px 70px rgba(16, 45, 84, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 50px rgba(20, 180, 230, 0.1);
  overflow: hidden;
  color: var(--sink-dim);
}

.cmd-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--sline);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}
.cmd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(47, 213, 123, 0.8);
  animation: blink 3s ease-in-out infinite;
  flex: none;
}
.cmd-dot-ia { background: var(--violet); box-shadow: 0 0 8px rgba(79, 215, 255, 0.8); }
.cmd-title { color: var(--sink-dim); white-space: nowrap; }
.cmd-status { margin-left: auto; color: var(--green); white-space: nowrap; }
.cmd-tabs { display: none; gap: 0.4rem; margin-left: 0.6rem; }
.cmd-tabs b {
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--sline);
  color: var(--sink-faint);
}
.cmd-tabs b.on { border-color: rgba(63, 217, 255, 0.5); color: #4fd7ff; }
@media (min-width: 720px) { .cmd-tabs { display: inline-flex; } }

.cmd-cap {
  padding: 0.55rem 1.1rem 0.75rem;
  font-size: 0.7rem;
  color: var(--sink-faint);
  font-style: italic;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Torre mini del hero */
.cmd-mini {
  width: min(430px, 92%);
  --bx: 4deg;
  --by: -8deg;
  transform: perspective(1100px) rotateX(calc(var(--bx) + var(--rx, 0deg))) rotateY(calc(var(--by) + var(--ry, 0deg)));
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Flotación idle de todo el escenario (transform, nunca layout) */
@media (min-width: 980px) {
  .hero-stage { animation: stageFloat 8s ease-in-out infinite; }
}
@keyframes stageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Instrumentos HUD */
.hud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sline);
}
.hud {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.9rem;
  background: rgba(9, 24, 43, 0.92);
}
.hud-k {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sink-faint);
}
.hud-v { font-size: 0.82rem; font-weight: 600; color: var(--sink); }
.hud-ok { color: var(--green); }
.hud-warn { color: var(--amber); }

.hud-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(150, 190, 235, 0.14);
  overflow: hidden;
}
.hud-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3fd9ff, #2dd4bf);
  transform: scaleX(var(--v, 0.5));
  transform-origin: left center;
}
.hud-bar-ok i { background: var(--green); }
.hud-bar-warn i { background: var(--amber); }

html.js .hud-bar i {
  transform: scaleX(0);
  transition: transform 1s var(--ease-out);
}
html.js .hero.in-view .hud-bar i,
html.js .in-view .hud-bar i { transform: scaleX(var(--v, 0.5)); }
html.js .hero.in-view .hud:nth-child(2) .hud-bar i { transition-delay: 0.12s; }
html.js .hero.in-view .hud:nth-child(3) .hud-bar i { transition-delay: 0.24s; }
html.js .hero.in-view .hud:nth-child(4) .hud-bar i { transition-delay: 0.36s; }
html.js .hero.in-view .hud:nth-child(5) .hud-bar i { transition-delay: 0.48s; }
html.js .hero.in-view .hud:nth-child(6) .hud-bar i { transition-delay: 0.6s; }

/* Fila inferior del cockpit mini */
.cmd-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem 0.3rem;
}

.mod-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sink-faint);
  margin-bottom: 0.55rem;
}

.mini-sched { min-width: 0; }
.sched-track {
  position: relative;
  height: 10px;
  margin-bottom: 6px;
  border-radius: 5px;
  background: rgba(150, 190, 235, 0.1);
}
.sb {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: var(--l);
  width: var(--w);
  border-radius: 4px;
  background: rgba(63, 217, 255, 0.6);
}
.sb-b { background: rgba(45, 212, 191, 0.55); }
.sb-c { background: rgba(96, 165, 250, 0.55); }

/* Radar (compartido, vive dentro de pantallas oscuras) */
.mini-radar {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--sline-strong);
  background:
    radial-gradient(circle, transparent 0 32%, var(--sline) 32% calc(32% + 1px), transparent calc(32% + 1px) 65%, var(--sline) 65% calc(65% + 1px), transparent calc(65% + 1px)),
    radial-gradient(circle at center, rgba(63, 217, 255, 0.08), transparent 70%);
  overflow: hidden;
  flex: none;
}
.mini-radar::before, .mini-radar::after {
  content: "";
  position: absolute;
  background: var(--sline);
}
.mini-radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.mini-radar::after { top: 50%; left: 0; right: 0; height: 1px; }

.mini-radar-lg { width: 120px; margin-inline: auto; }
.mini-radar-ia { width: 110px; border-color: rgba(63, 217, 255, 0.4); }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(63, 217, 255, 0.35), transparent 70deg, transparent 360deg);
  animation: sweep 5s linear infinite;
  will-change: transform;
}
.radar-sweep-ia { background: conic-gradient(from 0deg, rgba(63, 217, 255, 0.4), transparent 70deg, transparent 360deg); }
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 2.6s ease-in-out infinite;
}
.radar-blip-ok { background: var(--green); }
.radar-blip-ia { background: var(--violet); }

/* Chips de caos: etiquetas claras con luz de alerta */
.chaos-chips { position: absolute; inset: 0; pointer-events: none; }

.chip {
  position: absolute;
  left: min(var(--x), calc(100% - 11.5rem));
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(16, 52, 96, 0.1);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.3vw, 0.72rem);
  color: var(--ink-dim);
  white-space: nowrap;
  will-change: transform;
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--amber);
  animation: blink 2.2s ease-in-out infinite;
}
.chip-alert::before { background: var(--red); animation-duration: 1.4s; }

.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out infinite reverse; }
.float-c { animation: floaty 8s ease-in-out 1.2s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* Piso de pista blueprint: sube por detrás del layout para
   unificar la escena — el panel queda apoyado sobre la pista */
.hero-runway {
  position: relative;
  z-index: 1;
  height: clamp(260px, 36vh, 440px);
  margin-top: clamp(-150px, -12vh, -48px);
  pointer-events: none;
}

/* El escenario proyecta sombra sobre la pista: mismo mundo físico */
.hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 72%;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 52, 96, 0.16), transparent 70%);
  pointer-events: none;
}

.runway {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  perspective: 520px;
  will-change: transform;
}

.runway-surface {
  position: relative;
  width: min(640px, 90vw);
  height: 100%;
  transform: rotateX(54deg);
  transform-origin: 50% 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.runway-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.runway-lights {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle at 50% 50%, #0a9ed0 0 2px, transparent 3px);
  background-size: 6px 56px;
  filter: drop-shadow(0 0 5px rgba(10, 158, 208, 0.55));
}
.runway-lights-left { left: 3.2%; }
.runway-lights-right { right: 3.2%; }

.reil {
  position: absolute;
  bottom: 1.2%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0aa6d6;
  box-shadow: 0 0 10px rgba(10, 166, 214, 0.8);
  animation: reilFlash 2.6s linear infinite;
}
.reil-l { left: 1%; }
.reil-r { right: 1%; }
@keyframes reilFlash {
  0%, 3% { opacity: 0; }
  4%, 6% { opacity: 1; }
  7%, 10% { opacity: 0; }
  11%, 13% { opacity: 1; }
  14%, 100% { opacity: 0; }
}

.hero-plane-wrap {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  will-change: transform;
}
.hero-plane {
  color: #12365f;
  filter: drop-shadow(0 10px 18px rgba(16, 52, 96, 0.35));
  animation: planeIdle 3.2s ease-in-out infinite;
}
@keyframes planeIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.plane-prop {
  transform-box: fill-box;
  transform-origin: center;
  animation: propSpin 0.14s linear infinite;
  opacity: 0.9;
}
@keyframes propSpin { to { transform: rotate(180deg); } }

.scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1.4rem;
}
.scroll-hint-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--cyan-text));
  animation: hintPulse 2.4s ease-in-out infinite;
}
.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ============================================================
   ESCENA 2 — CAOS · PAPELES SOBRE EL ESCRITORIO
   ============================================================ */
.split {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
}

.pain-list { margin-top: 2.25rem; display: grid; gap: 0.35rem; }
.pain-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.9rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 10px;
  height: 8px;
  background: var(--amber);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.pain-bridge {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 52ch;
}

/* Campo de caos: ventanas de papel desordenadas */
.chaos-field { position: relative; min-height: 520px; }
.chaos-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

.win {
  position: absolute;
  left: var(--wx);
  top: var(--wy);
  width: min(240px, 62%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(16, 52, 96, 0.13);
  --rot: 0deg;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px 12px 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.wdot-g { background: var(--green); }
.wdot-a { background: var(--amber); }
.wdot-b { background: var(--cyan); }
.wdot-r { background: var(--red); animation: blink 1.6s ease-in-out infinite; }

.win-body { padding: 0.7rem 0.8rem; display: grid; gap: 0.45rem; }

.bub {
  justify-self: start;
  max-width: 92%;
  padding: 0.35rem 0.6rem;
  border-radius: 10px 10px 10px 3px;
  background: #eef3f9;
  font-size: 0.72rem;
  color: var(--ink-dim);
  line-height: 1.35;
}
.bub-r {
  justify-self: end;
  border-radius: 10px 10px 3px 10px;
  background: #d8f1ec;
  color: #0b473f;
}

.win-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; }
.win-grid i {
  height: 12px;
  border-radius: 2px;
  background: #e5ecf5;
}
.win-grid .cell-err { background: #f4c25f; }

.cal-row { position: relative; display: block; height: 14px; border-radius: 4px; background: #edf2f9; }
.cal-block {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: var(--l);
  width: var(--w);
  border-radius: 3px;
  background: rgba(20, 150, 200, 0.55);
}
.cal-clash { background: rgba(226, 87, 75, 0.6); }
.cal-note { font-size: 0.66rem; color: var(--amber-text); font-family: var(--font-mono); }

.pay-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; animation: blink 1.8s ease-in-out infinite; }

.alert-line { font-size: 0.72rem; color: var(--amber-text); line-height: 1.4; }

@media (max-width: 559.98px) {
  .chaos-field { min-height: 400px; }
  .chaos-sm-hide { display: none; }
  .win { width: min(210px, 68%); }
}

/* ============================================================
   COSTO — BANDA DE NIEBLA
   ============================================================ */
.section-costo {
  background: linear-gradient(to bottom, transparent, var(--bg-1) 18%, var(--bg-1) 82%, transparent);
}

.fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(50% 35% at 80% 60%, rgba(255, 255, 255, 0.4), transparent 70%);
}

.cost-questions {
  position: relative;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid #c98a12;
  background: rgba(240, 165, 46, 0.09);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 62ch;
}
.cost-questions p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
}
.cost-questions p + p { margin-top: 0.5rem; }
.cost-questions .cost-questions-note {
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.cost-layout {
  position: relative;
  margin-top: 2.75rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .cost-layout { grid-template-columns: 1.2fr 1fr; } }

.cost-list { display: grid; gap: 0.4rem; }
.cost-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.9rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
.cost-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  width: 10px;
  height: 8px;
  background: var(--amber);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.cost-radar {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.cost-radar .radar {
  position: relative;
  width: min(220px, 60vw);
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, transparent 0 32%, var(--line) 32% calc(32% + 1px), transparent calc(32% + 1px) 65%, var(--line) 65% calc(65% + 1px), transparent calc(65% + 1px)),
    radial-gradient(circle at center, rgba(20, 180, 230, 0.06), transparent 70%);
  overflow: hidden;
}
.cost-radar .radar::before, .cost-radar .radar::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.cost-radar .radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cost-radar .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.cost-radar .radar-sweep { background: conic-gradient(from 0deg, rgba(10, 158, 208, 0.28), transparent 70deg, transparent 360deg); }

.cost-fact { font-size: 1.05rem; color: var(--ink); }
.cost-fact strong { color: var(--cyan-text); }
.cost-fact-note { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-faint); }

/* ============================================================
   ESCENA 3/4 — TRANSFORMACIÓN · LA PANTALLA SE ENCIENDE
   ============================================================ */
.before-strip {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.frag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px dashed rgba(201, 138, 18, 0.55);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(16, 52, 96, 0.07);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  transform: rotate(var(--rot, 0deg));
  transition: transform 1s var(--ease-out) var(--fd, 0s), opacity 1s ease var(--fd, 0s);
}
.frag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--amber);
  animation: blink 2.4s ease-in-out infinite;
}
html.js .section-transformacion.in-view .frag {
  transform: rotate(0deg) translateY(14px);
  opacity: 0.45;
}

.dock-arrow {
  margin: 1.25rem auto 1.75rem;
  width: 24px;
  color: var(--cyan-text);
  opacity: 0.8;
}

/* Command Center: pantalla grande en perspectiva */
.cmd-center {
  --bx: 3deg;
  transform: perspective(1400px) rotateX(calc(var(--bx) + var(--rx, 0deg))) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease-out;
  will-change: transform;
}
@media (max-width: 899.98px) {
  .cmd-mini, .cmd-center { transform: none; }
}

/* Barrido de luz al encenderse la torre */
.cmd-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(63, 217, 255, 0.12) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
html.js .section-transformacion.in-view .cmd-center::after {
  animation: towerSweep 1.5s var(--ease-out) 0.6s 1 forwards;
}
@keyframes towerSweep { to { transform: translateX(130%); } }

.cc-grid {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  grid-template-columns: repeat(12, 1fr);
}

.mod {
  grid-column: span 12;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sline);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(24, 46, 74, 0.75), rgba(10, 24, 43, 0.9));
  min-width: 0;
}

@media (min-width: 640px) { .mod { grid-column: span 6; } }
@media (min-width: 980px) {
  .mod-sched { grid-column: span 7; }
  .mod-fleet { grid-column: span 5; }
  .mod-pay { grid-column: span 4; }
  .mod-alert { grid-column: span 4; }
  .mod-rav { grid-column: span 4; }
  .mod-academy { grid-column: span 5; }
  .mod-students { grid-column: span 4; }
  .mod-radar { grid-column: span 3; }
}

html.js .cc-grid .mod {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
html.js .section-transformacion.in-view .cc-grid .mod { opacity: 1; transform: none; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(2) { transition-delay: 0.09s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(3) { transition-delay: 0.18s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(4) { transition-delay: 0.27s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(5) { transition-delay: 0.36s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(6) { transition-delay: 0.45s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(7) { transition-delay: 0.54s; }
html.js .section-transformacion.in-view .cc-grid .mod:nth-child(8) { transition-delay: 0.63s; }

.sched-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.sched-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--sink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-row, .alert-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--sink-dim);
}
.fleet-row small { margin-left: auto; color: var(--sink-faint); font-size: 0.7rem; white-space: nowrap; }

.st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-ok { background: var(--green); box-shadow: 0 0 6px rgba(47, 213, 123, 0.6); }
.st-warn { background: var(--amber); box-shadow: 0 0 6px rgba(240, 165, 46, 0.6); }
.st-off { background: rgba(150, 190, 235, 0.3); }

.pay-meter {
  height: 8px;
  border-radius: 4px;
  background: rgba(150, 190, 235, 0.14);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.pay-meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2dd4bf, #2fd57b);
  transform: scaleX(var(--v, 0.8));
  transform-origin: left center;
}

.mod-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mchip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--sline-strong);
  color: var(--sink-dim);
  white-space: nowrap;
}
.mchip-ok { border-color: rgba(47, 213, 123, 0.5); color: #6ee7a0; }
.mchip-warn { border-color: rgba(240, 165, 46, 0.5); color: #f6c96b; }

.rav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--sink-dim);
}

.coh-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  color: var(--sink-dim);
}
.coh-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(150, 190, 235, 0.14);
  overflow: hidden;
}
.coh-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3fd9ff, #2dd4bf);
  transform: scaleX(var(--v, 0.5));
  transform-origin: left center;
}

/* ============================================================
   PRODUCTOS — HANGARES DE PAPEL
   ============================================================ */
.product-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--paper), var(--paper-2) 60%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 12px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--pc-accent, var(--cyan-text));
    box-shadow: var(--shadow-lift), 0 0 36px rgba(20, 180, 230, 0.12);
  }
}
.product-card--flight { --pc-accent: rgba(10, 124, 163, 0.55); }
.product-card--academy { --pc-accent: rgba(12, 125, 114, 0.55); }

.product-index {
  position: absolute;
  top: -1.4rem;
  right: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 700;
  color: rgba(16, 52, 96, 0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.product-head { display: flex; align-items: flex-start; gap: 1rem; }
.product-icon { flex: none; color: var(--cyan-text); margin-top: 0.2rem; }
.product-card--academy .product-icon { color: var(--teal-text); }
.product-card h3 { font-size: 1.35rem; }
.product-tag { margin-top: 0.3rem; font-size: 0.88rem; color: var(--ink-dim); }

.feature-list { display: grid; gap: 0.55rem; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 15px;
  height: 15px;
  background-color: var(--teal-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 L9.5 18 L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 L9.5 18 L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-pricing-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-text);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.product-card--academy .product-pricing-hint { color: var(--teal-text); }
.product-card .btn { align-self: flex-start; }

.ecosystem-note {
  margin-top: 2.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

/* ============================================================
   ESCENA 5 — RUNUP · PROTOCOLO DE DESPEGUE
   ============================================================ */
.runup-track { position: relative; margin-top: 3.5rem; }

/* Pista vertical blueprint */
.runup-line {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 18px;
  border-radius: 9px;
  background: #e4edf6;
  border: 1px solid var(--line-strong);
  overflow: visible;
}
.runup-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgba(18, 52, 92, 0.35) 0 14px, transparent 14px 30px);
}
.runup-line-fill {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: linear-gradient(to bottom, rgba(20, 180, 230, 0.35), rgba(20, 184, 166, 0.35));
  box-shadow: inset 0 0 12px rgba(20, 180, 230, 0.3);
  transform: scaleY(var(--runup-p, 0));
  transform-origin: top center;
  will-change: transform;
}
.runup-plane {
  position: absolute;
  top: 0;
  left: 50%;
  color: #0a7ca3;
  filter: drop-shadow(0 4px 10px rgba(10, 124, 163, 0.4));
  transform: translate(-50%, calc(var(--runup-p, 0) * var(--runup-h, 0) * 1px - 50%)) rotate(180deg);
  will-change: transform;
}

.runup-steps { display: flex; flex-direction: column; gap: 2.25rem; }

.runup-step {
  position: relative;
  padding: 1.25rem 3.2rem 1.25rem 1.4rem;
  margin-left: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.runup-step.passed {
  border-color: rgba(21, 122, 69, 0.35);
  box-shadow: var(--shadow-soft), 0 0 24px rgba(47, 213, 123, 0.1);
}
.runup-step::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: -41px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--cyan-text);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.runup-step.passed::before {
  background: var(--cyan-text);
  box-shadow: 0 0 10px rgba(10, 158, 208, 0.7);
}

.runup-check {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.runup-check::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--green-text);
  border-bottom: 2px solid var(--green-text);
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
}
.runup-step.passed .runup-check {
  border-color: rgba(21, 122, 69, 0.6);
  box-shadow: 0 0 10px rgba(47, 213, 123, 0.2);
}
.runup-step.passed .runup-check::after { transform: rotate(45deg) scale(1); }

.runup-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--cyan-text);
}
.runup-step h3 { margin-top: 0.5rem; font-size: 1.15rem; }
.runup-step p { margin-top: 0.55rem; font-size: 0.93rem; color: var(--ink-dim); }

.runup-owner {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(21, 122, 69, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
}

@media (min-width: 980px) {
  .runup-line { left: 50%; transform: translateX(-50%); }
  .runup-step { width: calc(50% - 64px); margin-left: 0; }
  .runup-step:nth-child(odd) { align-self: flex-start; }
  .runup-step:nth-child(even) { align-self: flex-end; }
  .runup-step:nth-child(odd)::before { left: auto; right: -71px; }
  .runup-step:nth-child(even)::before { left: -71px; }
}

/* Autorización final */
.runup-clear { margin-top: 2.5rem; text-align: center; }
.runup-clear-badge {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(21, 122, 69, 0.5);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-text);
  background: rgba(47, 213, 123, 0.08);
  opacity: 0.3;
  transform: translateY(0.9rem) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}
.runup-track.cleared .runup-clear-badge {
  opacity: 1;
  transform: translateY(0.9rem) scale(1);
  box-shadow: 0 10px 34px rgba(47, 213, 123, 0.22);
}

.runup-cta { text-align: center; }
.runup-cta-note {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   7 DÍAS
   ============================================================ */
.days-timeline {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .days-timeline { grid-template-columns: repeat(5, 1fr); }
  .days-timeline::before {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, #0a9ed0, #0d9488, #157a45);
    opacity: 0.45;
  }
}

.day-card {
  position: relative;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.day-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ecf5fe;
  background: #16436f;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  position: relative;
  z-index: 1;
}
.day-owner {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.day-card h3 { margin-top: 0.8rem; font-size: 1.02rem; }
.day-card p { margin-top: 0.45rem; font-size: 0.86rem; color: var(--ink-dim); }

.day-card-final { border-color: rgba(21, 122, 69, 0.45); }
.day-card-final .day-num { background: #157a45; }

/* ============================================================
   PRICING — RIESGO CONTROLADO
   ============================================================ */
.pricing-principle {
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--cyan-text);
  background: rgba(20, 180, 230, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 62ch;
  font-size: 1rem;
}

.pricing-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--paper), var(--paper-2) 55%);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.pricing-card--flight {
  --accent: var(--cyan-text);
  --accent-soft: rgba(10, 124, 163, 0.07);
  --accent-border: rgba(10, 124, 163, 0.45);
}
.pricing-card--academy {
  --accent: var(--teal-text);
  --accent-soft: rgba(12, 125, 114, 0.07);
  --accent-border: rgba(12, 125, 114, 0.45);
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
  opacity: 0.85;
}

.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricing-id { display: flex; align-items: center; gap: 0.8rem; }
.pricing-icon { flex: none; color: var(--accent); }
.pricing-product { font-size: 1.25rem; }
.pricing-for { margin-top: 0.2rem; font-size: 0.82rem; color: var(--ink-dim); }

.pricing-variable { text-align: right; }
.pricing-variable strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pricing-variable span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-dim);
  font-size: 0.82rem;
}
@media (max-width: 559.98px) {
  .pricing-variable { text-align: left; }
}

/* Medidor de riesgo controlado (dentro de cada panel de plan) */
.plan-meter { margin-top: 1rem; display: grid; gap: 0.4rem; }
.rm-track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: #e2eaf4;
  overflow: hidden;
}
.rm-fill {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), transparent 130%);
  opacity: 0.5;
  transform: scaleX(0.6);
  transform-origin: left center;
  animation: riskBreath 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes riskBreath {
  0% { transform: scaleX(0.35); }
  100% { transform: scaleX(0.82); }
}
.rm-min, .rm-cap {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  border-radius: 2px;
}
.rm-min { left: var(--p, 30%); background: rgba(16, 52, 96, 0.5); }
.rm-cap { right: 2px; background: #157a45; box-shadow: 0 0 8px rgba(47, 213, 123, 0.6); }

/* Etiquetas del medidor: "mínimo" alineado a su marca, "techo" al tope */
.rm-ends {
  position: relative;
  height: 1.1em;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rm-end-min { position: absolute; left: var(--p, 30%); transform: translateX(-50%); }
.rm-end-cap { position: absolute; right: 0; color: var(--green-text); }

/* Selector de plan: elegí tu tamaño, mirá tus tres números */
.plan-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e7eef7;
}
.plan-btn {
  flex: 1;
  min-height: 54px;
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-dim);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-btn small {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.plan-btn:hover { color: var(--ink); }
.plan-btn.is-on {
  background: var(--paper);
  border-color: var(--accent-border);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 52, 96, 0.1);
}
.plan-btn.is-on small { color: var(--accent); }

/* Paneles: con JS solo se ve el plan elegido; sin JS, los tres con su nombre */
html.js .plan-panel { display: none; }
html.js .plan-panel.on { display: block; }
.plan-panel + .plan-panel { margin-top: 1.5rem; }
html.js .plan-panel.on + .plan-panel,
html.js .plan-panel + .plan-panel.on { margin-top: 0; }

.plan-panel-name { font-size: 0.92rem; margin-bottom: 0.7rem; }
html.js .plan-panel-name { display: none; }

.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.plan-stats div { display: grid; gap: 0.2rem; }
.plan-stats dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.plan-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-stats div:nth-child(2) dd { color: var(--green-text); }

.plan-caption {
  font-size: 0.92rem;
  color: var(--ink-dim);
  max-width: 46ch;
}
.plan-caption strong { color: var(--ink); }

.pricing-example {
  padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--accent, var(--cyan-text));
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft, rgba(20, 180, 230, 0.07));
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.pricing-example-tag {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, var(--cyan-text));
}

.pricing-card .btn { margin-top: auto; }

.pricing-notes {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.pricing-notes li {
  font-size: 0.8rem;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--paper);
}

/* ============================================================
   BONOS
   ============================================================ */
.section-bonos {
  background: linear-gradient(to bottom, transparent, var(--bg-1) 22%, var(--bg-1) 78%, transparent);
}

.bonus-list {
  margin-top: 2.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .bonus-list { grid-template-columns: 1fr 1fr; } }

.bonus-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
/* Ícono técnico en anillo verde: la "luz de autorización" con más oficio */
.bonus-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(21, 122, 69, 0.28);
  background: rgba(47, 213, 123, 0.1);
  color: var(--green-text);
  box-shadow: 0 0 14px rgba(47, 213, 123, 0.14);
}
.bonus-item h3 { font-size: 1.02rem; }
.bonus-item p { margin-top: 0.4rem; font-size: 0.88rem; color: var(--ink-dim); }

/* ============================================================
   IA — BANDA NOCTURNA DEL COPILOTO
   La única sección oscura completa: vuelo por instrumentos.
   ============================================================ */
.section-ia {
  background: linear-gradient(160deg, #0c1b38, #0f2547 70%);
}
.section-ia h2 { color: #f2f5ff; }
.section-ia .section-lead { color: #aab6d4; }

.ia-console {
  margin-top: 2.75rem;
  border: 1px solid rgba(63, 217, 255, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 48, 79, 0.85), rgba(8, 20, 38, 0.94));
  box-shadow: 0 24px 70px rgba(4, 8, 24, 0.5), 0 0 60px rgba(63, 217, 255, 0.1);
  overflow: hidden;
}

.ia-console-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(63, 217, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #aab6d4;
}
.ia-console-bar .cmd-title { color: #aab6d4; }

.ia-scan {
  margin-left: auto;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: rgba(63, 217, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.ia-scan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20px;
  border-radius: 2px;
  background: var(--violet);
  animation: scanMove 2.2s ease-in-out infinite alternate;
}
@keyframes scanMove { to { transform: translateX(40px); } }

.ia-console-body {
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 720px) { .ia-console-body { grid-template-columns: 1fr auto; } }

.ia-feed { display: grid; gap: 0.7rem; min-width: 0; }
.ia-msg {
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 1.6vw, 0.92rem);
  color: #b9c3de;
}
.ia-msg b { color: #4fd7ff; margin-right: 0.5rem; font-weight: 700; }

html.js .ia-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease var(--md, 0s), transform 0.6s var(--ease-out) var(--md, 0s);
}
html.js .section-ia.in-view .ia-msg { opacity: 1; transform: none; }

.ia-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--violet);
  animation: blink 1.1s steps(1) infinite;
}

.mini-radar-ia { justify-self: center; }

.ia-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .ia-grid { grid-template-columns: 1fr 1fr; } }

.ia-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(63, 217, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(63, 217, 255, 0.07), transparent 40%), rgba(10, 26, 46, 0.6);
}
.ia-card h3 { font-size: 1.2rem; color: #eef0ff; }
.feature-list-ia li { color: #aab6d4; }
.feature-list-ia li::before { background-color: #4fd7ff; }

.ia-pricing {
  margin-top: 2.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: #aab6d4;
  max-width: 60ch;
  margin-inline: auto;
}
.ia-pricing strong { color: #6ee7a0; }

/* ============================================================
   OBJECIONES — PAPEL ↔ PANTALLA
   ============================================================ */
.dialog-list {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 760px;
}

.dialog-pair { display: flex; flex-direction: column; gap: 0.7rem; }

.dialog-q, .dialog-a {
  position: relative;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.96rem;
  max-width: 92%;
}
.dialog-q {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink-dim);
  border-bottom-left-radius: 4px;
}
.dialog-a {
  align-self: flex-end;
  background: linear-gradient(160deg, #14304f, #0c2440);
  border: 1px solid rgba(63, 217, 255, 0.3);
  color: #e7f2fc;
  border-bottom-right-radius: 4px;
  box-shadow: 0 14px 34px rgba(16, 45, 84, 0.25);
}

.dialog-who {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--ink-faint);
}
.dialog-a .dialog-who { color: #4fd7ff; }

.objeciones-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.objeciones-note {
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: 52ch;
}

/* ============================================================
   CASOS
   ============================================================ */
.case-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.case-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.case-badge-active {
  border-color: rgba(21, 122, 69, 0.5);
  color: var(--green-text);
}

.case-card h3 { font-size: 1.15rem; }
.case-card p { font-size: 0.92rem; color: var(--ink-dim); }

.case-quote {
  margin-top: auto;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.case-link { font-size: 0.92rem; font-weight: 600; margin-top: auto; }

/* ============================================================
   ESCENA 6 — DESPEGUE · AMANECER OPERATIVO
   ============================================================ */
.section-final {
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 16vh, 11rem);
  background: linear-gradient(to top, #ffffff 0%, #e6f1fa 45%, #d3e6f6 100%);
}
.section-final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 120vw;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(55% 100% at 50% 100%, rgba(255, 203, 128, 0.22), transparent 70%);
  pointer-events: none;
}

.final-sky { position: absolute; inset: 0; pointer-events: none; }
.stars-final {
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.route {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
}
html.js .route-draw { transition: stroke-dashoffset 3.2s var(--ease-out) 0.3s; }
html.js .section-final.in-view .route-draw { stroke-dashoffset: 0; }

.final-plane {
  position: absolute;
  left: 10%;
  bottom: 14%;
  color: #12365f;
  filter: drop-shadow(0 12px 20px rgba(16, 52, 96, 0.3));
  transform: rotate(38deg) translate(18vw, -13vh) scale(0.8);
  opacity: 1;
}
html.js .final-plane {
  transform: rotate(38deg) translate(0, 0) scale(1);
  opacity: 0;
  transition: transform 3s var(--ease-out) 0.2s, opacity 1s ease 0.2s;
}
.section-final.in-view .final-plane {
  transform: rotate(38deg) translate(18vw, -13vh) scale(0.8);
  opacity: 1;
}

.ops-chips { position: absolute; inset: 0; }
.ops-chip {
  position: absolute;
  left: min(var(--x), calc(100% - 11rem));
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 122, 69, 0.4);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(16, 52, 96, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ops-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 8px rgba(47, 213, 123, 0.7);
}
html.js .ops-chip {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
html.js .section-final.in-view .ops-chip { opacity: 1; transform: none; }
@media (max-width: 639.98px) {
  .ops-chips { display: none; }
}

.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-inner h2 { max-width: 26ch; }
.final-inner .section-lead { margin-inline: auto; }
.final-inner .hero-ctas { justify-content: center; }
.final-inner .hero-microcopy { text-align: center; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.section-form { background: linear-gradient(to bottom, #ffffff, var(--bg-1)); }

.diag-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }

.form-field label, .form-fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-fieldset legend { margin-bottom: 0.6rem; }
.label-optional { font-weight: 400; color: var(--ink-faint); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: auto; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan-text);
  box-shadow: 0 0 0 3px rgba(20, 180, 230, 0.18);
}
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] {
  border-color: var(--red);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23425a74' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.check-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.check:hover { border-color: var(--line-strong); }
.check input { accent-color: var(--cyan-text); width: 18px; height: 18px; flex: none; }
.check:has(input:checked) { border-color: var(--cyan-text); color: var(--ink); }

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--amber-text);
  text-align: center;
}
.form-status.ok { color: var(--green-text); }

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ============================================================
   FOOTER — CIERRE NOCTURNO
   ============================================================ */
.site-footer {
  background: #0b1c33;
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

.footer-tag {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #93a7c0;
  max-width: 34ch;
}

.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a, .footer-legal a {
  color: #b9c8dd;
  font-size: 0.92rem;
}
.footer-nav a:hover, .footer-legal a:hover { color: #4fd7ff; }

.footer-bottom {
  border-top: 1px solid rgba(150, 190, 235, 0.14);
  padding-block: 1.4rem;
  font-size: 0.82rem;
  color: #7288a3;
}
.footer-bottom a { color: #b9c8dd; }

/* ============================================================
   CTA STICKY MOBILE
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(16, 52, 96, 0.1);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
}
.sticky-cta.show { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ============================================================
   COMPONENTES PREMIUM v4
   ============================================================ */

/* Reloj UTC del header: firma de torre de control */
.utc-clock {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  white-space: nowrap;
}
@media (min-width: 1080px) { .utc-clock { display: inline; } }

/* Divisor de ruta de vuelo entre escenas */
.path-divider {
  position: relative;
  max-width: 420px;
  margin: clamp(0.5rem, 3vh, 2rem) auto;
  padding-inline: 1.5rem;
  color: var(--line-strong);
}
.path-divider-line { width: 100%; height: auto; }
.path-divider-plane {
  position: absolute;
  top: -4px;
  right: 10px;
  color: var(--cyan-text);
  transform: rotate(48deg);
  filter: drop-shadow(0 2px 5px rgba(10, 124, 163, 0.3));
}

/* Escala horaria + cursor "ahora" del scheduling */
.sched-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding-left: 88px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--sink-faint);
}
.sched-now {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--l);
  width: 2px;
  border-radius: 1px;
  background: #ff8f7a;
  box-shadow: 0 0 8px rgba(255, 122, 110, 0.7);
  animation: blink 2.4s ease-in-out infinite;
}

/* Fotografía real con duotono de marca */
.case-photo {
  position: relative;
  margin: 2.5rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.case-photo img {
  width: 100%;
  height: clamp(180px, 24vw, 250px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.04);
}
.case-photo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(8, 20, 38, 0.55), transparent);
  z-index: 1;
}
.case-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #16436f, #0d9488);
  mix-blend-mode: color;
  pointer-events: none;
}
.case-photo-cap {
  position: absolute;
  left: 1.2rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* Pricing: entrada con leve escala (variación de motion por escena) */
html.js .pricing-card.reveal { transform: translateY(22px) scale(0.985); }

/* Ceremonia de autorización: anillo que se expande una sola vez */
.runup-clear-badge { position: relative; }
.runup-clear-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(47, 213, 123, 0.6);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
.runup-track.cleared .runup-clear-badge::after {
  animation: clearRing 1.1s var(--ease-out) 0.15s 1 both;
}
@keyframes clearRing {
  0% { opacity: 0.9; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* ============================================================
   REVEALS
   Gateados con html.js: sin JavaScript, todo el contenido queda visible.
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
}
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
html.js .reveal[data-delay="5"] { transition-delay: 0.4s; }
html.js .reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .manifest-line.reveal { clip-path: inset(0 0 -8% 0); }
  html.js .pricing-card.reveal { transform: none; }
  .runup-clear-badge::after { display: none; }
  html.js .hud-bar i { transform: scaleX(var(--v, 0.5)); }
  html.js .cc-grid .mod { opacity: 1; transform: none; }
  html.js .section-transformacion.in-view .frag,
  .frag { transform: rotate(0deg); opacity: 0.6; }
  html.js .ia-msg { opacity: 1; transform: none; }
  html.js .ops-chip { opacity: 1; transform: none; }
  html.js .final-plane { opacity: 1; transform: rotate(38deg) translate(18vw, -13vh) scale(0.8); }
  html.js .route-draw { stroke-dashoffset: 0; }
  .rm-fill { transform: scaleX(0.6); }
  .runway { transform: none !important; }
  .hero-plane-wrap { transform: translateX(-50%) !important; }
  .cmd-mini, .cmd-center { transform: none; }
  .runup-track { --runup-p: 1; }
  .runup-clear-badge { opacity: 1; transform: none; }
  .ia-cursor { animation: none; opacity: 1; }
}
