/* PistaLista OS — estilos basados en el design system «Augen Pro» (DESIGN.md), en versión oscura */

:root {
  color-scheme: dark;

  /* Colores del design system */
  --color-off-black: #0f1012;
  --color-pure-black: #020201;
  --color-off-white: #f2f2f4;
  --color-pure-white: #fdfdfd;
  --color-signal-blue: #0071e3;

  /* Modo oscuro: grises y azul ajustados para contraste AA sobre negro */
  --ink: var(--color-off-white);
  --ink-strong: var(--color-pure-white);
  --muted: #a1a1a6;
  --faint: #86868b;
  --blue: #2997ff;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --wash: rgba(253, 253, 253, 0.08);

  /* Superficies: la elevación se marca con tono, nunca con sombras */
  --canvas: var(--color-off-black);
  --band: #141518;
  --panel: #18191c;
  --panel-up: #1d1e22;
  --deep: var(--color-pure-black);

  /* Tipografía: PP Neue Montreal si está instalada; si no, Inter */
  --font: 'PP Neue Montreal', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --w-book: 350;
  --w-regular: 400;

  /* Radios */
  --r-nav: 10px;
  --r-button: 26px;
  --r-card: clamp(28px, 4.5vw, 54px);
  --r-shot: clamp(12px, 1.4vw, 18px);
  --r-pill: 9999px;

  /* Espaciado y layout */
  --max: 1200px;
  --card-pad: clamp(24px, 5.6vw, 69px);
  --section-y: clamp(64px, 9vw, 100px);
  --gap: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-book);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01" on, "ss02" on, "cv01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: var(--w-book); color: var(--ink-strong); }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: rgba(41, 151, 255, 0.35); color: var(--ink-strong); }

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-nav);
  background: var(--panel);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(100% - 64px, var(--max)); }
}

/* Tipos */
.display {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(27px, 2.9vw, 36px);
  line-height: 1.12;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--faint);
}

.lead {
  font-size: 18px;
  line-height: 1.38;
  color: var(--muted);
  max-width: 34ch;
}

.note {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.i { width: 14px; height: 14px; flex: none; }
.i--blue { color: var(--blue); }

.mark { width: 26px; height: 16px; flex: none; }

/* Componentes */

/* Pill Tag Chip */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 0.5px solid var(--blue);
  border-radius: var(--r-pill);
  color: var(--blue);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.tag--muted {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--muted);
}

/* Floating CTA Pill */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-button);
  background: var(--wash);
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: var(--w-regular);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cta:hover { background: rgba(253, 253, 253, 0.13); }
.cta:active { background: rgba(253, 253, 253, 0.17); }
.cta--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Signal Blue Text Link */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s ease;
}
.link:hover { border-bottom-color: var(--blue); }

/* Rounded Card */
.card {
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--card-pad);
}
.inset {
  background: var(--canvas);
  border: 0.5px solid var(--line);
  border-radius: clamp(20px, 2.6vw, 30px);
}
.section--alt { background: var(--band); }
.section--alt .card { background: var(--panel-up); }

/* Pill Navigation Bar */
.nav {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(100% - 32px, 1000px);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 6px 6px 14px;
  background: rgba(24, 25, 28, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border: 0.5px solid var(--line-strong);
  border-radius: var(--r-nav);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: 22px;
}
.nav__links a { white-space: nowrap; color: var(--ink); }
.nav__links a,
.footer__links a {
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}
.nav__links a:hover,
.footer__links a:hover { text-decoration-line: underline; }
.nav__end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  place-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink-strong);
  transition: transform 0.25s ease;
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 14px;
    background: var(--panel);
    border: 0.5px solid var(--line-strong);
    border-radius: var(--r-nav);
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s;
  }
  .nav__links a {
    padding: 14px 0;
    font-size: 18px;
    border-top: 0.5px solid var(--line);
  }
  .nav__links a:first-child { border-top: 0; }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
}
@media (min-width: 900px) {
  .nav {
    top: 34px;
    width: auto;
    gap: 30px;
    padding: 6px 6px 6px 16px;
  }
  .nav__links a { font-size: 15px; }
  .nav__end { margin-left: 0; }
}

/* Secciones */
.section { padding-block: var(--section-y); }

