/* =============================================================
   Lince — herramientas online gratis
   Hoja de estilos única, compartida por todas las páginas.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --ink: #17181c;
  --ink-2: #4a4c55;
  --ink-3: #6e707a;
  --line: #e2dfd6;
  --line-strong: #cfcbbf;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --accent-hover: #a63508;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #a16207;
  --warn-soft: #fdf5dc;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --focus: #c2410c;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 24, 28, .05), 0 8px 28px rgba(23, 24, 28, .07);
  --gutter: 16px;
  --maxw: 1080px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317;
    --surface: #1a1c21;
    --surface-2: #22252b;
    --ink: #f1f0ec;
    --ink-2: #c3c3c9;
    --ink-3: #9a9ba3;
    --line: #2d3037;
    --line-strong: #3b3f47;
    --accent: #f0743a;
    --accent-ink: #1a0d05;
    --accent-soft: #3a2116;
    --accent-hover: #ff8a52;
    --ok: #4ade80;
    --ok-soft: #12301d;
    --warn: #facc15;
    --warn-soft: #332b0c;
    --bad: #f87171;
    --bad-soft: #3a1717;
    --focus: #f0743a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.015em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* =============================================================
   4. Header & footer
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .45rem .7rem; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .925rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; padding: .45rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); font-weight: 500; font-size: .925rem; background: var(--surface);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--surface-2); }
.nav-menu .nav-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .4rem; display: grid;
}
.nav-menu .nav-menu-list a {
  padding: .6rem .7rem; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.nav-menu .nav-menu-list a:hover { background: var(--surface-2); }
@media (max-width: 959px) {
  .nav { display: none; }
  .nav-menu { display: block; }
}

.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .9rem;
}
.site-footer .container { padding-block: 2.5rem 2rem; display: grid; gap: 1.75rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-cols h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .6rem; font-family: var(--sans); }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.25rem; display: grid; gap: .5rem; font-size: .8rem; color: var(--ink-3); }
.footer-legal a { color: var(--ink-3); }

/* =============================================================
   5. Hero (H1 = intención de búsqueda)
   ============================================================= */
.hero { padding-block: 1.6rem 1rem; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  max-width: 24ch;
}
.hero .subtitle { margin-top: .5rem; color: var(--ink-2); font-size: clamp(.98rem, .92rem + .3vw, 1.1rem); max-width: 62ch; }
.breadcrumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: .6rem; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* =============================================================
   6. Tool card + estados
   ============================================================= */
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(14px, 2.4vw, 26px);
}
.tool-card + .tool-card { margin-top: 1rem; }
.noscript-note {
  padding: 1rem; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink);
  border: 1px solid var(--line);
}

/* Dropzone */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: .6rem;
  min-height: 210px; padding: 1.5rem 1rem;
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 46px; height: 46px; color: var(--accent); }
.dropzone .dz-title { font-weight: 650; font-size: 1.08rem; }
.dropzone .dz-sub { color: var(--ink-3); font-size: .9rem; }
.dropzone .btn { pointer-events: none; }
.dropzone.is-compact { min-height: 0; padding: .9rem 1rem; grid-auto-flow: column; justify-content: center; gap: .75rem; }
.dropzone.is-compact .dz-icon { width: 26px; height: 26px; }
.dropzone.is-compact .dz-sub { display: none; }
.dropzone.is-compact .dz-title { font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.15rem; border-radius: 10px;
  border: 1px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); padding-inline: .6rem; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding-inline: 1.4rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-done { background: var(--ok); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Forms */
.field { display: grid; gap: .35rem; }
.field > label, .field-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, .select, textarea.input {
  width: 100%; min-height: 44px; padding: .55rem .75rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .addon {
  display: grid; place-items: center; padding-inline: .7rem; min-width: 44px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 0;
  border-radius: 0 10px 10px 0; color: var(--ink-3); font-size: .9rem; font-weight: 600;
}
.input-group .addon-pre { border-radius: 10px 0 0 10px; border: 1px solid var(--line-strong); border-right: 0; }
.input-group .addon-pre + .input { border-radius: 0 10px 10px 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="color"] {
  width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); cursor: pointer;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; cursor: pointer; }
.grid-2 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 540px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Segmented control (radios) */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .4rem .85rem;
  border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer;
}
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.segmented input:disabled + span { opacity: .45; cursor: not-allowed; }

/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .25s var(--ease-out); }
.progress.is-indeterminate > i { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* Status + alerts */
.status { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-2); }
.alert { padding: .75rem .9rem; border-radius: 10px; font-size: .92rem; border: 1px solid transparent; }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert strong { font-weight: 650; }

/* Privacy badge + limits */
.privacy {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: .9rem; font-size: .88rem; color: var(--ink-2);
}
.privacy .badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok); font-weight: 600;
}
.privacy .badge svg { width: 15px; height: 15px; }

