/* Landing de Aldía. Los tokens son los de la app (web/src/styles/tokens.css, que salen del boceto):
   Noche y oro, la paleta por defecto de la app y del acceso de Keycloak, en oscuro y en claro. El oro
   es el acento y el texto sobre él es oscuro (--on-brand); verde, naranja y rojo quedan para estados.
   Si cambian allá, cambian aquí. Lo único propio de la landing son los tamaños grandes de los títulos
   (--fs-2xl y --fs-hero), en rem como el resto de la escala. */
:root {
  --bg: #0d1626;
  --surface: #142036;
  --surface-2: #101b2e;
  --surface-3: #1f2d47;
  --line: #2c3b58;
  --line-soft: #1a2740;
  --text: #eef1f6;
  --muted: #b3bccb;
  --muted-2: #a1abbd;
  --brand: #e3b950;
  --brand-soft: #e9c97a;
  --on-brand: #0d1626;
  --brand-dim: rgba(227, 185, 80, 0.12);
  --brand-line: rgba(227, 185, 80, 0.5);
  --ok: #2fb679;
  --warn: #f59443;
  --bad: #e5486a;
  --ok-dim: rgba(47, 182, 121, 0.16);
  --warn-dim: rgba(245, 148, 67, 0.16);
  --bad-dim: rgba(229, 72, 106, 0.16);
  --warn-ink: #ffb070;
  --bad-ink: #ff8fa6;
  --ok-ink: #4ade9b;
  --bad-strong: #c02646;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --logo: url("logo-oro-oscuro.png");
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", "Cascadia Mono", Consolas, monospace;
  --fs-xs: 0.8125rem; /* 13 */
  --fs-sm: 0.9375rem; /* 15 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.25rem;   /* 20 */
  --fs-xl: 1.5rem;    /* 24 */
  --fs-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);   /* 28 a 40: títulos de sección */
  --fs-hero: clamp(2.25rem, 1.3rem + 3.8vw, 4rem);    /* 36 a 64: el título principal */
  --wrap: 1180px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --surface-3: #e7ebf2;
  --line: #d5dbe6;
  --line-soft: #e5e9f0;
  --text: #0d1626;
  --muted: #3f4a5e;
  --muted-2: #535e72;
  --brand: #d9ab3f;
  --brand-soft: #7d5a0c;
  --on-brand: #0d1626;
  --brand-dim: rgba(217, 171, 63, 0.12);
  --brand-line: rgba(217, 171, 63, 0.45);
  --ok-dim: rgba(18, 120, 74, 0.1);
  --warn-dim: rgba(245, 148, 67, 0.2);
  --bad-dim: rgba(180, 35, 63, 0.1);
  --warn-ink: #9a4a00;
  --bad-ink: #b4233f;
  --ok-ink: #12784a;
  --shadow: 0 24px 60px -28px rgba(13, 22, 38, 0.28);
  --logo: url("logo-oro-claro.png");
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs-md)/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
small { font-size: var(--fs-xs); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.mono { font-family: var(--mono); white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; transform: translateY(-150%);
}
.skip:focus { transform: none; }
#main:focus { outline: none; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 24px; }

/* Iconos: los trazos de ICONS del boceto (24 px, grosor 1,8, puntas redondas). */
.ico { display: inline-flex; flex: none; width: 18px; height: 18px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 24px; height: 24px; }
.ico.brand { color: var(--brand-soft); }
.ico.ok { color: var(--ok-ink); }

/* Botones: los del boceto, más grandes para la llamada a la acción. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s, filter 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn.primary { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.big { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: var(--fs-md); }
.btn.big .ico { width: 18px; height: 18px; }
.theme-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--text);
}
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn:hover { border-color: var(--brand); }
[data-theme="light"] .icon-moon, [data-theme="dark"] .icon-sun { display: none; }

/* Cabecera fija, translúcida sobre el contenido. */
.top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line-soft); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 36px; height: 32px; background: var(--logo) center / contain no-repeat; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: var(--fs-sm); letter-spacing: 0.04em; }
.brand-copy span { color: var(--muted); font-size: var(--fs-xs); }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.top-nav a:hover { background: var(--surface); color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
/* La cuadrícula de un calendario, de fondo: «Al día», el calendario es la estructura. */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.accent { color: var(--brand-soft); }
.lead { max-width: 40rem; color: var(--muted); font-size: var(--fs-lg); line-height: 1.55; text-wrap: pretty; }
.hero .lead { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof .ico { color: var(--brand-soft); }

.hero-visual { position: relative; padding: 0 8px 64px; }
.today-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px 4px;
  color: var(--muted); font-size: var(--fs-sm);
}
.today-bar b { color: var(--text); }
.charge-card {
  display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
}
.charge-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.charge-head div { display: grid; gap: 2px; }
.charge-head strong { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.code { color: var(--muted); font-size: var(--fs-xs); }
.amount { font-size: var(--fs-lg); font-weight: 600; }
.charge-phrase { color: var(--muted); }
.charge-phrase b { color: var(--text); }

/* El mes dibujado como tira de días (la columna «Cuándo cobra» del boceto). */
.strip-block { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.strip { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.strip i { flex: 1; height: 12px; border-radius: 2px; background: var(--line); transform-origin: bottom; }
.strip i.any { background: var(--brand-line); }
.strip i.cut { height: 34px; background: var(--brand); }
.strip i.today { height: 24px; background: var(--text); }
.strip.small { width: 100%; max-width: 220px; height: 22px; gap: 2px; }
.strip.small i { height: 8px; }
.strip.small i.cut { height: 22px; }
.strip-legend { display: flex; gap: 16px; color: var(--muted); font-size: var(--fs-xs); }
.strip-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.strip-legend i.cut { background: var(--brand); }
.strip-legend i.today { background: var(--text); }

/* El ciclo: pagaron, atrasados y a tiempo (los colores de estado del boceto). */
.cycle { display: grid; gap: 10px; }
.cycle-bar { display: flex; gap: 3px; height: 10px; overflow: hidden; border-radius: 99px; }
.cycle-bar i { width: var(--w); border-radius: 99px; }
.cycle-bar .paid, .cycle-legend .paid { background: var(--ok); }
.cycle-bar .late, .cycle-legend .late { background: var(--bad); }
.cycle-bar .ontime, .cycle-legend .ontime { background: var(--surface-3); }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--fs-xs); }
.cycle-legend li { display: flex; align-items: center; gap: 6px; }
.cycle-legend i { width: 9px; height: 9px; border-radius: 50%; }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow);
  font-size: var(--fs-sm);
}
.float div { display: grid; line-height: 1.3; }
.float span:not(.ico) { color: var(--muted); font-size: var(--fs-xs); }
.float .ico { width: 22px; height: 22px; }
/* Un solo lugar para las notificaciones: se turnan, nunca se ven las dos a la vez. */
.float-notice, .float-paid { right: -16px; bottom: 0; }
.float-paid { display: none; }
.js .float-paid { display: flex; }