/* Section Label Pair, en rejilla asimétrica de tres columnas */
.shead {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.shead p:not(.label) {
  color: var(--muted);
  line-height: 1.4;
  max-width: 44ch;
}
@media (min-width: 900px) {
  .shead {
    grid-template-columns: 180px minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
  .shead .label { padding-top: 0.9em; }
  .shead p:not(.label) { padding-top: 0.35em; }
}

/* Hero */
.hero {
  padding-top: 104px;
  padding-bottom: clamp(48px, 7vw, 90px);
}
.hero__grid {
  display: grid;
  gap: 48px;
}
.hero__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero__copy .label { margin-top: 10px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
}
@media (min-width: 900px) {
  .hero {
    min-height: min(100svh, 920px);
    display: flex;
    align-items: center;
    padding-top: 150px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
  }
}

/* Update Banner */
.banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.banner:hover { background: rgba(255, 255, 255, 0.1); }

/* Capturas: pantalla del simulador y móvil */
.hero__visual { display: grid; gap: 14px; }
.rig {
  position: relative;
  padding: 0 22% 5% 0;
}
.monitor {
  container-type: inline-size;
  position: relative;
}
.screen {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1cqw solid #1f2024;
  border-radius: 2.2cqw;
  outline: 0.5px solid var(--line-strong);
  overflow: hidden;
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.monitor__stand {
  width: 16%;
  height: 5cqw;
  margin: 0 auto;
  background: #26272b;
  clip-path: polygon(32% 0, 68% 0, 82% 100%, 18% 100%);
}
.monitor__stand::after {
  content: "";
  display: block;
  width: 140%;
  height: 0.9cqw;
  margin-left: -20%;
  translate: 0 4.1cqw;
  background: #2c2d32;
  border-radius: 1cqw;
}
.phone {
  container-type: inline-size;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
}
.phone__body {
  padding: 2.6cqw;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15cqw;
  outline: 2.4cqw solid var(--canvas);
}
.phone__screen {
  aspect-ratio: 390 / 820;
  border-radius: 12.5cqw;
  overflow: hidden;
  background: #000;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.shot-cap,
.shot figcaption {
  font-size: 12px;
  line-height: 1.3;
  color: var(--faint);
}
@media (max-width: 899px) {
  .rig { padding: 0 25% 4% 0; }
  .phone { width: 26%; }
}

/* Captura de pantalla dentro de una tarjeta */
.shot {
  display: grid;
  gap: 10px;
  align-content: start;
}
.shot img {
  width: 100%;
  border-radius: var(--r-shot);
  border: 0.5px solid var(--line-strong);
  background: #000;
}

/* El problema */
.compare {
  display: grid;
  gap: 40px;
}
.compare__col {
  display: grid;
  gap: 22px;
  align-content: start;
}
.compare__col > .tag { justify-self: start; }
.compare__list {
  counter-reset: paso;
}
.compare__list li {
  counter-increment: paso;
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 0.5px solid var(--line-strong);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink-strong);
}
.compare__list li::before {
  content: counter(paso, decimal-leading-zero);
  min-width: 22px;
  padding-top: 0.25em;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.compare__col--old .compare__list li { color: var(--muted); }
.compare__foot {
  padding-top: 15px;
  border-top: 0.5px solid var(--line-strong);
  color: var(--muted);
}
@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 0; }
  .compare__col + .compare__col {
    padding-left: clamp(30px, 5vw, 69px);
    margin-left: clamp(30px, 5vw, 69px);
    border-left: 0.5px solid var(--line-strong);
  }
}

/* Cómo funciona */
.steps {
  display: grid;
  gap: 30px;
}
.step {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
}
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); line-height: 1.4; }
.step + .step {
  padding-top: 30px;
  border-top: 0.5px solid var(--line-strong);
}
@media (min-width: 640px) and (max-width: 1023px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 34px; }
  .step + .step { padding-top: 0; border-top: 0; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .step + .step {
    padding-top: 0;
    padding-left: 30px;
    margin-left: 30px;
    border-top: 0;
    border-left: 0.5px solid var(--line-strong);
  }
}

/* Funciones */
.features {
  display: grid;
  gap: var(--gap);
}
.feature {
  display: grid;
  gap: 14px;
  align-content: start;
}
.feature h3,
.brandcase h3,
.calc h3 {
  font-size: 27px;
  line-height: 1.15;
}
.feature > p:not(.label):not(.note),
.feature__text > p:not(.label) {
  color: var(--muted);
  line-height: 1.4;
}
.feature__text {
  display: grid;
  gap: 14px;
  align-content: start;
}
.feature .note { margin-top: auto; padding-top: 8px; }
.feature--wide { gap: 36px; }
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px 56px;
    align-items: center;
  }
  .feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip .shot { order: -1; }
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.ticks li {
  position: relative;
  padding-left: 20px;
  line-height: 1.35;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}

