/* =============================================================
   CuantoCasa — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Layout · 5. Header
   6. Hero · 7. Tool card · 8. Inputs · 9. Desglose · 10. Tabla
   11. Anticipada · 12. Foot/privacy · 13. Ads · 14. Sections
   15. Content tables · 16. FAQ · 17. Footer · 18. Responsive
   ============================================================= */

/* ============ 1. TOKENS ============ */
:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --ink: #14263d;
  --ink-soft: #35496380;
  --muted: #5c6b82;
  --line: #e0e7f1;
  --line-strong: #cdd8e8;

  --primary: #12324f;
  --accent: #2563eb;
  --accent-strong: #1b4fd0;
  --accent-tint: #e7effe;
  --good: #0f9d63;
  --good-tint: #e4f6ee;
  --warn: #c2410c;
  --warn-tint: #fdeee5;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(20,38,61,.06), 0 1px 3px rgba(20,38,61,.05);
  --shadow: 0 10px 30px -12px rgba(18,50,79,.22), 0 4px 10px -6px rgba(18,50,79,.12);
  --shadow-lg: 0 30px 60px -22px rgba(18,50,79,.34);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1626;
    --surface: #12213a;
    --surface-2: #16294a;
    --ink: #eaf1fb;
    --ink-soft: #9db2d0;
    --muted: #9db0cd;
    --line: #23375a;
    --line-strong: #33507f;
    --primary: #dbe7fb;
    --accent: #5b93ff;
    --accent-strong: #7aabff;
    --accent-tint: #17335f;
    --good: #34d399;
    --good-tint: #123a2c;
    --warn: #fb923c;
    --warn-tint: #3a2413;
    --shadow: 0 12px 34px -14px rgba(0,0,0,.6);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lg: 0 30px 60px -22px rgba(0,0,0,.7);
  }
}

/* ============ 2. RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); }
input, select, button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ============ 3. UTILITIES ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ============ 5. HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand-mark { color: var(--accent); }
.header-nav { display: none; gap: 1.4rem; }
.header-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.header-nav a:hover { color: var(--ink); text-decoration: none; }

/* ============ 6. HERO ============ */
.hero { padding-top: clamp(1.5rem, 4vw, 2.6rem); padding-bottom: 1rem; }
.hero-title { font-size: clamp(1.7rem, 4.6vw, 2.7rem); font-weight: 800; max-width: 20ch; margin-bottom: .5rem; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); max-width: 60ch; margin-bottom: 1.4rem; }

/* ============ 7. TOOL CARD ============ */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }

.resultado-hero {
  display: grid; grid-template-columns: 1fr; gap: .3rem;
  background: linear-gradient(135deg, #12324f 0%, #1b4a75 60%, #1f5f9a 100%);
  color: #fff; padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.7rem);
}
.rh-item { display: flex; flex-direction: column; gap: .1rem; padding-block: .35rem; }
.rh-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: #b8d2ec; font-weight: 600; }
.rh-num { font-family: var(--display); font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 800; line-height: 1.02; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.rh-ahorro .rh-num { color: #fff; }
.rh-cuota .rh-num { color: #9ff0c6; }
.rh-sub { font-size: .84rem; color: #a9c6e2; }
.rh-div { display: none; }

.tool-grid { display: grid; grid-template-columns: 1fr; }
.panel { padding: clamp(1.1rem, 3vw, 1.6rem); }
.panel + .panel { border-top: 1px solid var(--line); }
.panel-title { font-size: 1.06rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; }
.step { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); font-size: .9rem; font-weight: 800; font-family: var(--sans); }

/* ============ 8. INPUTS ============ */
.field { margin-bottom: 1rem; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label, .field-label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .38rem; }
.field-head { display: flex; align-items: center; justify-content: space-between; }
.field-head .field-label { margin-bottom: .38rem; }

.input-euro { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); overflow: hidden; }
.input-euro:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.input-euro input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .5rem .7rem .8rem; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.input-euro input:focus { outline: none; }
.input-euro .unit { padding-inline: .8rem; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.input-euro.sm input { padding-block: .5rem; }

select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  padding: .7rem .8rem; color: var(--ink); font-weight: 600; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6b82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem;
}
select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); outline: none; }

/* Segmented (tipo vivienda) */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem; }
.seg { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span { display: block; text-align: center; padding: .55rem; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .18s var(--ease-out); }
.seg input:checked + span { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Chips (tipos reducidos) */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: .44rem .7rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--muted); transition: all .16s var(--ease-out); user-select: none; }
.chip span::before { content: "+ "; opacity: .5; }
.chip input:checked + span { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-strong); }
.chip input:checked + span::before { content: "✓ "; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Mini-toggle (% / €) */
.mini-toggle { display: inline-flex; gap: .2rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: .18rem; }
.mini-toggle label { margin: 0; cursor: pointer; }
.mini-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mini-toggle span { display: block; padding: .2rem .6rem; border-radius: 6px; font-weight: 700; font-size: .84rem; color: var(--muted); }
.mini-toggle input:checked + span { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

/* Range */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: var(--line-strong); outline: none; margin: .5rem 0 .4rem; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.range-read { font-size: .88rem; color: var(--muted); }
.range-read strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============ 9. DESGLOSE ============ */
.desglose { margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.desglose-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem .9rem; font-size: .93rem; border-top: 1px solid var(--line); }
.desglose-row:first-child { border-top: 0; }
.dr-label { color: var(--muted); }
.dr-label em { font-style: normal; color: var(--ink-soft); font-size: .8em; }
.dr-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.desglose-row.is-tax { background: var(--accent-tint); }
.desglose-row.is-tax .dr-label { color: var(--accent-strong); font-weight: 600; }
.desglose-row.is-tax .dr-val { color: var(--accent-strong); }
.desglose-row.is-total { background: var(--primary); }
.desglose-row.is-total .dr-label { color: #cfe0f2; font-weight: 700; }
.desglose-row.is-total .dr-val { color: #fff; font-size: 1.08rem; }
@media (prefers-color-scheme: dark) { .desglose-row.is-total { background: #0a1a30; } }

/* Ajustar gastos */
.ajustar { margin-top: .8rem; }
.ajustar summary, .tabla-wrap summary, details.faq summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); font-size: .9rem; list-style: none; padding: .3rem 0; }
.ajustar summary::-webkit-details-marker, .tabla-wrap summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.ajustar summary::before, .tabla-wrap summary::before { content: "▸ "; }
.ajustar[open] summary::before, .tabla-wrap[open] summary::before { content: "▾ "; }
.ajustar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .6rem 0; }
.ajustar-grid label { font-size: .82rem; font-weight: 500; color: var(--muted); }
.ajustar-grid .input-euro { margin-top: .2rem; }
.link-btn { color: var(--accent-strong); font-size: .84rem; font-weight: 600; text-decoration: underline; }

.fuente { margin-top: .9rem; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.fuente a { font-weight: 600; white-space: nowrap; }

/* ============ 10. TABLA AMORTIZACIÓN ============ */
.tabla-wrap { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.tabla-tools { display: flex; gap: .5rem; margin: .6rem 0; flex-wrap: wrap; }
.btn-sm { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--surface); transition: all .16s var(--ease-out); }
.btn-sm:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-tint); }
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.amort { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.tabla-wrap .tabla-scroll { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
table.amort thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 700; text-align: right; padding: .5rem .7rem; border-bottom: 1px solid var(--line); z-index: 1; }
table.amort thead th:first-child { text-align: left; }
table.amort td { padding: .4rem .7rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.amort td:first-child { text-align: left; color: var(--muted); }
table.amort tr.year-sep td { border-top: 2px solid var(--line-strong); }

/* ============ 11. ANTICIPADA ============ */
.anticipada { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.anticipada h3 { font-size: 1rem; margin-bottom: .8rem; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .3rem; }
.opcion { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .12rem; transition: border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.opcion.is-best { border-color: var(--good); background: var(--good-tint); }
.op-tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.opcion.is-best .op-tag { color: var(--good); }
.op-main { font-family: var(--display); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.op-sub { font-size: .78rem; color: var(--muted); }
.op-ahorro { margin-top: .35rem; font-size: .9rem; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; }
.op-badge { display: inline-block; margin-top: .3rem; font-size: .7rem; font-weight: 700; background: var(--good); color: #fff; padding: .1rem .45rem; border-radius: 999px; width: fit-content; }
.recomendacion { margin-top: .8rem; font-size: .88rem; color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--accent); padding: .6rem .8rem; border-radius: 0 8px 8px 0; }
.recomendacion:empty { display: none; }

/* ============ 12. FOOT / PRIVACY ============ */
.tool-foot { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1rem, 3vw, 1.4rem); border-top: 1px solid var(--line); background: var(--surface-2); }
.btn-share { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; align-self: flex-start; padding: .7rem 1.2rem; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow-sm); transition: background .18s var(--ease-out), transform .12s var(--ease-out); }
.btn-share:hover { background: var(--accent-strong); text-decoration: none; }
.btn-share:active { transform: translateY(1px); }
.btn-share.is-copied { background: var(--good); }
.privacy-badge { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--muted); }
.privacy-badge svg { flex: none; margin-top: .15rem; color: var(--good); }
.privacy-badge strong { color: var(--ink); }

.js-warning { margin-top: 1rem; padding: .8rem 1rem; background: var(--warn-tint); color: var(--warn); border-radius: 10px; font-weight: 600; font-size: .9rem; }
.disclaimer { margin-top: 1.1rem; font-size: .84rem; color: var(--muted); line-height: 1.55; max-width: 90ch; }
.disclaimer strong { color: var(--ink); }

/* ============ 13. ADS ============ */
.ad-slot { display: grid; place-items: center; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: repeating-linear-gradient(45deg, transparent, transparent 10px, color-mix(in srgb, var(--muted) 5%, transparent) 10px, color-mix(in srgb, var(--muted) 5%, transparent) 20px); color: var(--muted); }
.ad-slot span { font-size: .72rem; font-weight: 800; letter-spacing: .18em; opacity: .55; }
.ad-leaderboard { min-height: 96px; margin: 1.6rem 0 .4rem; }
.ad-incontent { min-height: 250px; margin: .5rem 0; }
.ad-toast { position: fixed; right: .8rem; bottom: .8rem; z-index: 60; width: min(280px, calc(100vw - 1.6rem)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; }
.ad-toast-close { position: absolute; top: -.55rem; right: -.55rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.05rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.ad-corner { min-height: 60px; border-radius: 8px; }

/* ============ 14. SECTIONS ============ */
.section { padding-block: clamp(2.2rem, 6vw, 3.6rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.section-lead { color: var(--muted); max-width: 70ch; margin-bottom: 1.4rem; }
.prose { max-width: 78ch; }
.prose p, .prose li { color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }

.pasos { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
.paso { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.paso-n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); font-family: var(--display); font-weight: 800; margin-bottom: .7rem; }
.paso h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.paso p { font-size: .93rem; color: var(--muted); }

/* ============ 15. CONTENT TABLES ============ */
.tabla-info, .tabla-itp { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: .5rem; }
.tabla-info th, .tabla-itp th { background: var(--primary); color: #fff; text-align: left; padding: .7rem .9rem; font-size: .84rem; font-weight: 700; }
.tabla-info td, .tabla-itp td { padding: .65rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.tabla-itp td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tabla-info tr:nth-child(even) td, .tabla-itp tbody tr:nth-child(even) td { background: var(--surface-2); }
.tabla-info tr.hl td { background: var(--good-tint); }
.tabla-info tr.hl td strong { color: var(--good); }

.errores { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.errores li { position: relative; padding: .9rem 1rem .9rem 2.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: .95rem; }
.errores li::before { content: "✕"; position: absolute; left: .9rem; top: .95rem; width: 1.2rem; height: 1.2rem; background: var(--warn-tint); color: var(--warn); border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }

/* ============ 16. FAQ ============ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; box-shadow: var(--shadow-sm); overflow: hidden; }
details.faq summary { padding: .95rem 1.1rem; font-size: 1rem; color: var(--ink); }
details.faq summary::before { content: "+ "; color: var(--accent); font-weight: 800; }
details.faq[open] summary::before { content: "– "; }
details.faq p { padding: 0 1.1rem 1.1rem; color: var(--muted); }

/* ============ 17. FOOTER ============ */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2rem 1.4rem; margin-top: 1rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.footer-brand .brand { font-size: 1.1rem; margin-bottom: .4rem; }
.footer-brand p { max-width: 44ch; }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--accent-strong); }
.footer-legal { margin-top: 1rem; max-width: 90ch; }

/* ============ 18. RESPONSIVE ============ */
@media (min-width: 600px) {
  .resultado-hero { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
  .rh-div { display: block; width: 1px; align-self: stretch; background: rgba(255,255,255,.18); }
}
@media (min-width: 720px) {
  .header-nav { display: flex; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .panel + .panel { border-top: 0; border-left: 1px solid var(--line); }
}

/* ============ 19. REDUCED MOTION (solo lo intrusivo) ============ */
@media (prefers-reduced-motion: reduce) {
  .ad-toast { transition: none; }
}
