/* Aprobado — sitio. Identidad del app (docs/design-system/aprobado/MASTER.md):
   fondo off-white cálido, tinta casi negra, verde de acción, y el rojo y gualda del icono "carretera"
   como campos de color. La letra es la del iPhone (SF Pro); fuera de Apple, Inter. */

:root {
  --ground: #F7F6F2;
  --paper: #FFFFFF;
  --tone: #EFEDE6;
  --ink: #111827;
  --muted: #4B5563;
  --brand: #15803D;
  --brand-deep: #116632;
  --rojo: #C8102E;
  --rojo-deep: #A50D26;
  --gualda: #F1BF00;
  --night: #14171F;
  --on-dark: #F7F6F2;
  --on-dark-muted: #C9CCD3;

  --face: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;

  /* cinco tamaños */
  --s-display: clamp(44px, 4.6vw, 76px);
  --s-h2: clamp(32px, 3.4vw, 52px);
  --s-lead: clamp(19px, 1.45vw, 22px);
  --s-body: 17px;
  --s-small: 14px;

  --margin: clamp(16px, 3.4vw, 48px);
  --radius: 24px;
  --gap-section: clamp(112px, 12vw, 200px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 960px) and (min-height: 640px) {
  html { scroll-snap-type: y proximity; }
  .hero { scroll-snap-align: start; scroll-margin-top: 0; }
  .step { scroll-snap-align: center; }
  .try, .close { scroll-snap-align: start; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--s-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--s-h2); line-height: 1.02; }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--gualda); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- marca y botones ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand svg { width: 36px; height: 36px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 17px/1 var(--face); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; margin-top: -2px; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-small svg { width: 16px; height: 16px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--ground); }

/* ---------- barra ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--margin);
}
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.bar nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.bar nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 720px) { .bar nav a:not(.btn) { display: none; } }

/* ---------- el escenario: columna de lectura + carretera fija ---------- */
.journey { display: grid; grid-template-columns: 1fr; }
.read { padding: 0 var(--margin); }