/* Maqueta: HUD (no hay captura posible fuera de Assetto Corsa) */
.hud {
  container-type: inline-size;
  background: #060607;
  border: 0.5px solid var(--line-strong);
  border-radius: clamp(20px, 2.6vw, 30px);
  color: var(--color-pure-white);
}
.hud__in {
  display: grid;
  gap: 3.4cqw;
  padding: 4.4cqw;
}
.hud__leds {
  display: flex;
  justify-content: center;
  gap: 1.3cqw;
}
.hud__leds i {
  width: 3.2cqw;
  aspect-ratio: 1;
  border: 1px solid rgba(253, 253, 253, 0.18);
  border-radius: 50%;
}
.hud__leds .on { background: var(--color-pure-white); border-color: var(--color-pure-white); }
.hud__leds .on--b { background: transparent; border: 0.8cqw solid var(--blue); }
.hud__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3cqw;
}
.hud__col { display: grid; gap: 0.6cqw; }
.hud__col--r { justify-items: end; text-align: right; }
.hud__k { font-size: 1.9cqw; color: rgba(253, 253, 253, 0.55); margin-top: 1.4cqw; }
.hud__k:first-child { margin-top: 0; }
.hud__v { font-size: 3.4cqw; font-variant-numeric: tabular-nums; }
.hud__v--big { font-size: 6.4cqw; line-height: 1; }
.hud__center {
  display: grid;
  justify-items: center;
  gap: 1cqw;
}
.hud__gear {
  font-size: 17cqw;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.hud__speed { font-size: 2.8cqw; }
.hud__speed small { font-size: 1.8cqw; color: rgba(253, 253, 253, 0.55); }
.hud__pedals {
  display: flex;
  gap: 1.2cqw;
  height: 8cqw;
  margin-top: 1cqw;
}
.hud__pedals span {
  position: relative;
  width: 1.6cqw;
  border-radius: 1cqw;
  background: rgba(253, 253, 253, 0.12);
  overflow: hidden;
}
.hud__pedals span::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--v) * 100%);
  background: var(--color-pure-white);
}
.hud__map { width: 26cqw; color: var(--color-pure-white); margin-bottom: 1cqw; }
.hud__map circle { stroke: var(--blue); }
.hud__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4cqw;
  align-items: center;
}
.hud__sectors span {
  padding: 0.7cqw 1.8cqw;
  border: 0.5px solid rgba(253, 253, 253, 0.2);
  border-radius: var(--r-pill);
  font-size: 2cqw;
  font-variant-numeric: tabular-nums;
}
.hud__sectors b { font-weight: var(--w-book); color: rgba(253, 253, 253, 0.55); margin-right: 0.6cqw; }
.hud__sectors .is-best { border-color: var(--blue); }
.hud__sectors .hud__flag {
  margin-left: auto;
  border: 1px solid var(--color-pure-white);
}

/* Módulos del panel */
.modules {
  display: grid;
}
.modules div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 0.5px solid var(--line-strong);
}
.modules dt { color: var(--ink-strong); }
.modules dd { color: var(--muted); line-height: 1.38; }
@media (min-width: 520px) {
  .modules div { grid-template-columns: 120px 1fr; gap: 18px; }
}
@media (min-width: 900px) {
  .feature--wide > .modules {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
  }
  .feature--wide > .modules div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0 4px; }
}

/* Maqueta: centro de operaciones */
.ops { padding: clamp(16px, 2.2vw, 24px); }
.ops__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.ops__head span:first-child { color: var(--ink-strong); }
.ops__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .ops__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sim {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 14px 14px 18px;
  background: var(--panel);
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  font-size: 13px;
  overflow: hidden;
}
.sim__id { color: var(--faint); font-size: 11px; }
.sim__st { grid-column: 1 / -1; font-size: 15px; color: var(--ink-strong); }
.sim__who { color: var(--muted); }
.sim__left { font-variant-numeric: tabular-nums; }
.sim.is-live { border-color: var(--blue); }
.sim.is-live .sim__st { color: var(--blue); }
.sim.is-off { opacity: 0.5; }
.sim__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.sim__bar::after {
  content: "";
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: var(--ink-strong);
}

