/* RetoDx · landing pública. Misma paleta "Turno de noche" que el simulador. */

:root {
  --bg: #070b0e;
  --s0: #0d1418;
  --s1: #121b21;
  --s2: #18242c;
  --s3: #1f2e37;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #edf2f5;
  --ink-2: #b8c5cd;
  --muted: #7d8f9a;
  --accent: #2ee6a8;
  --accent-soft: rgba(46, 230, 168, 0.13);
  --accent-line: rgba(46, 230, 168, 0.38);
  --warm: #ffcf8a;
  --info: #7cbcff;
  --warn: #f2b53c;
  --danger: #ff6b6b;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #05231a; padding: .5rem 1rem; z-index: 99; font-weight: 600; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #8ff5d2 45%, var(--warm) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { font-family: var(--display); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: .9rem; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.14rem); max-width: 56ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-size: .92rem; font-weight: 600; text-decoration: none;
  padding: .62rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--ink); background: rgba(255,255,255,.03); white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.primary {
  background: var(--accent); color: #04231a; border-color: transparent;
  box-shadow: 0 0 0 0 rgba(46,230,168,.5), 0 10px 30px -8px rgba(46,230,168,.55);
}
.btn.primary:hover { box-shadow: 0 0 0 6px rgba(46,230,168,.14), 0 14px 38px -8px rgba(46,230,168,.7); }
.btn.ghost { backdrop-filter: blur(8px); }
.btn.xl { font-size: 1rem; padding: .9rem 1.6rem; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem); transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 11, 14, .78); backdrop-filter: blur(14px); border-color: var(--line); padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent); animation: beat 1.6s var(--ease) infinite; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { text-decoration: none; font-size: .9rem; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: .5rem; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-cta .ghost { display: none; } }

@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.35); } 20% { transform: scale(1); } 30% { transform: scale(1.2); } }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 7rem clamp(1rem, 4vw, 2.5rem) 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-room { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1); transform: scale(1.08); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 70% 40%, transparent 0%, rgba(7,11,14,.55) 60%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(7,11,14,.85) 38%, rgba(7,11,14,.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.grid-glow {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 55% at 25% 55%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 500; color: var(--ink-2);
  padding: .4rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); backdrop-filter: blur(6px); margin-bottom: 1.5rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: beat 1.6s infinite; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions.center { justify-content: center; }
.hero-proof { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .85rem; color: var(--muted); }
.hero-proof strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

.hero-visual { position: relative; perspective: 1200px; }
.stage {
  position: relative; aspect-ratio: 4 / 5; max-width: 470px; margin-inline: auto;
  border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 55% at 50% 30%, rgba(255,207,138,.18), transparent 70%), linear-gradient(180deg, #121c23, #080d11);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(46,230,168,.05), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.stage::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--accent-line), transparent 40%, transparent 60%, rgba(255,207,138,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stage-patient { position: absolute; inset: 6% 8% 0; width: 84%; height: 94%; object-fit: cover; object-position: top; border-radius: 0 0 28px 28px; mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

.card {
  position: absolute; border-radius: 16px; padding: .85rem 1rem; border: 1px solid var(--line-2);
  background: rgba(13, 20, 24, .78); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
  transform: translateZ(60px);
}
.monitor { top: 8%; right: -9%; width: 230px; font-family: var(--mono); }
.monitor-row { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: .35rem .5rem; }
.mlabel { font-size: .65rem; color: var(--muted); letter-spacing: .08em; }
.mvalue { font-size: 1.3rem; font-weight: 600; }
.mvalue.hr { color: var(--accent); }
.mvalue.spo2 { color: var(--info); }
.ecg { width: 100%; height: 40px; margin: .3rem 0 .2rem; }
.ecg polyline, .final-ecg polyline {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420; filter: drop-shadow(0 0 4px var(--accent)); animation: trace 2.6s linear infinite;
}
.mfoot { font-size: .62rem; color: var(--muted); }
@keyframes trace { to { stroke-dashoffset: -420; } }

.chat { bottom: 22%; left: -12%; width: 250px; display: grid; gap: .5rem; }
.bubble { font-size: .84rem; line-height: 1.4; padding: .55rem .8rem; border-radius: 14px; }
.bubble.me { background: var(--accent-soft); border: 1px solid var(--accent-line); border-bottom-right-radius: 4px; justify-self: end; }
.bubble.them { background: var(--s3); border-bottom-left-radius: 4px; justify-self: start; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.score { bottom: 5%; right: -6%; width: 210px; }
.score-kicker { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-family: var(--display); }
.score-bars { display: grid; gap: .45rem; margin-top: .5rem; }
.score-bars div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-2); }
.score-bars b, .meter .bar b, .opt b {
  display: block; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #8ff5d2);
  width: calc(var(--v) * 100%); transform-origin: left; animation: grow 1.4s .6s var(--ease) both;
}
.score-bars b.safe, .meter .bar b.safe { background: linear-gradient(90deg, var(--info), #b7dcff); }
@keyframes grow { from { transform: scaleX(0); } }

.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 7s -2s ease-in-out infinite; }
.float-c { animation: floaty 6.5s -4s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; z-index: 1; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 99px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .stage { max-width: 360px; }
  .monitor { right: -4%; width: 190px; }
  .chat { left: -4%; width: 210px; }
  .score { right: -2%; width: 180px; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .stage { max-width: 290px; }
  .monitor { right: -2%; top: 4%; width: 160px; padding: .6rem .7rem; }
  .mvalue { font-size: 1.05rem; }
  .chat { left: -2%; width: 180px; }
  .bubble { font-size: .76rem; }
  .score { right: 0; width: 160px; }
}

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--s0); padding: 1.1rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--muted); padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 3.2rem; }
.marquee-track span::after { content: "✚"; color: var(--accent); font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section h2, .final h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: s; }
.step {
  position: relative; padding: 1.6rem 1.3rem; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--s1), var(--s0)); transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.step-n { position: absolute; top: 1rem; right: 1.1rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 1.2rem; }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse .split-copy { order: 2; }
