/* ============ Finiquito Claro — estilos ============ */
:root {
  --navy: #0b1f3a;
  --navy-2: #163463;
  --blue: #2357c6;
  --green: #15803d;
  --green-2: #16a34a;
  --green-3: #22c55e;
  --green-bg: #e9f8ef;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dfe6f0;
  --line-2: #c9d4e3;
  --text: #0f1b2d;
  --muted: #55657c;
  --red: #c42b2b;
  --red-bg: #fdecec;
  --amber: #9a5b06;
  --amber-bg: #fff6e5;
  --info-bg: #eaf1fd;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .05), 0 12px 40px -12px rgba(11, 31, 58, .16);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 0 0 .5rem; }
h3 { font-size: 1.2rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.logo b { color: var(--green-2); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--navy); background: var(--bg); }
@media (max-width: 680px) { .nav a:not(:first-child) { display: none; } }

/* hero */
.hero { padding: 34px 0 18px; background: radial-gradient(1200px 380px at 50% -120px, #dde9fb 0%, transparent 70%); }
.hero .wrap { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .85rem; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 5px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); margin: 0 0 10px; font-weight: 800; }
.lead { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); }

/* tool card */
.tool-section { padding: 10px 0 8px; }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 2.5vw, 34px); max-width: 920px; margin: 0 auto; }
.tool-card[data-state="form"] .result { display: none; }
.tool-card[data-state="result"] .calc-form { display: none; }
.noscript { background: var(--amber-bg); color: var(--amber); padding: 12px; border-radius: 10px; }
.form-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.form-title { margin: 0; font-weight: 750; font-size: 1.15rem; color: var(--navy); }
.privacy-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--green); background: var(--green-bg); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 8px 0; }