.hero { padding: clamp(32px, 7vh, 96px) 0 clamp(64px, 11vh, 112px); max-width: 680px; }
.hero h1 { text-wrap: balance; }
.hero h1 { font-size: var(--s-display); }
.hero .lead { margin-top: 28px; font-size: var(--s-lead); line-height: 1.5; max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .note { font-size: var(--s-small); color: var(--muted); }
.facts { margin: 44px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.facts li { display: grid; gap: 2px; }
.facts b { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--s-small); color: var(--muted); }

.nums { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px 36px; }
.nums li { display: grid; gap: 2px; }
.nums b { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nums span { font-size: 15px; color: var(--muted); }
.cite { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: #EAF5EE; color: var(--brand-deep); font-weight: 600; font-size: 16px; text-decoration: none; }
.cite:hover { background: #DDEFE3; }
.steps-head { font-size: var(--s-h2); max-width: 14ch; }
.step { padding: 56px 0; max-width: 560px; }
.step h3 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.03em; line-height: 1.12; font-weight: 800; }
.step > p { margin-top: 14px; font-size: var(--s-lead); line-height: 1.5; color: var(--ink); max-width: 36ch; }
.step-shot {
  position: relative; margin: 28px 0 0; height: min(118vw, 470px); overflow: hidden;
  display: flex; justify-content: center; padding-top: 28px;
  background: var(--rojo); border-radius: var(--radius);
}
.step-shot::before { content: ""; position: absolute; inset: 0; background: var(--gualda); clip-path: polygon(10% 100%, 90% 100%, 54% 0, 46% 0); }
.step-shot img { position: relative; width: min(64%, 260px); height: auto; align-self: flex-start; border-radius: 34px 34px 0 0; outline: 6px solid var(--night); }

.stage { display: none; }

@media (min-width: 960px) {
  .journey { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 12px; padding: 0 12px 0 0; }
  .read { padding: 0 clamp(40px, 5vw, 88px); }
  .stage {
    display: block; position: sticky; top: 12px; height: calc(100svh - 24px); min-height: 560px;
    border-radius: var(--radius); background: var(--rojo); overflow: hidden;
  }
  .step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
  .step-shot { display: none; }
  .nums { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px 36px; }
.nums li { display: grid; gap: 2px; }
.nums b { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nums span { font-size: 15px; color: var(--muted); }
.cite { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: #EAF5EE; color: var(--brand-deep); font-weight: 600; font-size: 16px; text-decoration: none; }
.cite:hover { background: #DDEFE3; }
.steps-head { padding-top: 40px; }
}

/* la carretera del icono, dibujada en el escenario */
.road { position: absolute; inset: 0; width: 100%; height: 100%; }
.road .asphalt { fill: var(--gualda); }
.road .dash { stroke: #fff; stroke-width: 10; stroke-linecap: round; fill: none; stroke-dasharray: 46 64; }

.phone {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  height: min(76%, 720px); aspect-ratio: 1206 / 2622;
  border-radius: 13.5% / 6.2%; overflow: hidden; background: var(--paper);
  outline: 8px solid var(--night);
}
.phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.phone img.is-active { opacity: 1; }
.stage-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: var(--paper); font-size: 15px; font-weight: 600;
}
.stage-bar span:last-child { color: var(--muted); font-weight: 500; }

/* ---------- pruébalo: la señal en lo oscuro, la pregunta en lo claro ---------- */
.try { margin-top: var(--gap-section); background: var(--night); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) var(--margin); }
.try-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 40px; }
.try-head { display: grid; gap: 16px; }
.try-head h2 { font-size: var(--s-h2); color: #fff; }
.try-head p { font-size: var(--s-lead); line-height: 1.5; color: #E5E7EB; max-width: 46ch; }
.try-body { display: grid; gap: 28px; align-items: start; }
.try-sign { background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; place-items: center; }
.try-sign svg { width: min(100%, 260px); height: auto; aspect-ratio: 1; }
.try-score { font-size: 17px; color: #E5E7EB; }
.try-score b { color: var(--gualda); }
@media (min-width: 900px) {
  .try-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #2A2F3A; color: #fff; font: 600 15px/1 var(--face);
  transition: background-color .15s ease, transform .15s ease;
}
.tabs button:hover { background: #3A404D; }
.tabs button:active { transform: scale(.96); }
.tabs button[aria-selected="true"] { background: var(--gualda); color: var(--ink); }
.q[data-ui] { display: grid; gap: 12px; }
.q-text { font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 8px; color: #fff; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1.5px solid #E3E0D8; border-radius: 18px; background: var(--paper); color: var(--ink);
  font: 500 17px/1.35 var(--face); text-align: left; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.opt b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F0EEE8; font-weight: 700; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt:active:not(:disabled) { transform: scale(.985); }
.opt:disabled { cursor: default; }
.opt.is-right { border-color: var(--brand); background: #EAF5EE; }
.opt.is-right b { background: var(--brand); color: #fff; }
.opt.is-wrong { border-color: var(--rojo); background: #FCEBEE; }
.opt.is-wrong b { background: var(--rojo); color: #fff; }
.opt.is-dim { color: var(--muted); background: #ECEAE4; border-color: #ECEAE4; }
.q-feedback { color: var(--ink); margin-top: 6px; padding: 18px 20px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.q-feedback strong { display: block; font-size: 19px; margin-bottom: 4px; }
.q-feedback.good { background: #EAF5EE; }
.q-feedback.good strong { color: var(--brand-deep); }
.q-feedback.bad { background: #FCEBEE; }
.q-feedback.bad strong { color: var(--rojo-deep); }
.q-feedback a { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand-deep); }
.q-noscript { font-size: 16px; }

/* ---------- lo que trae: prueba pequeña junto al texto ---------- */
.kit { margin-top: var(--gap-section); padding: 0 var(--margin); }
.kit > h2 { max-width: 16ch; margin-bottom: 56px; }
.mod { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 72px; }
.mod:last-child { margin-bottom: 0; }
.panel { background: var(--tone); border-radius: var(--radius); overflow: hidden; position: relative; }
.panel-shot { height: 220px; }
.panel-shot img { width: 100%; height: 100%; object-fit: cover; }
.mod h3 { margin-bottom: 8px; }
.mod p { color: var(--ink); max-width: 44ch; }
.mod p + p { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) {
  .kit { padding: 0 clamp(40px, 6vw, 112px); }
  .mod { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center; max-width: 1240px; margin-bottom: 64px; }
  .mod:nth-of-type(even) .panel { order: 2; }
  .mod h3 { font-size: 28px; letter-spacing: -0.025em; }
  .mod p { font-size: 19px; }
  .mod p + p { font-size: 16px; }
  .panel-shot { height: 300px; }
}

/* fragmentos de interfaz dibujados en HTML */
.ui-intervals[data-ui] { display: flex; align-items: flex-end; gap: 10px; padding: 28px 24px; height: 100%; }
.ui-intervals span { flex: 1; display: grid; align-content: end; justify-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ui-intervals span::before { content: ""; width: 100%; border-radius: 10px; background: var(--rojo); }
.ui-intervals span:nth-child(1)::before { height: 36px; }
.ui-intervals span:nth-child(2)::before { height: 64px; background: #E0653A; }
.ui-intervals span:nth-child(3)::before { height: 96px; background: var(--gualda); }
.ui-intervals span:nth-child(4)::before { height: 132px; background: var(--brand); }

.ui-widget[data-ui] { margin: 24px; background: var(--paper); border-radius: 22px; padding: 18px 20px; display: grid; gap: 10px; }
.ui-widget .w-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #B45309; }
.ui-widget .w-head span:last-child { color: var(--muted); font-weight: 600; }
.ui-widget .w-q { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ui-widget .w-opts { display: flex; gap: 8px; }
.ui-widget .w-opts b { flex: 1; display: grid; place-items: center; height: 40px; border-radius: 12px; background: #F0EEE8; font-size: 16px; }
.ui-widget .w-opts b.ok { background: var(--brand); color: #fff; }

.ui-law[data-ui] { padding: 24px; display: grid; gap: 10px; }
.ui-law .law { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.ui-law .law b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #EAF5EE; }
.ui-law .law b svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ui-law .law small { display: block; color: var(--muted); font-size: 13px; }

.ui-offline[data-ui] { padding: 28px 24px; display: grid; gap: 4px; }
.ui-offline b { font-size: 64px; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ui-offline span { font-size: 15px; color: var(--muted); }

/* ---------- precio: dos campos de color ---------- */
.price { margin-top: var(--gap-section); display: grid; grid-template-columns: 1fr; }
.field { display: grid; align-content: space-between; gap: 40px; padding: 48px var(--margin); }
.field-main { background: var(--rojo); color: #fff; }
.field-week { background: var(--gualda); color: var(--ink); }
.field h2 { font-size: clamp(40px, 5vw, 80px); max-width: 12ch; }
.field .for { font-size: 20px; line-height: 1.45; max-width: 30ch; }
.field .incl { font-size: 17px; line-height: 1.55; max-width: 44ch; }
.field-main .incl { color: #fff; }
.field .pfoot { display: grid; gap: 20px; align-items: end; }
.field .amount { font-size: clamp(64px, 7vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.field .amount small { display: block; margin-top: 10px; font-size: 18px; letter-spacing: 0; font-weight: 600; }
.field > * { min-width: 0; }
.field .btn { justify-self: start; }
.price-note { padding: 20px var(--margin) 0; font-size: var(--s-small); color: var(--muted); max-width: 90ch; }
@media (min-width: 960px) {
  .price { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .field { padding: 72px clamp(40px, 5vw, 88px) 56px; min-height: 620px; }
  .field-main .pfoot { grid-template-columns: 1fr auto; }
  .field-main .btn { justify-self: end; }
}

/* ---------- preguntas: texto corrido ---------- */
.faq { margin-top: var(--gap-section); padding: 0 var(--margin); display: grid; gap: 32px; }
.faq h2 { font-size: 32px; letter-spacing: -0.03em; }
.faq-text p { margin-bottom: 20px; break-inside: avoid; max-width: 60ch; }
.faq-text b { font-weight: 700; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 3fr 9fr; gap: 48px; }
  .faq-text { columns: 2; column-gap: 56px; }
}

/* ---------- cierre ---------- */
.close { margin: var(--gap-section) 0 0; background: var(--rojo); color: #fff; padding: clamp(72px, 10vw, 140px) var(--margin); display: grid; gap: 28px; justify-items: start; }
.close .icon { width: clamp(72px, 8vw, 112px); height: auto; }
.close p { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; max-width: 24ch; }
.close .note { font-size: var(--s-small); font-weight: 500; letter-spacing: 0; color: #fff; }
@media (min-width: 760px) { .close { padding-left: clamp(40px, 6vw, 112px); } }
.foot { padding-top: 28px; }

/* ---------- pie: una línea ---------- */
.foot {
  display: grid; gap: 8px; padding: 0 var(--margin) 28px; font-size: var(--s-small); color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--brand); }
@media (min-width: 960px) {
  .foot { grid-template-columns: 1fr auto 1fr; align-items: baseline; }
  .foot > :last-child { text-align: right; }
}

/* ---------- páginas legales ---------- */
.doc { padding: clamp(40px, 8vh, 96px) var(--margin) 96px; }
.doc-inner { max-width: 68ch; }
@media (min-width: 760px) { .doc { padding-left: clamp(40px, 16vw, 300px); } }
.doc h1 { font-size: clamp(40px, 5.4vw, 80px); margin-bottom: 20px; }
.doc .intro { font-size: var(--s-lead); line-height: 1.5; margin-bottom: 12px; }
.doc .updated { font-size: var(--s-small); color: var(--muted); margin-bottom: 48px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 14px; line-height: 1.2; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc a { color: var(--brand-deep); font-weight: 600; }
.doc .summary { background: var(--paper); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 8px; }
.doc .summary p:first-child { font-weight: 700; }
.doc .summary ul { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #E3E0D8; vertical-align: top; }
.doc .todo { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }
.doc-table { overflow-x: auto; }

/* ---------- movimiento ---------- */
.js .rise { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; translate: none; transition: none; }
  .phone img { transition: none; }
  .btn, .opt, .tabs button { transition: none; }
}