.split h2 { margin-bottom: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: center; color: var(--ink-2); }
.checks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-copy { order: 0; } }

.room-frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.room-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-frame:hover img { transform: scale(1.04); }
.room-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,14,.55), transparent 50%); pointer-events: none; }
.tag { position: absolute; z-index: 1; font-size: .75rem; font-weight: 600; font-family: var(--display); padding: .35rem .75rem; border-radius: 99px; background: rgba(7,11,14,.72); border: 1px solid var(--accent-line); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: .4rem; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
.t1 { top: 16%; right: 8%; } .t2 { bottom: 20%; left: 38%; } .t3 { top: 46%; left: 18%; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,230,168,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(46,230,168,0); } }

/* ---------- Evaluación ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 1rem; }
.tile { padding: 1.7rem; border-radius: 22px; border: 1px solid var(--line); background: var(--s0); position: relative; overflow: hidden; transition: border-color .3s; }
.tile:hover { border-color: var(--line-2); }
.tile.big { grid-column: span 2; grid-row: span 2; background: radial-gradient(90% 80% at 100% 0%, rgba(46,230,168,.12), transparent 60%), var(--s0); display: flex; flex-direction: column; }
.tile h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.tile.big h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.tile p { color: var(--ink-2); font-size: .95rem; }
.tile.big > p:first-of-type { font-size: 1.05rem; max-width: 52ch; }
.tile strong { color: var(--ink); }
.tile-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-family: var(--display); margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent); }
.tile-icon.warn { background: rgba(242,181,60,.13); color: var(--warn); }
.tile-icon.info { background: rgba(124,188,255,.13); color: var(--info); }
.meters { display: grid; gap: 1.2rem; margin-top: auto; padding-top: 2rem; }
.meter { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 1rem; font-family: var(--display); font-weight: 600; }
.meter .bar { height: 12px; border-radius: 99px; background: var(--s2); overflow: hidden; }
.meter .bar b { height: 100%; }
.meter em { font-style: normal; font-family: var(--mono); font-size: 1.3rem; text-align: right; }
.fine { font-size: .75rem !important; color: var(--muted) !important; margin-top: .8rem; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile.big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .meter { grid-template-columns: 76px 1fr 36px; } }

/* ---------- Progreso ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { padding: 1.5rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--s1), var(--s0)); transition: transform .3s var(--ease); }
.stat:nth-child(2), .stat:nth-child(4) { transform: translateY(1.5rem); }
.stat:hover { border-color: var(--accent-line); }
.stat-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,207,138,.12); color: var(--warm); font-size: 1.1rem; margin-bottom: .9rem; }
.stat h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.stat p { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat:nth-child(2), .stat:nth-child(4) { transform: none; } }

/* ---------- Docentes ---------- */
.teach {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px; border: 1px solid var(--line-2);
  background: radial-gradient(60% 80% at 0% 100%, rgba(124,188,255,.12), transparent 60%), radial-gradient(50% 70% at 100% 0%, rgba(46,230,168,.1), transparent 60%), var(--s0);
}
.teach h2 { margin-bottom: 1.1rem; }
.teach .lead { margin-bottom: 1.8rem; }
.teach-visual { position: relative; height: 300px; }
.screen { position: absolute; inset: 0 14% 12% 0; border-radius: 16px; border: 1px solid var(--line-2); background: var(--s1); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.screen-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); }
.poll { padding: 1.3rem 1.4rem; display: grid; gap: .8rem; }
.poll-q { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: .3rem; }
.opt { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: .7rem; }
.opt span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--s3); font-family: var(--display); font-size: .78rem; font-weight: 700; }
.opt b { height: 26px; border-radius: 8px; background: linear-gradient(90deg, rgba(46,230,168,.55), rgba(46,230,168,.18)); }
.phone { position: absolute; right: 0; bottom: 0; width: 120px; height: 220px; border-radius: 24px; border: 2px solid var(--line-2); background: var(--bg); padding: 1.8rem .8rem .8rem; display: grid; gap: .5rem; align-content: start; box-shadow: 0 30px 60px -15px rgba(0,0,0,.9); animation: floaty 6s ease-in-out infinite; }
.phone-notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 6px; border-radius: 9px; background: var(--s3); }
.phone-btn { padding: .6rem; border-radius: 12px; text-align: center; font-family: var(--display); font-weight: 700; background: var(--s2); border: 1px solid var(--line); }
.phone-btn.on { background: var(--accent); color: #04231a; box-shadow: 0 0 20px rgba(46,230,168,.4); }
@media (max-width: 900px) { .teach { grid-template-columns: 1fr; } .teach-visual { height: 260px; } }

/* ---------- Seguridad ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-item { padding: 1.6rem; border-radius: 20px; border: 1px solid var(--line); background: var(--s0); border-top: 2px solid var(--accent-line); }
.trust-item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.trust-item p { color: var(--ink-2); font-size: .92rem; }
.disclaimer { margin: 2rem auto 0; max-width: 70ch; text-align: center; font-size: .85rem; color: var(--warm); opacity: .9; }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Llamada final ---------- */
.final { position: relative; overflow: hidden; text-align: center; margin: 0 clamp(1rem, 4vw, 2.5rem) 5rem; padding: clamp(4rem, 9vw, 7rem) 1.5rem; border-radius: 36px; border: 1px solid var(--accent-line); background: var(--s0); }
.final-glow { position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 110%, rgba(46,230,168,.28), transparent 70%), radial-gradient(40% 50% at 50% -10%, rgba(255,207,138,.14), transparent 70%); }
.final-ecg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 90px; translate: 0 -50%; opacity: .16; }
.final-ecg polyline { stroke-dasharray: 900; stroke-dashoffset: 900; animation-duration: 4s; }
.final h2, .final .lead, .final .hero-actions { position: relative; }
.final h2 { margin-bottom: 1rem; }
.final .lead { margin: 0 auto 2.2rem; }