/* File rows (lotes) */
.file-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.file-list:empty, .stack > div:empty { display: none; }
.file-row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .75rem;
  padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.file-row .thumb {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-3); overflow: hidden;
}
.file-row .thumb img, .file-row .thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.file-row .meta { min-width: 0; }
.file-row .name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .info { font-size: .8rem; color: var(--ink-3); }
.file-row .info .ok { color: var(--ok); font-weight: 600; }
.file-row .info .bad { color: var(--bad); font-weight: 600; }
.file-row .progress { margin-top: .35rem; height: 5px; }
.file-row .actions { display: flex; gap: .35rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Result block */
.result {
  margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm);
  background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
}
.result-title { font-weight: 700; font-size: 1.05rem; }

/* Stats (hipoteca, resultados) */
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.stat .label { font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat.is-main { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.stat.is-main .value { color: var(--accent); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: .5rem .7rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 650; color: var(--ink-2); }
table.data tbody tr:nth-child(12n) td { border-bottom-color: var(--line-strong); }

/* Tool layouts */
.tool-split { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .tool-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
  .tool-split .sticky { position: sticky; top: 76px; }
}
.panel-title { font-weight: 700; font-size: 1rem; margin-bottom: .65rem; }
.stack { display: grid; gap: .9rem; }
.divider { height: 1px; background: var(--line); margin-block: 1rem; border: 0; }

/* =============================================================
   7. Ad slots (marcadores — el dueño pega AdSense después)
   ============================================================= */
.ad-slot {
  display: grid; place-items: center; margin-block: 1.75rem;
  min-height: 100px; border: 1px dashed var(--line-strong); border-radius: 12px;
  color: var(--ink-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--surface-2) 70%, transparent) 10px 20px);
}
.ad-slot.is-live { border: 0; background: none; place-items: stretch; }
.ad-slot--leaderboard { min-height: 100px; }
.ad-slot--incontent { min-height: 280px; }
@media (min-width: 720px) { .ad-slot--leaderboard { min-height: 110px; } }

/* =============================================================
   8. Content sections (cómo funciona, SEO, FAQ, más herramientas)
   ============================================================= */
.section { margin-top: 2.5rem; }
.section > h2, .prose h2 { font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); margin-bottom: .9rem; }
.steps { list-style: none; padding: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative; padding: 1rem 1rem 1rem 3.3rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem;
}
.steps strong { display: block; margin-bottom: .15rem; }
.steps p { color: var(--ink-2); font-size: .93rem; }

.prose { max-width: 72ch; }
.prose p, .prose ul, .prose ol { color: var(--ink-2); margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; margin-bottom: 1rem; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.prose th { background: var(--surface-2); }

.faq { display: grid; gap: .6rem; max-width: 80ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: .9rem 2.6rem .9rem 1rem; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 1rem 1rem; color: var(--ink-2); }
.faq .answer p + p { margin-top: .6rem; }

.tools-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-link {
  display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: start;
  padding: 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s var(--ease-out), transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.tool-link:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-link .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tool-link .ico svg { width: 22px; height: 22px; }
.tool-link strong { display: block; font-size: 1rem; }
.tool-link span { font-size: .87rem; color: var(--ink-3); line-height: 1.4; display: block; margin-top: .1rem; }

.country-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.country-grid a {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.country-grid a:hover { border-color: var(--accent); color: var(--accent); }
.country-grid a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }

/* Home */
.home-hero { padding-block: 2.5rem 1.5rem; }
.home-hero h1 { font-family: var(--display); font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); max-width: 18ch; }
.home-hero p { margin-top: .8rem; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 58ch; }
.home-tools { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .home-tools { grid-template-columns: 1fr 1fr; } }
.home-tool {
  display: grid; gap: .6rem; padding: 1.3rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.home-tool:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.home-tool .ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.home-tool .ico svg { width: 26px; height: 26px; }
.home-tool h2 { font-family: var(--display); font-size: 1.3rem; }
.home-tool p { color: var(--ink-2); font-size: .95rem; }
.home-tool .go { font-weight: 650; color: var(--accent); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .78rem; padding: .2rem .55rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* Legal pages */
.legal { max-width: 75ch; }
.legal h2 { font-family: var(--display); font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: .7rem; }
.legal ul { padding-left: 1.2rem; }
.todo { background: var(--warn-soft); padding: 0 .3rem; border-radius: 4px; font-weight: 600; color: var(--ink); }

/* Copy feedback */
.copied-flash { animation: flash .6s var(--ease-out); }
@keyframes flash { 0% { background: var(--ok-soft); } 100% { background: transparent; } }

/* =============================================================
   9. Print
   ============================================================= */
@media print {
  .site-header, .site-footer, .ad-slot, .no-print, .faq, .tools-more, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .tool-card { box-shadow: none; border: 0; padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  table.data thead th { position: static; }
}

/* =============================================================
   10. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress.is-indeterminate > i { animation-duration: 2.4s; }
}