.block { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 20px 0 6px; min-width: 0; }
.block legend { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.02rem; padding: 0; float: left; width: 100%; margin-bottom: 14px; }
.block legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .85rem; }
.grid2, .grid3 { display: grid; gap: 14px 18px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } .span3 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .93rem; color: var(--text); }
.opt { color: var(--muted); font-weight: 500; }
.hint { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.hint.center { text-align: center; margin-top: 8px; }
.err { margin: 0; color: var(--red); font-size: .84rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
input[type="text"], input[type="number"], input[type="date"], input[type="search"], select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: #fbfcfe; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s, background .15s; appearance: none; -webkit-appearance: none;
}
input[type="date"] { min-width: 0; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355657c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(35, 87, 198, .14); }
.field.has-error input, .field.has-error select { border-color: var(--red); background: #fffafa; }
.input-unit { position: relative; }
.input-unit input { padding-right: 38px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

.seg { display: inline-flex; flex-wrap: wrap; background: #eef2f8; border-radius: 12px; padding: 4px; gap: 4px; width: fit-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11, 31, 58, .14); }
.seg input:focus-visible + span { outline: 3px solid rgba(35, 87, 198, .4); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .93rem; margin: 8px 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-2); flex: none; }
.checks .check { margin: 10px 0 0; }

.sub { margin-top: 14px; padding: 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; animation: rise .25s ease both; }
.sub .sub { background: #fff; }
.sub-title { margin: 0 0 10px; font-weight: 650; color: var(--navy); }
.note { margin: 0; color: var(--muted); font-size: .93rem; }
.live-hint { margin: 10px 0 4px; font-size: .88rem; color: var(--navy-2); background: var(--info-bg); padding: 8px 12px; border-radius: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.motivos { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .motivos { grid-template-columns: repeat(3, 1fr); } }
.motivo { position: relative; cursor: pointer; }
.motivo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.motivo > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.motivo svg { width: 24px; height: 24px; fill: none; stroke: var(--navy-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.motivo b { font-size: .95rem; color: var(--navy); line-height: 1.25; }
.motivo small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.motivo:hover > span { border-color: var(--blue); transform: translateY(-1px); }
.motivo input:checked + span { border-color: var(--green-2); background: var(--green-bg); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.motivo input:checked + span svg { stroke: var(--green); }
.motivo input:focus-visible + span { outline: 3px solid rgba(35, 87, 198, .45); outline-offset: 2px; }
@media (max-width: 400px) { .motivo small { display: none; } }

details.extra { padding-bottom: 14px; }
details.extra summary { cursor: pointer; font-weight: 650; color: var(--navy-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.extra summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #eef2f8; font-weight: 700; }
details.extra[open] summary::before { content: "−"; }
details.extra summary::-webkit-details-marker { display: none; }
details.extra .field { margin-top: 14px; max-width: 340px; }

.submit-row { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: linear-gradient(180deg, #19b357, var(--green-2)); color: #fff; box-shadow: 0 8px 22px -8px rgba(22, 163, 74, .65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(22, 163, 74, .75); }
.btn-primary:active { transform: none; }
.btn-xl { width: 100%; max-width: 520px; min-height: 60px; font-size: 1.12rem; letter-spacing: .02em; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn:focus-visible { outline: 3px solid rgba(35, 87, 198, .5); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 6px; color: var(--muted); font-size: .88rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--green-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ============ resultado ============ */
.result { animation: rise .35s ease both; outline: none; }
.res-hero { text-align: center; padding: 26px 16px 22px; border-radius: 20px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.res-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 65%); }
.res-label { margin: 0; font-size: .85rem; letter-spacing: .12em; font-weight: 700; color: #b9cbe6; text-transform: uppercase; }
.res-amount { margin: 6px 0 4px; font-size: clamp(2.6rem, 1.6rem + 5vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.res-amount.neg { color: #ffb4b4; }
.res-sub { margin: 0; color: #cfdcf0; font-size: .92rem; }
.res-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.pill { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 16px; text-align: left; min-width: 180px; }
.pill small { display: block; color: #b9cbe6; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pill b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pill.green { background: rgba(34, 197, 94, .2); border-color: rgba(34, 197, 94, .45); }

.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
@media (min-width: 760px) { .res-actions { grid-template-columns: repeat(4, 1fr); } }
.res-actions .btn { min-height: 48px; font-size: .86rem; padding: 0 10px; letter-spacing: .02em; }
@media (max-width: 559px) { .res-actions { grid-template-columns: 1fr; } .res-actions .btn { min-height: 50px; font-size: .92rem; } }
.res-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.res-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 860px) { .res-grid.two { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.panel h3 { margin: 0 0 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.panel h3 .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--info-bg); color: var(--navy-2); }
.panel h3 .tag.green { background: var(--green-bg); color: var(--green); }
.panel.indemn { border-color: #bfe6cd; background: linear-gradient(180deg, #f6fdf8, #fff); }
.panel.indemn.none { background: #fbfcfe; border-color: var(--line); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row-c { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--navy); }
.row-c i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.row-v { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row-v.zero { color: var(--muted); font-weight: 600; }
.row-v.neg { color: var(--red); }
.row-e { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; padding-left: 19px; }
.row.total { border-top: 2px solid var(--navy); border-bottom: 0; margin-top: 4px; padding-top: 14px; }
.row.total .row-c, .row.total .row-v { font-size: 1.08rem; }
.empty-ind { margin: 0; color: var(--muted); font-size: .93rem; }
.scenario { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: #5b3a06; font-size: .88rem; }
.scenario b { font-variant-numeric: tabular-nums; }

.chart-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: center; }
.donut { width: 180px; height: 180px; flex: none; }
.donut text { font-family: var(--font); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; font-size: .86rem; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend span { flex: 1; color: var(--text); }
.legend b { font-variant-numeric: tabular-nums; color: var(--navy); }
.bars { margin-top: 12px; display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #eef2f8; }
.bars span { height: 100%; transition: width .6s ease; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: .98rem; }

.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.alert.info { background: var(--info-bg); color: #1d3a6b; }
.alert.warn { background: var(--amber-bg); color: #5b3a06; }
.list { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--text); }
.list li { margin: 4px 0; }
.ded-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ded-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ded-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.ded-table tr:last-child td { border-bottom: 0; }
.ded-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.res-disclaimer { margin: 18px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.print-only { display: none; }

/* ============ anuncios (placeholders) ============ */
.ad-slot { display: flex; align-items: center; justify-content: center; border: 1.5px dashed #b8c4d6; border-radius: 14px; background: repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 10px, #f1f4f9 10px, #f1f4f9 20px); color: #8291a7; font-size: .75rem; font-weight: 700; letter-spacing: .18em; }
.ad-leaderboard { min-height: 100px; margin: 18px auto 8px; max-width: 920px; }
@media (min-width: 760px) { .ad-leaderboard { min-height: 110px; } }
.ad-wide { min-height: 120px; margin: 8px auto 0; max-width: 920px; }
.ad-incontent { min-height: 250px; margin: 28px 0; }
.ad-corner { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 300px; height: 100px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 10px, #f1f4f9 10px, #f1f4f9 20px); border: 1.5px dashed #b8c4d6; border-radius: 14px; color: #8291a7; font-size: .75rem; font-weight: 700; letter-spacing: .18em; box-shadow: var(--shadow); animation: rise .3s ease both; }
@media (max-width: 1279px) { .ad-corner { display: none !important; } }
.ad-close { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.ad-close:hover { background: rgba(11, 31, 58, .08); }
.ad-dialog { border: 0; border-radius: 20px; padding: 22px; width: min(420px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(11, 31, 58, .5); text-align: center; }
.ad-dialog::backdrop { background: rgba(11, 31, 58, .45); }
.ad-dialog-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 14px; font-weight: 700; color: var(--navy); }
.ad-modal { min-height: 250px; margin-bottom: 14px; }
.ad-dialog .btn { width: 100%; min-height: 46px; }

/* ============ secciones ============ */
.section { padding: clamp(44px, 6vw, 72px) 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--navy-2)); margin-bottom: 14px; }
.step:nth-child(2) .step-ico { background: linear-gradient(150deg, var(--blue), #3f7ae0); }
.step:nth-child(3) .step-ico { background: linear-gradient(150deg, var(--green), var(--green-3)); }
.step-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-n { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -14px; width: 12px; height: 2px; background: var(--line-2); } }

.guide-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .guide-grid { grid-template-columns: 230px 1fr; } .toc { position: sticky; top: 80px; align-self: start; } }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .9rem; }
.toc-title { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
@media (max-width: 959px) { .toc { display: none; } }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 40px); min-width: 0; }
.prose h2 { margin-bottom: 8px; }
.prose h3 { margin: 30px 0 8px; scroll-margin-top: 80px; }
.prose p, .prose li { color: #24324a; }
.prose ol, .prose ul { padding-left: 20px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 28px; margin: 8px 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.compare > div { border-radius: 14px; padding: 14px 16px; background: var(--info-bg); }
.compare > div:last-child { background: var(--green-bg); }
.compare ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.compare-h { margin: 0 0 6px; font-weight: 750; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: 0; }
.disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--amber-bg); color: #5b3a06 !important; font-size: .92rem; }

.faq-tools { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 16px; }
.faq-search { position: relative; }
.faq-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.faq-search input { padding-left: 42px; background: #fff; }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq[open] { border-color: var(--line-2); box-shadow: 0 8px 24px -14px rgba(11, 31, 58, .25); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 650; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 18px 14px; color: #24324a; animation: rise .2s ease both; }
.faq-a p { margin: 0; }
.faq-empty { text-align: center; color: var(--muted); }

.cards { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card-link { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card-link b { color: var(--navy); }
.card-link span { color: var(--muted); font-size: .9rem; }
.card-link:hover { transform: translateY(-2px); border-color: var(--green-2); box-shadow: var(--shadow); }
.card-link[aria-current="page"] { display: none; }

/* footer */
.site-footer { margin-top: 64px; background: var(--navy); color: #c7d4e8; padding: 36px 0 22px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.logo-light { color: #fff; }
.logo-light b { color: var(--green-3); }
.foot-note { max-width: 420px; font-size: .88rem; margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.foot-links a, .linklike { color: #fff; text-decoration: none; font-size: .92rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; cursor: pointer; }
.foot-links a:hover, .linklike:hover { text-decoration: underline; }
.copy { margin-top: 22px; font-size: .8rem; color: #8ea3c4; }

/* cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; animation: rise .3s ease both; }
.cookie-in { max-width: 760px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px -20px rgba(11, 31, 58, .45); padding: 16px 18px; }
.cookie-in p { margin: 0 0 12px; font-size: .9rem; }
.cookie-prefs { margin-bottom: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .cookie-actions .btn { flex: 1 1 30%; } }

/* páginas legales */
.legal { padding: 36px 0; }
.legal .prose h2 { font-size: 1.25rem; margin-top: 28px; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* ============ impresión ============ */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .hero, .trust, .ad-slot, .ad-corner, .ad-dialog, .cookie-banner, .site-footer, .section, .more, .res-actions, .calc-form, .skip, .noscript { display: none !important; }
  .tool-card { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .print-only { display: block; }
  .res-hero { background: #fff !important; color: var(--navy); border: 2px solid var(--navy); }
  .res-hero::after { display: none; }
  .res-label, .res-sub, .pill small { color: var(--muted); }
  .pill { border-color: var(--line-2); background: #fff !important; color: var(--navy); }
  .panel, .alert, .facts div { break-inside: avoid; }
  .res-grid.two { grid-template-columns: 1fr 1fr; }
  .result { animation: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-head { border-bottom: 2px solid var(--navy); margin-bottom: 14px; padding-bottom: 8px; }
.print-head h2 { font-size: 1.3rem; margin: 0; }
.print-head p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.print-data { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 14px; }
.print-data td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