/* ---------- Pie ---------- */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer nav { display: flex; gap: 1.4rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .trust .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .trust .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ecg polyline, .final-ecg polyline { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Lista de espera de la beta ---------- */
.final { text-align: left; scroll-margin-top: 90px; }
.beta-grid { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.beta-copy .lead { margin: 0 0 1.8rem; }
.perks { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 1rem; }
.perks li { display: grid; grid-template-columns: 26px 1fr; column-gap: .8rem; }
.perks li::before { content: "✦"; grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,207,138,.12); color: var(--warm); font-size: .8rem; }
.perks strong { font-family: var(--display); font-weight: 600; }
.perks span { color: var(--ink-2); font-size: .92rem; }
.small-note { font-size: .85rem; color: var(--muted); }
.small-note a { color: var(--accent); }

.beta-card {
  position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 26px;
  background: rgba(13, 20, 24, .82); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.beta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.f { display: grid; gap: .4rem; font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.f-wide { grid-column: 1 / -1; }
.f em { color: var(--accent); font-style: normal; }
.f input, .f select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: .72rem .9rem; border-radius: 12px;
  background: var(--s1); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s;
}
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.f select:invalid { color: var(--muted); }
.f input::placeholder { color: var(--muted); }
.f input:focus, .f select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.f input[aria-invalid="true"], .f select[aria-invalid="true"] { border-color: var(--danger); }
.at-field { position: relative; display: block; }
.at-field b { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 500; pointer-events: none; }
.at-field input { padding-left: 1.9rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--accent); }
.check a { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: rgba(255,107,107,.12); color: #ffb3b3; font-size: .86rem; }
.beta-form .btn.xl { width: 100%; margin-top: .3rem; }
.beta-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }

.beta-done { text-align: center; padding: 2rem 1rem; display: grid; justify-items: center; gap: .8rem; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; color: #04231a; background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft), 0 0 40px rgba(46,230,168,.5); animation: pop .6s var(--ease); }
.beta-done.warn .done-icon { background: var(--warn); box-shadow: 0 0 0 10px rgba(242,181,60,.13); }
.beta-done h3 { font-size: 1.5rem; }
.beta-done p { color: var(--ink-2); max-width: 40ch; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .beta-form { grid-template-columns: 1fr; } }
.f textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: .72rem .9rem; border-radius: 12px; resize: vertical; min-height: 88px;
  background: var(--s1); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s;
}
.f textarea::placeholder { color: var(--muted); }
.f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