/* Con tu marca */
.points {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.points div {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
  padding-top: 18px;
  border-top: 0.5px solid var(--line-strong);
}
.points p { color: var(--muted); line-height: 1.4; }
@media (min-width: 640px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}
@media (min-width: 1024px) {
  .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.brands {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 900px) {
  .brands { grid-template-columns: 1fr 1fr; }
}
.brandcase {
  display: grid;
  gap: 30px;
  align-content: start;
}
.brandcase .rig { padding-bottom: 0; }
.brandcase .phone__body { outline-color: var(--panel-up); }
.brandcase figcaption {
  display: grid;
  gap: 8px;
}
.brandcase figcaption p:not(.label) { color: var(--muted); line-height: 1.4; }

/* Precios */
.prices {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 900px) {
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price {
  display: grid;
  gap: 10px;
  align-content: start;
}
.price__amount {
  margin-top: 14px;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.price__term {
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
}
.price p:last-child { line-height: 1.4; padding-top: 8px; }

.calc {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  margin-top: var(--gap);
}
.calc__top {
  display: grid;
  gap: 36px;
}
.calc__input {
  display: grid;
  gap: 12px;
  align-content: start;
}
.calc__count {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}
.calc__count output {
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.calc__out { display: grid; align-content: end; }
.calc__out div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 0.5px solid var(--line-strong);
}
.calc__out dt { color: var(--muted); }
.calc__out dd { font-size: 27px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.calc__out .is-total dt { color: var(--ink-strong); }
.calc__out .is-total dd { font-size: clamp(36px, 4vw, 48px); }
@media (min-width: 900px) {
  .calc__top { grid-template-columns: 1fr 1fr; gap: 69px; }
}

/* Control deslizante: el azul solo como borde */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  --p: 13.8%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ink-strong) var(--p), rgba(255, 255, 255, 0.14) var(--p));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -12px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--color-pure-white);
}
input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--ink-strong); }
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--color-pure-white);
}
input[type="range"]:focus-visible { outline-offset: 6px; border-radius: 6px; }

.calc__table { display: grid; gap: 14px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  padding-bottom: 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
th, td {
  padding: 13px 0;
  border-top: 0.5px solid var(--line-strong);
  text-align: right;
  font-weight: var(--w-book);
}
th { font-size: 12px; color: var(--faint); }
th:first-child, td:first-child { text-align: left; }
td:last-child { color: var(--ink-strong); }
tr.is-match td { color: var(--blue); }
@media (max-width: 520px) {
  th, td { font-size: 14px; padding-inline: 2px; }
  th { font-size: 11px; }
}

.terms {
  display: grid;
  gap: 26px;
  margin-top: clamp(40px, 6vw, 69px);
}
.terms div {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 0.5px solid var(--line-strong);
}
.terms p { color: var(--muted); line-height: 1.4; max-width: 52ch; }
@media (min-width: 760px) {
  .terms { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Requisitos */
.req {
  display: grid;
  gap: clamp(40px, 6vw, 69px);
}
@media (min-width: 900px) {
  .req { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
}
.reqlist { display: grid; }
.reqlist li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 0.5px solid var(--line-strong);
}
.reqlist li:first-child { border-top: 0; padding-top: 0; }
.reqlist li:last-child { padding-bottom: 0; }
.reqlist .tag { justify-self: start; }
.reqlist p { font-size: 18px; line-height: 1.35; color: var(--ink-strong); }

.faq h3 { margin-bottom: 14px; color: var(--faint); font-size: 12px; }
.faq details { border-top: 0.5px solid var(--line-strong); }
.faq details:last-child { border-bottom: 0.5px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 0.5px solid var(--blue);
  border-radius: 50%;
  background: center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%232997ff' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: rotate 0.25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  padding: 0 34px 20px 0;
  color: var(--muted);
  line-height: 1.45;
}

/* Demo */
.demo {
  display: grid;
  gap: 44px;
}
.demo__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}
.demo__copy > p:not(.label) {
  color: var(--muted);
  line-height: 1.4;
  max-width: 40ch;
}
.demo h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.demo__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
@media (min-width: 900px) {
  .demo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 69px; }
}

.form {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full, .form__end, .form__status { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.field label span { color: var(--faint); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink-strong);
  background: var(--canvas);
  border: 0.5px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline: 0.5px solid var(--blue);
  outline-offset: 0;
}
.field input[aria-invalid="true"] { border-color: var(--ink-strong); }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.form__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
}
.form__note { font-size: 13px; color: var(--faint); }
.form__status { font-size: 14px; line-height: 1.4; color: var(--muted); }
.form__status:empty { display: none; }

/* Dark Band Footer: en la versión oscura baja un tono, hasta el negro puro */
.footer {
  padding: 50px 0 44px;
  background: var(--deep);
  border-top: 0.5px solid var(--line);
  color: var(--ink-strong);
  text-align: center;
}
.footer .wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  text-decoration: none;
}
.footer__tag { color: var(--muted); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 14px;
  font-size: 14px;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--ink-strong); }
.footer__legal {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

/* Aparición al hacer scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* El hero entra al cargar, sin esperar al scroll */
.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both;
}
.js .hero .hero__visual { --d: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .reveal { animation: none; }
}