/* Secciones */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 48px; }
.section-head h2, .money h2, .closing h2 { font-size: var(--fs-2xl); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }

/* Antes y después */
.compare { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.compare-head, .compare-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compare-head span { padding: 14px 24px; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.compare-head span + span { border-left: 1px solid var(--line-soft); color: var(--brand-soft); background: var(--brand-dim); }
.compare-list li { border-top: 1px solid var(--line-soft); }
.compare-list p { padding: 18px 24px; }
.compare-list .before { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.compare-list .after { display: flex; gap: 12px; border-left: 1px solid var(--line-soft); background: color-mix(in srgb, var(--brand-dim) 45%, transparent); font-weight: 600; }
.compare-list .after .ico { margin-top: 4px; color: var(--brand-soft); }

/* El camino en tres pasos */
.how { background: var(--surface-2); }
.stepper { display: grid; gap: 24px; }
/* «Conecta SyPago», debajo de los pasos: la tarjeta de la bienvenida de la app. */
.connect { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--brand-line); border-radius: 14px; background: var(--surface); }
.connect h3 { font-size: var(--fs-lg); }
.connect p { color: var(--muted); }
.stepper-bar { display: flex; gap: 12px; align-items: stretch; }
.steps { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 22px;
  overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  text-align: left; transition: border-color 0.2s, background 0.2s;
}
.step:hover { border-color: var(--brand-line); }
.step[aria-selected="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand-dim) 60%, var(--surface)); }
.step-num {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-3); color: var(--text); font-weight: 700; transition: background 0.2s, color 0.2s;
}
.step[aria-selected="true"] .step-num { background: var(--brand); color: var(--on-brand); }
.step.done .step-num { background: var(--ok-dim); color: var(--ok-ink); }
.step-text { display: grid; gap: 2px; }
.step-text b { font-size: var(--fs-md); }
.step-text span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.step-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.step[aria-selected="true"] .step-progress { width: var(--p, 0%); }
.btn.play { align-self: center; min-height: 36px; padding: 0 12px; }
.btn.play .ico { width: 14px; height: 14px; }

/* Con JS, los tres paneles en la misma celda: el alto no salta al cambiar de paso. Sin JS, uno
   debajo del otro. */
.panels { display: grid; gap: 16px; }
.js .panel { grid-area: 1 / 1; }
.panel.off { visibility: hidden; }
.panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.panel:focus-visible { outline-offset: 4px; }
.panel-copy { display: grid; gap: 16px; }
.panel-copy h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.panel-copy > p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; }
.ticks { display: grid; gap: 12px; margin-top: 4px; }
.ticks li { display: flex; gap: 12px; }
.ticks .ico { margin-top: 4px; color: var(--ok-ink); }
.js .panel:not(.off) .mock { animation: rise 0.45s ease both; }

/* Las maquetas de cada paso: piezas del boceto en pequeño. */
.mock {
  display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); font-size: var(--fs-sm); box-shadow: var(--shadow);
}
.mock-field { display: grid; gap: 6px; }
.mock-label { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.mock-input { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mock-money { display: flex; gap: 8px; }
.mock-money .mock-input { flex: 1; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.seg span { display: grid; place-items: center; min-height: 36px; padding: 0 12px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.seg span + span { border-left: 1px solid var(--line); }
.seg span.on { background: var(--brand-dim); color: var(--text); box-shadow: inset 0 -2px var(--brand); }
.seg.wide { display: flex; }
.seg.wide span { flex: 1; }
.daygrid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.daygrid span { display: grid; place-items: center; min-height: 26px; border-radius: 5px; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 600; }
.daygrid span.today { background: var(--text); color: var(--bg); }
.daygrid span.cut { background: var(--brand); color: var(--on-brand); }
.calc { padding: 10px 12px; border: 1px dashed var(--brand-line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); }
.calc b { color: var(--text); }

.mock-tabs { display: flex; gap: 4px; overflow: hidden; border-bottom: 1px solid var(--line); }
.mock-tabs span { padding: 8px 10px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.mock-tabs span.on { color: var(--text); box-shadow: inset 0 -2px var(--brand); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.file-row .ico { width: 22px; height: 22px; color: var(--brand-soft); }
.file-row div { display: grid; line-height: 1.3; }
.file-row span { color: var(--muted); font-size: var(--fs-xs); }
.result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; }
.result .ico { width: 18px; height: 18px; }
.result.ok { background: var(--ok-dim); color: var(--ok-ink); }
.result.warn { background: var(--warn-dim); color: var(--warn-ink); }
.result span:not(.ico) { color: var(--text); }
.fix-list { display: grid; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.fix-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; font-size: var(--fs-xs); }
.fix-list li + li { border-top: 1px solid var(--line-soft); }
.fix-list .mono { color: var(--muted); }
.mock-foot { color: var(--muted); }
.mock-foot b { color: var(--text); }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface-3); font-size: var(--fs-xs);
  font-weight: 700; white-space: nowrap;
}
.mini-btn.primary { justify-self: end; min-height: 38px; padding: 0 18px; border-color: var(--brand); background: var(--brand); color: var(--on-brand); font-size: var(--fs-sm); }
.mini-btn.block { display: flex; width: 100%; min-height: 44px; }

.summary { display: grid; gap: 14px; padding: 18px; border: 2px solid var(--brand); border-radius: 12px; background: var(--surface); }
.summary-phrase { font-size: var(--fs-md); line-height: 1.5; }
.summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.summary-facts div { display: grid; line-height: 1.35; }
.summary-facts span, .summary-facts small { color: var(--muted); font-size: var(--fs-xs); }
/* La línea de los días de «Revisa y activa», con los colores del flujo de Avisos. */
.dayline { display: grid; }
.dayline li { position: relative; display: grid; grid-template-columns: 64px 20px minmax(0, 1fr); column-gap: 12px; padding-bottom: 12px; font-size: var(--fs-xs); }
.dayline li:last-child { padding-bottom: 0; }
.dayline-when { grid-column: 1; grid-row: 1; font-weight: 700; text-align: right; }
.dayline-what { grid-column: 3; grid-row: 1; color: var(--muted); }
.dayline-what b { color: var(--text); }
.dayline li::before { content: ""; position: relative; z-index: 1; grid-column: 2; grid-row: 1; justify-self: center; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: var(--brand); }
.dayline li::after { content: ""; position: absolute; top: 12px; bottom: -2px; left: calc(64px + 12px + 9px); width: 2px; background: var(--line); }
.dayline li:last-child::after { display: none; }
.dayline li.today::before { background: var(--text); }
.dayline li.due::before { box-sizing: border-box; width: 16px; height: 16px; margin-top: 1px; border: 4px solid var(--brand); background: var(--text); }
.dayline li.after::before { background: var(--bad); }
.dayline li.paid::before { box-sizing: border-box; border: 3px solid var(--ok); background: var(--surface); }

/* Las dos preguntas */
.daily { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; }
.daily-card { display: grid; gap: 18px; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.daily-card h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); }
.daily-card h3 .ico { color: var(--brand-soft); width: 22px; height: 22px; }
.daily-phrase { font-size: var(--fs-xl); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.meter { height: 10px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.meter i { display: block; width: var(--w); height: 100%; border-radius: 99px; background: var(--ok); transform-origin: left; }
.attention { display: grid; border: 1px solid var(--line-soft); border-radius: 12px; }
.attention li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: var(--fs-sm); }
.attention li + li { border-top: 1px solid var(--line-soft); }
.health { display: grid; gap: 8px; }
.health li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-sm); }
.health i { width: 10px; height: 10px; border-radius: 50%; }
.health b { font-size: var(--fs-md); }
.health .ok i { background: var(--ok); }
.health .soon i { background: var(--warn); }
.health .late i { background: var(--bad); }
.health .critical i { background: var(--bad-strong); box-shadow: 0 0 0 3px var(--bad-dim); }
.health .late b, .health .critical b { color: var(--bad-ink); }
.note { color: var(--muted); font-size: var(--fs-sm); }

/* Para quién */
.who { display: grid; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.who li { display: grid; grid-template-columns: auto minmax(0, 1fr) 220px; gap: 20px; align-items: center; padding: 24px 28px; }
.who li + li { border-top: 1px solid var(--line-soft); }
.who .ico.big, .connect .ico.big { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--brand-dim); color: var(--brand-soft); }
.who h3 { font-size: var(--fs-lg); }
.who p { color: var(--muted); }

/* Dinero */
.money-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
.points { display: grid; gap: 28px; margin-top: 36px; }
.points dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; }
.points dt .ico { color: var(--brand-soft); width: 22px; height: 22px; }
.points dd { margin: 6px 0 0 32px; color: var(--muted); }
.phone { justify-self: center; width: min(320px, 100%); padding: 12px; border: 1px solid var(--line); border-radius: 36px; background: var(--surface-2); box-shadow: var(--shadow); }
.phone-screen { display: grid; gap: 6px; padding: 32px 20px 20px; border-radius: 26px; background: var(--surface); }
.pay-org { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.pay-concept { font-size: var(--fs-lg); font-weight: 700; }
.pay-amount { margin-top: 8px; font-size: var(--fs-xl); font-weight: 600; }
.pay-ref { color: var(--muted); font-size: var(--fs-xs); }
.pay-facts { display: grid; gap: 8px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.pay-facts div { display: flex; justify-content: space-between; gap: 12px; }
.pay-facts dt { color: var(--muted); }
.pay-facts dd { font-weight: 600; }
.phone-screen .mini-btn + .mini-btn { margin-top: 4px; }
.pay-form-title { font-weight: 700; }
.pay-form-title + .pay-facts { margin: 4px 0 12px; }

/* Preguntas */
.faq-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-row .section-head { position: sticky; top: 100px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: var(--brand-line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Cierre */
.closing { padding: 32px 0 96px; }
.closing-box {
  display: grid; justify-items: center; gap: 16px; padding: 64px 24px; border: 1px solid var(--brand-line);
  border-radius: 24px; text-align: center;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--surface);
}
.closing-box .brand-mark { width: 64px; height: 57px; }
.closing-box .lead { margin: 0 auto; }
.closing-box .cta-row { margin-top: 12px; }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--fs-sm); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot .brand-mark { width: 28px; height: 25px; }

/* Aparecer al llegar con el scroll. Sin JS o con movimiento reducido, todo se ve desde el principio. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0.2); } to { transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }
@keyframes float-in { 0% { opacity: 0; transform: translateY(10px); } 6%, 42% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: translateY(-6px); } }
.js .hero-visual .strip i { animation: grow 0.6s ease both; animation-delay: calc(var(--i) * 18ms); }
.js .hero-visual .cycle-bar i { animation: fill 0.9s 0.4s ease both; transform-origin: left; }
.js .float-notice { animation: float-in 8s 0.6s ease infinite both; }
.js .float-paid { animation: float-in 8s 4.6s ease infinite both; }
.js .meter i { transform: scaleX(0); transition: transform 1s 0.2s ease; }
.js .reveal.in .meter i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .meter i { transform: none; }
  .js .float-paid { display: none; }
}
@media (forced-colors: active) {
  .strip i, .daygrid span, .cycle-bar i, .meter i, .health i, .step-progress { forced-color-adjust: none; }
  .step[aria-selected="true"] { outline: 2px solid Highlight; }
}

@media (max-width: 1020px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-row, .money-row, .faq-row { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 560px; }
  .faq-row .section-head { position: static; margin-bottom: 0; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
  .daily { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .lead, .closing .lead, .panel-copy > p { font-size: var(--fs-md); }
  .cta-row .btn.big { flex: 1 1 100%; }
  .float-notice, .float-paid { right: 0; }
  .stepper-bar { flex-direction: column; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step { padding: 14px 16px 16px; }
  .btn.play { align-self: flex-start; }
  .panel { padding: 20px; }
  .mock { padding: 16px; }
  .daygrid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .fix-list li { grid-template-columns: auto minmax(0, 1fr); }
  .fix-list .mini-btn { grid-column: 2; justify-self: start; }
  .compare-head { display: none; }
  .compare-list li { grid-template-columns: minmax(0, 1fr); }
  .compare-list .before { padding-bottom: 6px; }
  .compare-list .after { padding-top: 6px; border-left: 0; }
  .compare-list p { padding-inline: 18px; }
  .daily-card { padding: 22px; }
  .daily-phrase { font-size: var(--fs-lg); }
  .who li { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .who .strip { grid-column: 2; }
  .closing-box { padding: 48px 20px; }
  .brand-copy span { display: none; }
  .charge-card { padding: 18px; }
  .charge-head { flex-direction: column; gap: 8px; }
  .charge-head strong, .amount { font-size: var(--fs-md); }
}
