/* Alcanza · estilos. Paleta "La meta": Tinta #10233F, Meta #1E9E6A, Camino #8C9BB5, Luz #FFD166, Papel #F4F6F9 */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --ink: #10233F;
  --muted: #4B5A70;
  --line: #D5DCE6;
  --field-line: #8794A9;
  --primary: #10233F;
  --on-primary: #FFFFFF;
  --primary-hover: #1B3558;
  --accent-ink: #147A52;
  --sun: #1E9E6A;
  --result-bg: #10233F;
  --result-ink: #FFFFFF;
  --result-muted: #C8D2E1;
  --result-tile: #1A3354;
  --result-label: #AEBBD0;
  --chip-bg: #FFD166;
  --chip-ink: #10233F;
  --best-bg: #FFD166;
  --best-ink: #10233F;
  --logo-text: #10233F;
  --logo-line: #8C9BB5;
  --series-uva: #2E7FB8;
  --series-fija: #C9731C;
  --grid: #E6EBF2;
  --focus: #1E9E6A;
  --good-bg: #E3F1EA;
  --good-ink: #1F6B45;
  --warn-bg: #FBE6D5;
  --warn-ink: #9A3F0B;
  --crit-bg: #FBE3E3;
  --crit-ink: #9B1C1C;
  --info-bg: #E3EDF5;
  --info-ink: #1E4E73;
  --radius: 20px;
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1526;
    --surface: #112039;
    --surface-2: #0D1A30;
    --ink: #E8EDF5;
    --muted: #A6B3C7;
    --line: #243553;
    --field-line: #5A6D8C;
    --primary: #2FBF84;
    --on-primary: #0A1526;
    --primary-hover: #5CD3A1;
    --accent-ink: #5CD3A1;
    --sun: #2FBF84;
    --result-bg: #16294A;
    --result-ink: #FFFFFF;
    --result-muted: #C8D2E1;
    --result-tile: #1F3760;
    --result-label: #AEBBD0;
    --logo-text: #E8EDF5;
    --logo-line: #8C9BB5;
    --series-uva: #4A96D2;
    --series-fija: #CF7C2C;
    --focus: #2FBF84;
    --good-bg: #173A2C;
    --good-ink: #9FDDB9;
    --warn-bg: #43291A;
    --warn-ink: #F3B991;
    --crit-bg: #461C1C;
    --crit-ink: #F5B4B4;
    --info-bg: #1B3346;
    --info-ink: #A9CBE6;
    --grid: #1F3050;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1526;
  --surface: #112039;
  --surface-2: #0D1A30;
  --ink: #E8EDF5;
  --muted: #A6B3C7;
  --line: #243553;
  --field-line: #5A6D8C;
  --primary: #2FBF84;
  --on-primary: #0A1526;
  --primary-hover: #5CD3A1;
  --accent-ink: #5CD3A1;
  --sun: #2FBF84;
  --result-bg: #16294A;
  --result-ink: #FFFFFF;
  --result-muted: #C8D2E1;
  --result-tile: #1F3760;
  --result-label: #AEBBD0;
  --logo-text: #E8EDF5;
  --logo-line: #8C9BB5;
  --series-uva: #4A96D2;
  --series-fija: #CF7C2C;
  --focus: #2FBF84;
  --good-bg: #173A2C;
  --good-ink: #9FDDB9;
  --warn-bg: #43291A;
  --warn-ink: #F3B991;
  --crit-bg: #461C1C;
  --crit-ink: #F5B4B4;
  --info-bg: #1B3346;
  --info-ink: #A9CBE6;
  --grid: #1F3050;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

/* Aviso de vista previa */
.preview-note {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  padding-block: 10px;
}

/* Encabezado */
.site-header { padding-block: 12px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.logo { display: block; height: 52px; width: auto; }
.logo .w { fill: var(--logo-text); }
.logo .l { fill: none; stroke: var(--logo-line); }
.logo .s { fill: var(--sun); }
.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px;
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); }
@media (min-width: 720px) { .nav { display: flex; } }

/* Portada */
.hero { padding-block: 24px 20px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(40px, 10vw, 64px); line-height: 1.02; margin: 0 0 12px;
}
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 34em; }

/* Pestañas */
.tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px;
}
.tab {
  min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-weight: 800; font-size: 14px; line-height: 1.15; cursor: pointer; padding: 0 8px;
}
.tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }

/* Calculadora */
.calc { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .calc { padding: 28px; } }
.calc-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.fields { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; line-height: 1.3; }
.control {
  display: flex; align-items: center; gap: 6px; height: 50px; padding-inline: 14px;
  border-radius: 12px; border: 1px solid var(--field-line); background: var(--surface-2);
}
.control:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.control input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.control input:focus { outline: none; }
.affix { font-weight: 700; color: var(--muted); }
.help { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.offers { display: grid; gap: 12px; }
.offer { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.offer legend { font-weight: 800; font-size: 15px; padding: 0 6px; }
.btn-link {
  justify-self: start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent-ink);
  font: inherit; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Resultado */
.result { background: var(--result-bg); color: var(--result-ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chip { align-self: flex-start; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); }
.result-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.2; color: var(--result-ink); text-wrap: balance; }
.result-text { margin: 0; font-size: 15px; color: var(--result-muted); }
.result-note { margin: 0; font-size: 13px; color: var(--result-label); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
.tile { background: var(--result-tile); border-radius: 14px; padding: 12px; min-width: 0; }
.tile dt { font-size: 12.5px; color: var(--result-label); }
.tile dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--result-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rows { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.rows li { background: var(--result-tile); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-name { font-weight: 800; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--best-bg); color: var(--best-ink); }
.row-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.row-vals dt { font-size: 12px; color: var(--result-label); }
.row-vals dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; font-size: 15px; }

/* Botones */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; border: 0;
}
.btn svg { flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--field-line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.copy-status { font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* Estadísticas anónimas (opcional) */
.aporte { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.aporte-titulo { margin: 0; font-weight: 800; font-size: 15.5px; }
.aporte-texto { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.aporte-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.aporte-acciones a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.aporte-estado { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.aporte-plan .aporte-texto { font-size: 15px; }

/* Gráfico */
.chart-block { display: flex; flex-direction: column; gap: 10px; }
.chart-title { margin: 0; font-size: 17px; font-weight: 800; font-family: var(--font-body); }
.chart-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 18px; height: 2px; border-radius: 2px; flex: none; }
.key-uva { background: var(--series-uva); }
.key-fija { background: var(--series-fija); }
.chart { position: relative; touch-action: pan-y; border-radius: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-grid { stroke: var(--grid); stroke-width: 1; }
.c-tick { fill: var(--muted); font-family: var(--font-body); font-size: 12px; font-variant-numeric: tabular-nums; }
.c-label { fill: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-uva { stroke: var(--series-uva); }
.c-fija { stroke: var(--series-fija); }
.c-dot { stroke: var(--surface); stroke-width: 2; }
.c-dot-uva { fill: var(--series-uva); }
.c-dot-fija { fill: var(--series-fija); }
.c-cross { stroke: var(--muted); stroke-width: 1; }
.c-tooltip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 172px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(14, 34, 51, 0.14);
}
.tt-when { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tt-row { display: flex; align-items: center; gap: 8px; }
.tt-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-name { color: var(--muted); }
.table-view summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 44px; display: flex; align-items: center; color: var(--accent-ink); }
.table-scroll { overflow-x: auto; }
.table-view table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-view th:first-child { text-align: left; font-weight: 700; }
.table-view thead th { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* Secciones de contenido */
.section { padding-block: 28px 8px; }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0 0 14px; }
.prose p { margin: 0 0 12px; max-width: 65ch; }
.prose ul { margin: 0 0 12px; padding-left: 1.25em; max-width: 65ch; }
.prose li { margin-bottom: 6px; }
.points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.points li { display: grid; gap: 4px; padding-left: 18px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.points strong { font-size: 16px; }
.points span { color: var(--muted); font-size: 15px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 65ch; }
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-link { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; }
.card-link:hover { color: var(--ink); outline: 2px solid var(--line); }
.card-link strong { font-size: 17px; }
.card-link span { color: var(--muted); font-size: 14.5px; }
.soon { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.soon h2 { font-size: 24px; margin: 0 0 6px; }
.soon p { margin: 0; color: var(--muted); }

/* Pie */
.site-footer { margin-top: 32px; padding-block: 28px 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { margin: 0; font-size: 13px; color: var(--muted); max-width: 65ch; }
.site-footer .logo { height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Plan de vida ---------- */
.plan-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .plan-wrap { padding-inline: 24px; } }
.plan-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .plan-grid { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
  .plan-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
.plan-form { background: var(--surface); border-radius: var(--radius); padding: 6px 18px 18px; }
.plan-form details { border-bottom: 1px solid var(--line); }
.plan-form summary { cursor: pointer; list-style: none; min-height: 60px; display: grid; align-content: center; gap: 2px; padding-block: 10px; }
.plan-form summary::-webkit-details-marker { display: none; }
.sum-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sum-title::after { content: '+'; font-size: 20px; font-weight: 600; color: var(--muted); }
.plan-form details[open] > summary .sum-title::after { content: '\2212'; }
.sum-value { font-size: 13.5px; color: var(--muted); }
.plan-form .fields { padding-bottom: 18px; }
.plan-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.plan-form fieldset:disabled { opacity: 0.5; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.saved-note { margin: 12px 0 0; font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.form-foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.report { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 640px) { .panel { padding: 24px; } }
.panel h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0; }
.panel-sub { margin: -6px 0 0; font-size: 14px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border-radius: 18px; padding: 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi-hero { grid-column: 1 / -1; background: var(--result-bg); }
@media (min-width: 760px) { .kpi-hero { grid-column: auto; } }
.kpis > .kpi:nth-child(4) { grid-column: 1 / -1; }
@media (min-width: 760px) { .kpis > .kpi:nth-child(4) { grid-column: auto; } }
.kpi-label { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.kpi-value { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: var(--result-label); }
.kpi-hero .kpi-value { font-size: 48px; color: var(--result-ink); }

.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.insight { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.insight p { margin: 0; font-size: 15px; line-height: 1.5; }
.status { justify-self: start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; margin-top: 1px; }
.status-good { background: var(--good-bg); color: var(--good-ink); }
.status-warn { background: var(--warn-bg); color: var(--warn-ink); }
.status-critical { background: var(--crit-bg); color: var(--crit-ink); }
.status-info { background: var(--info-bg); color: var(--info-ink); }

.f-band { fill: var(--series-uva); fill-opacity: 0.16; stroke: none; }
.c-marker { stroke: var(--muted); stroke-width: 1; }
.c-mlabel { fill: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.c-zero { stroke: var(--muted); stroke-width: 1; }
.c-hover { fill: var(--ink); fill-opacity: 0.07; }
.b-pos { fill: var(--series-uva); }
.b-neg { fill: var(--series-fija); }
.key-band { width: 14px; height: 10px; border-radius: 3px; background: var(--series-uva); opacity: 0.35; }
.key-swatch-pos, .key-swatch-neg { width: 12px; height: 12px; border-radius: 3px; }
.key-swatch-pos { background: var(--series-uva); }
.key-swatch-neg { background: var(--series-fija); }
.key-none { width: 12px; height: 2px; background: transparent; }

.tornado { display: grid; gap: 18px; }
.tn-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tn-head span:last-child { text-align: right; }
.tn-base { font-weight: 800; color: var(--ink); }
.tn-row { display: grid; gap: 6px; }
.tn-label { margin: 0; font-weight: 800; font-size: 14.5px; }
.tn-track { position: relative; height: 18px; }
.tn-track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--muted); }
.tn-bar { position: absolute; top: 0; height: 18px; }
.tn-neg { background: var(--series-fija); border-radius: 4px 0 0 4px; }
.tn-pos { background: var(--series-uva); border-radius: 0 4px 4px 0; }
.tn-inner { top: 5px; height: 8px; box-shadow: 0 0 0 2px var(--surface); }
.tn-cases { margin: 0; font-size: 13px; color: var(--muted); }

.data-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.data-table th:first-child { text-align: left; font-weight: 600; min-width: 190px; }
.data-table thead th { color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.data-table tr.is-base th, .data-table tr.is-base td { font-weight: 800; }
.st-sub { display: none; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 639px) {
  .stress-table .col-x { display: none; }
  .stress-table th:first-child { min-width: 0; }
  .stress-table .st-sub { display: block; }
}

.levers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lever { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.lever-title { margin: 0; font-weight: 800; }
.lever-text { margin: 0; font-size: 14.5px; color: var(--muted); }

.plan-cta { display: grid; gap: 4px; margin-top: 16px; padding: 20px; border-radius: var(--radius); background: var(--result-bg); color: var(--result-ink); text-decoration: none; }
.plan-cta:hover { color: var(--result-ink); }
.plan-cta strong { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.plan-cta span { color: var(--result-muted); }
.plan-cta em { font-style: normal; font-weight: 800; color: var(--sun); }

@media print {
  .site-header, .site-footer, .plan-form, .preview-note, .form-actions, .table-view, [data-aporte] { display: none !important; }
  body { background: #FFFFFF; }
  .plan-grid { display: block; }
  .panel, .kpi { break-inside: avoid; border: 1px solid #D5DDDC; }
  .kpi-hero { background: #FFFFFF; }
  .kpi-hero .kpi-value, .kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: #10233F; }
}
