/* Una columna pensada para celular; calculadora y comprobante lado a lado en pantallas anchas. Letra grande para personas mayores. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/sora-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #F2F6F3;
  --surface: #FFFFFF;
  --soft: #E3ECE7;
  --fg: #11241D;
  --muted: #4C6259;
  --line: #CBD8D1;
  --accent: #0A6E4E;
  --accent-fg: #FFFFFF;
  --mark: #FFD84D;
  --mark-fg: #2B2300;
  --danger: #B3261E;
  --font-d: 'Sora', 'Trebuchet MS', Verdana, sans-serif;
  --font-b: 'Atkinson Hyperlegible', Verdana, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0D1814; --surface: #14231D; --soft: #1B2E26; --fg: #E7F0EB; --muted: #9DB3A9; --line: #2A3D35;
    --accent: #46D39E; --accent-fg: #062017; --mark: #FFD84D; --mark-fg: #2B2300; --danger: #FF8A80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-b); font-size: 18px; line-height: 1.5;
  padding: 20px 16px 48px;
  overflow-wrap: break-word;
}
.wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
main { display: flex; flex-direction: column; gap: 32px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--accent-fg); padding: 12px 16px; border-radius: 8px; font-weight: 700; z-index: 10; text-decoration: none; }
.skip:focus { top: 8px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.brand { font-family: var(--font-d); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.brand span { background: var(--mark); color: var(--mark-fg); padding: 0 6px; border-radius: 4px; margin-left: 0.3em; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 3px solid transparent; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--fg); }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
a { color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.lead { font-size: 20px; }
.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } }
.btn { font: inherit; font-weight: 700; font-size: 19px; border-radius: 10px; padding: 14px 20px; min-height: 48px; cursor: pointer; border: 2px solid var(--accent); text-align: center; text-decoration: none; display: block; background: transparent; color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.btn:focus-visible, .card:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; text-decoration: none; color: var(--fg); min-height: 48px; }
.card b { font-size: 21px; }
.card .go { font-weight: 700; color: var(--accent); margin-top: auto; padding-top: 6px; }
.trust { background: var(--soft); border-radius: 10px; padding: 16px 18px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 860px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: 16px; color: var(--muted); }
.field input[type="text"] { font: inherit; font-size: 22px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; font-variant-numeric: tabular-nums; }
.field input[type="text"]:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field input.bad { border-color: var(--danger); }
.field label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; min-height: 48px; padding: 8px 0; }
.check input { width: 28px; height: 28px; margin: 0; flex: none; accent-color: var(--accent); }
.err { color: var(--danger); font-size: 16px; }
.receipt { border-style: dashed; border-width: 2px; }
.receipt h2 { font-size: 20px; }
.rows { display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.row b { white-space: nowrap; }
.total { background: var(--mark); color: var(--mark-fg); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.total .big { font-family: var(--font-d); font-weight: 700; font-size: clamp(30px, 7vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.total .lbl { font-size: 16px; font-weight: 700; }
.verdict { background: var(--soft); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.verdict b { font-family: var(--font-d); font-size: 24px; line-height: 1.2; }
ol.steps, ul.plain { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
ol.steps li::marker { font-weight: 700; color: var(--accent); }
.note { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; max-width: 62ch; }
.faq { display: flex; flex-direction: column; gap: 20px; }
.faq div { display: flex; flex-direction: column; gap: 6px; }
.more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .more { grid-template-columns: 1fr 1fr; } }
.more a { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 48px; display: flex; align-items: center; text-decoration: none; font-weight: 700; }
footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Tablas, páginas de texto y enlaces del pie */
.tabla-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tabla-scroll:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; }
.tabla-ancha { min-width: 540px; }
.tabla th, .tabla td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.tabla thead th { background: var(--soft); font-weight: 700; }
.tabla tbody th { font-weight: 700; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.legal { max-width: 68ch; gap: 14px; }
.legal h2 { margin-top: 14px; }
.legal .tabla-scroll { margin: 6px 0; }
.fuentes { gap: 4px; }
.fuentes li { min-height: 48px; display: flex; align-items: center; }
.fuentes a { overflow-wrap: anywhere; }
footer .foot-links a { font-size: 16px; }
