/* RitmioT · página comercial (www.ritmiot.com.ar)
   Identidad: azul #1E3A8A y turquesa #0D9488 del logo. Montserrat (títulos, como el logo)
   + Figtree (texto). Tema claro por defecto: el médico la lee de día, en el consultorio;
   oscuro si el sistema lo pide. La simulación del monitoreo es oscura siempre: es una
   pantalla de monitor. */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f6f7f9;
  --bg-2: #eceff4;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #475266;
  --line: #d9dee7;
  --navy: #1e3a8a;
  --navy-2: #172f70;
  --teal: #0b7a70;
  --teal-bg: #e3f3f1;
  --red: #c21d37;
  --red-bg: #fbe9ec;
  --amber: #8a5a00;
  --amber-bg: #fdf3dc;
  --ok: #157347;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px -12px rgba(0, 0, 0, .16);
  --logo-azul: #1e3a8a;
  --logo-turq: #0d9488;

  /* Monitor (simulación): oscuro en los dos temas */
  --mon-bg: #0b1220;
  --mon-2: #111a2c;
  --mon-3: #18233a;
  --mon-line: #24324d;
  --mon-ink: #e6edf7;
  --mon-dim: #9fb0c8;
  --mon-fc: #ff5d73;
  --mon-spo2: #5ea8ff;
  --mon-ok: #3ccf8e;
  --mon-warn: #ffc457;
  --mon-crit: #ff5d73;

  --title: "Montserrat", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1160px;
  --pad: clamp(16px, 5vw, 56px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --bg-2: #0f1828; --surface: #131d30; --ink: #e8eef7; --ink-soft: #a9b6ca;
    --line: #26334a; --navy: #9db2ff; --navy-2: #b9c8ff; --teal: #4fd1c1; --teal-bg: #10302d;
    --red: #ff8a9a; --red-bg: #3a1720; --amber: #f5c46b; --amber-bg: #33270f; --ok: #5ad69a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .55);
    --logo-azul: #b9c8ff; --logo-turq: #4fd1c1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f1828; --surface: #131d30; --ink: #e8eef7; --ink-soft: #a9b6ca;
  --line: #26334a; --navy: #9db2ff; --navy-2: #b9c8ff; --teal: #4fd1c1; --teal-bg: #10302d;
  --red: #ff8a9a; --red-bg: #3a1720; --amber: #f5c46b; --amber-bg: #33270f; --ok: #5ad69a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .55);
  --logo-azul: #b9c8ff; --logo-turq: #4fd1c1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--title); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(34px, 4.8vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 750; }
h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; }
h4 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
img, svg, video { max-width: 100%; display: block; }
strong { font-weight: 700; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line) var(--bg); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.soft { color: var(--ink-soft); }
.small { font-size: 14.5px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 650 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0b1220; } }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
:root[data-theme="dark"] .btn-primary:hover { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { color: #0b1220; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Encabezado ── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.solid { border-bottom-color: var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 40px; width: auto; }
.logo-trazo { fill: none; stroke: var(--logo-azul); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.logo-azul { fill: var(--logo-azul); }
.logo-turq { fill: var(--logo-turq); }
.logo-texto { font: 800 68px var(--title); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 520px) { .header-cta .btn-ghost { display: none; } .brand svg { height: 34px; } }

/* ── Hero ── */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.monitor { position: relative; }
.frame {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; font-size: 12.5px; color: var(--ink-soft); }
.frame img { width: 100%; height: auto; }
.hero-strip {
  position: absolute; left: -6%; right: 8%; bottom: -26px; height: 92px;
  background: var(--mon-bg); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.hero-strip svg { width: 100%; height: 100%; }
.hero-strip .grid { stroke: #1b2a44; stroke-width: 1; }
.trazo { fill: none; stroke: var(--mon-fc); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hero-strip .trazo { stroke-dasharray: var(--largo, 3000); stroke-dashoffset: var(--largo, 3000); animation: ecg 5.5s linear infinite; }
.hero-strip .rotulo { fill: var(--mon-dim); font: 600 11px var(--body); }
@keyframes ecg { 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.chip-flota {
  position: absolute; right: -10px; top: 18%; max-width: 270px;
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.chip-flota.show { opacity: 1; transform: none; }
.chip-flota b { display: block; font-size: 14.5px; }
.chip-flota .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--ok); }
.chip-flota .dot.warn { background: #d99a00; }
.chip-flota .dot.crit { background: var(--red); }
@media (max-width: 900px) { .chip-flota { right: 8px; top: 8px; } .hero-strip { left: 4%; right: 4%; } }
@media (prefers-reduced-motion: reduce) { .hero-strip .trazo { animation: none; stroke-dashoffset: 0; } }

/* ── Fila de respaldo ── */
.respaldo { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.respaldo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between; }
.respaldo li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.respaldo svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* ── Problema ── */
.problema-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .problema-grid { grid-template-columns: 1fr; } }
.linea-tiempo { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 22px 16px; }
.linea-tiempo svg { width: 100%; height: auto; }
.lt-eje { stroke: var(--line); stroke-width: 1.5; }
.lt-consulta { fill: var(--navy); }
.lt-texto { fill: var(--ink-soft); font: 600 12px var(--body); }
.lt-sin { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 3 7; }
.lt-con { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s ease .2s; }
.linea-tiempo.pre .lt-con { stroke-dashoffset: 900; }
.lt-rojo { fill: var(--red); }
.linea-tiempo { margin: 0; }
.lt-alerta { fill: var(--red); opacity: 1; transition: opacity .4s ease 2.4s; }
.linea-tiempo.pre .lt-alerta { opacity: 0; }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.leyenda i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--teal); }
.leyenda i.sin { border-top: 2px dashed var(--ink-soft); }
.dato-sinsky { margin-top: 28px; padding: 18px 20px; background: var(--teal-bg); border-radius: 14px; }
.dato-sinsky p { margin: 0; }
.dato-sinsky cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; color: var(--ink-soft); }

/* ── Video ── */
.video-sec { background: var(--bg-2); }
.video-sec header { max-width: 760px; margin-bottom: 32px; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 10; background: #0b1220; }
.pie-video { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }
.contacto { margin-top: 16px; color: var(--ink-soft); }
.contacto a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }

/* ── Funciones ── */
.funcion {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: clamp(36px, 5vw, 64px) 0;
}
.funcion + .funcion { border-top: 1px solid var(--line); }
.funcion.inv > :first-child { order: 2; }
@media (max-width: 900px) { .funcion, .funcion.inv { grid-template-columns: 1fr; } .funcion.inv > :first-child { order: 0; } }
.funcion ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.funcion li { display: flex; gap: 10px; align-items: flex-start; }
.funcion li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.funcion figure, .consultorio-grid figure { margin: 0; }
.funcion figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.apilado { display: grid; gap: 16px; }
.apilado .frame:nth-child(2) { margin-left: 12%; margin-top: -14%; position: relative; }
@media (max-width: 600px) { .apilado .frame:nth-child(2) { margin: 0; } }
.aviso-honesto { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 15px; }
.aviso-honesto strong { color: inherit; }

/* Teléfonos del cuestionario */
.telefonos { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.telefono {
  width: min(240px, 44%); border-radius: 34px; padding: 10px; background: #0d1117;
  box-shadow: var(--shadow);
}
.telefono img { border-radius: 26px; width: 100%; height: auto; }
.telefono:nth-child(2) { margin-top: 48px; }
.telefono-pantalla { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 390 / 760; }
.telefono-pantalla img { position: absolute; inset: 0; object-fit: cover; object-position: top; height: 100%; }
.onda { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 46px; display: flex; gap: 3px; align-items: center; justify-content: center;
  background: rgba(13, 17, 23, .86); border-radius: 14px; }
.onda i { width: 4px; border-radius: 4px; background: #7cc4ff; height: 30%; animation: onda 1.1s ease-in-out infinite; }
.onda i:nth-child(2n) { animation-delay: .15s; } .onda i:nth-child(3n) { animation-delay: .3s; } .onda i:nth-child(5n) { animation-delay: .45s; }
@keyframes onda { 50% { height: 85%; } }
@media (prefers-reduced-motion: reduce) { .onda i { animation: none; height: 55%; } }

/* Consultorio: lista de capacidades en dos columnas, sin tarjetas iguales */
.consultorio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .consultorio-grid { grid-template-columns: 1fr; } }
.capacidades { list-style: none; margin: 0; padding: 0; }
.capacidades li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.capacidades li:first-child { padding-top: 0; }
.capacidades svg { width: 24px; height: 24px; color: var(--navy); grid-row: span 2; margin-top: 2px; }
.capacidades h3, .capacidades h4 { margin: 0; font-size: 18.5px; }
.capacidades p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ── Simulación (monitor, siempre oscuro) ── */
.sim-sec { background: var(--mon-bg); color: var(--mon-ink); }
.sim-sec h2 { color: var(--mon-ink); }
.sim-sec .lead { color: var(--mon-dim); }
.sim { margin-top: 36px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) {
  .sim { grid-template-columns: 1fr; }
  .sim-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-lista button { grid-template-columns: 1fr; justify-items: start; gap: 6px; padding: 10px; }
  .sim-lista small { display: none; }
  .sim-lista b { font-size: 14px; }
}
.sim-panel { background: var(--mon-2); border: 1px solid var(--mon-line); border-radius: 16px; padding: 16px; min-width: 0; }
.sim-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sim-lista button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 10px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1.5px solid transparent; background: var(--mon-3); color: var(--mon-ink); cursor: pointer; font: inherit;
}
.sim-lista button[aria-pressed="true"] { border-color: var(--mon-spo2); }
.sim-lista button:hover { border-color: var(--mon-line); }
.sim-lista b { font-size: 15px; }
.sim-lista small { grid-column: 2; color: var(--mon-dim); font-size: 13px; }
.semaforo { width: 12px; height: 12px; border-radius: 50%; background: var(--mon-ok); transition: background .3s; }
.semaforo.warn { background: var(--mon-warn); }
.semaforo.crit { background: var(--mon-crit); }
.sim-flag { display: inline-block; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--mon-warn); }
.sim-cab { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.sim-cab h3 { color: var(--mon-ink); font-size: 19px; margin: 0; }
.sim-reloj { font: 700 22px var(--title); font-variant-numeric: tabular-nums; }
.sim-vitales { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--mon-dim); }
.sim-vitales b { color: var(--mon-ink); font: 700 20px var(--title); font-variant-numeric: tabular-nums; margin-right: 4px; }
.sim-grafico { width: 100%; height: auto; margin: 4px 0 6px; }
.sim-leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--mon-dim); }
.sim-leyenda span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sim-leyenda .l-fc::before { background: var(--mon-fc); }
.sim-leyenda .l-spo2::before { background: var(--mon-spo2); }
.sim-leyenda .l-noche::before { height: 10px; background: rgba(94, 168, 255, .25); }
.sim-grafico .eje { stroke: var(--mon-line); stroke-width: 1; }
.sim-grafico .noche { fill: rgba(94, 168, 255, .07); }
.sim-grafico .rot { fill: var(--mon-dim); font: 600 11px var(--body); }
.sim-grafico .fc { fill: none; stroke: var(--mon-fc); stroke-width: 1.8; stroke-linejoin: round; }
.sim-grafico .spo2 { fill: none; stroke: var(--mon-spo2); stroke-width: 1.8; stroke-linejoin: round; }
.sim-grafico .marca { stroke: var(--mon-warn); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sim-ecg { background: #fff5f6; border-radius: 10px; margin-top: 10px; overflow: hidden; display: none; }
.sim-ecg.visible { display: block; }
.sim-ecg svg { width: 100%; height: 96px; }
.sim-ecg .grid { stroke: #f6c9d1; stroke-width: .6; }
.sim-ecg .trazo { stroke: #b0102a; stroke-width: 1.4; }
.sim-ecg p { margin: 0; padding: 8px 12px; font-size: 13.5px; color: #8a0f24; background: #fde8eb; }
.sim-log { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; min-height: 66px; }
.sim-log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; color: var(--mon-dim); }
.sim-log time { color: var(--mon-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.sim-log li.warn span { color: var(--mon-warn); } .sim-log li.crit span { color: #ffb3bf; }
.sim-controles { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sim-controles button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--mon-line); background: var(--mon-3);
  color: var(--mon-ink); font: 600 15px var(--body); cursor: pointer;
}
.sim-controles button:hover { border-color: var(--mon-spo2); }
.sim-sec :focus-visible { outline-color: var(--mon-spo2); }

/* ── Evidencia ── */
.evidencia-intro { max-width: 760px; margin-bottom: 36px; }
.evidencia { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.evidencia > li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .evidencia > li { grid-template-columns: 1fr; } }
.ev-cifra { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--title); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ev-cifra small { display: block; margin-top: 6px; font: 600 13.5px/1.35 var(--body); color: var(--ink-soft); letter-spacing: 0; }
.evidencia h3 { font-size: 21px; margin-bottom: 6px; }
.evidencia p { margin: 0 0 6px; max-width: 64ch; }
.evidencia .ref { font-size: 13.5px; color: var(--ink-soft); max-width: 72ch; }
.evidencia .ref a { color: inherit; }
.evidencia li.contra .ev-cifra { color: var(--amber); }
.descargo { margin-top: 28px; font-size: 14.5px; color: var(--ink-soft); max-width: 80ch; }

/* ── Seguridad ── */
.seguridad { background: var(--surface); }
.seg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .seg-grid { grid-template-columns: 1fr; } }

/* ── Empezar ── */
.pasos { list-style: none; counter-reset: paso; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; max-width: 760px; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pasos li::before {
  content: counter(paso); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font: 800 17px var(--title);
}
:root[data-theme="dark"] .pasos li::before { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pasos li::before { color: #0b1220; } }
.pasos h3 { font-size: 21px; margin: 6px 0 0; }
.pasos p { margin: 0; color: var(--ink-soft); }

/* ── Preguntas ── */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font: 700 18px/1.35 var(--title); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

.preguntas-sec { background: var(--bg-2); }

/* ── Pie ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 15px; }
.logo-pie { height: 38px; width: auto; }
.pie-texto { margin-top: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.legal p { max-width: 60ch; }

/* ── Revelado al hacer scroll ── */
/* Visible por defecto: solo se esconde (clase .pre) lo que está fuera de pantalla al cargar,
   y vuelve al entrar. Sin JS, o con movimiento reducido, todo queda a la vista. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } }
.error-404 { padding-top: clamp(64px, 12vw, 140px); padding-bottom: 96px; }
