@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
/* =============================================================
   Autónomo en Cifras — hoja de estilos única
   ============================================================= */

/* 1. Tokens ----------------------------------------------------
   Identidad: blanco como base, azul marino institucional como color
   principal y dorado solo en detalles (filetes, cifras clave, distintivos).
   Las cifras grandes se componen en serif, como en un informe financiero. */
:root {
  --bg: #ffffff;
  --band: #f7f9fc;            /* gris casi blanco para filas alternas y ejemplos */
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #0e1b33;
  --ink-2: #3e4c66;
  --ink-3: #66728a;
  --line: #e1e6ef;
  --line-2: #cfd7e4;
  --accent: #14305e;          /* azul marino */
  --accent-2: #1f4c8f;        /* azul de enlaces y estados */
  --accent-ink: #ffffff;
  --accent-soft: #eaf0f9;
  --gold: #c39a3e;            /* dorado decorativo */
  --gold-ink: #86661c;        /* dorado legible sobre blanco */
  --gold-soft: #fbf5e6;
  --head-bg: #ffffff;
  --head-ink: #14305e;
  --head-ink-2: #3e4c66;
  --head-line: #e1e6ef;
  --warn: #8a5a0c;
  --warn-soft: #fbf3df;
  --bad: #ad3a33;
  --chart-1: var(--accent);
  --chart-2: #9aa6b9;
  --chart-3: var(--gold);
  --chart-4: #ad3a33;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14,27,51,.05), 0 10px 30px rgba(14,27,51,.07);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1140px;
  --gutter: 16px;
  color-scheme: light;
}
/* Tema único claro: la marca es blanco, azul marino y dorado en cualquier dispositivo. */

/* 2. Reset & base ---------------------------------------------- */
[hidden] { display: none !important; }
*, *::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 { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-underline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* 3. Utilities --------------------------------------------------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--surface); color: var(--ink);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. Header ------------------------------------------------------- */
.site-header { background: var(--head-bg); border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--head-ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.005em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin: 0 -6px; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 719px) { .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; } }
.nav a { white-space: nowrap; color: var(--head-ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; padding: 8px 10px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--head-ink); }
.nav a[aria-current="page"] { color: var(--head-ink); font-weight: 600; border-bottom-color: var(--gold); }

/* 5. Hero / intro ------------------------------------------------- */
.intro { padding-top: 22px; padding-bottom: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.6vw, 2.65rem); margin-top: 6px; color: var(--accent); letter-spacing: -0.02em; }
.lede { color: var(--ink-2); margin-top: 6px; max-width: 62ch; font-size: 1rem; }

/* 6. Tool card ---------------------------------------------------- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  overflow: clip;
}
.tool-form { padding: 18px; display: grid; gap: 14px; align-content: start; }
.tool-result { padding: 18px; background: var(--surface-2); border-top: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 5px; }
.field > label, .field > .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.input-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .9rem; pointer-events: none; }
input[type="number"], input[type="text"], select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--bad); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { padding: 7px 12px; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* Resultado */
.big-result { display: grid; gap: 2px; }
.big-result .k { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.big-result .v { font-family: var(--serif); font-size: clamp(2.1rem, 7vw, 2.9rem); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; color: var(--accent); }
.big-result .sub { font-size: .88rem; color: var(--ink-2); }
.breakdown { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.breakdown li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.breakdown li.total { font-weight: 700; font-size: 1rem; }
.breakdown li.minus span:last-child { color: var(--bad); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.note { font-size: .82rem; color: var(--ink-3); }
.alert { font-size: .86rem; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); }
.error-msg { font-size: .86rem; color: var(--bad); min-height: 0; }
.bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); }
.bar span { display: block; height: 100%; transition: width .4s var(--ease-out); }
.bar-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-2); }
.bar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .82rem; color: var(--ink-3); }
.trust span::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.nojs { padding: 18px; color: var(--ink-2); }
.js .nojs { display: none; }

/* Barra de resultado fija (solo móvil) */
.peek {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  transform: translateY(110%); transition: transform .25s var(--ease-out);
}
.peek.is-on { transform: none; }
.peek-k { font-size: .78rem; color: var(--ink-2); font-weight: 600; display: block; }
.peek-v { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.peek { border-top: 2px solid var(--gold) !important; }
.peek button { color: var(--accent); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (min-width: 960px) { .peek { display: none; } }


/* Grupos de campos y líneas de factura */
.group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px 14px; display: grid; gap: 12px; min-width: 0; }
.group legend { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }
.lineas { display: grid; gap: 8px; }
.linea { display: grid; grid-template-columns: 1fr 64px 92px 38px; gap: 6px; align-items: center; }
.linea .l-con { grid-column: 1 / -1; }
.l-del { width: 38px; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-3); font-size: 1.2rem; }
.l-del:hover { color: var(--bad); border-color: var(--bad); }
.linea .l-can { grid-column: 1 / 2; }
.btn-big { width: 100%; min-height: 52px; font-size: 1rem; }
.btn:disabled { opacity: .7; cursor: progress; }
@media (min-width: 540px) {
  .linea { grid-template-columns: 1fr 70px 110px 38px; }
  .linea .l-con { grid-column: auto; }
  .linea .l-can { grid-column: auto; }
}
@media (min-width: 960px) {
  .tool-card--wide { grid-template-columns: 1.5fr 1fr; }
}

/* Identidad v2: banda de introducción, selector de año, cifras clave ---- */
.intro-band { background: var(--bg); margin-bottom: 14px; }
.intro-band + section .tool-card, .intro-band + section .tools-grid { margin-top: 0; }
.tool-card { border-top: 3px solid var(--accent); }
.year-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.year-row .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.seg[data-year-seg] button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.prov-note { font-size: .8rem; line-height: 1.45; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); vertical-align: 2px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.kpi { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.kpi .k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.kpi .v { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; line-height: 1.15; }
.kpi .s { font-size: .78rem; color: var(--ink-3); }
.hero-home { padding-top: 34px; padding-bottom: 30px; }
.hero-home h1 { font-size: clamp(2rem, 5.6vw, 3.2rem); max-width: 22ch; }
.status-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.status-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.chip { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; margin-top: 2px; }
.chip--ok { background: var(--accent-soft); color: var(--accent); }
.chip--wait { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Comunidad y situación familiar */
.perfil { display: grid; gap: 12px; }
.fam { padding: 0; gap: 0; }
.fam summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.fam summary::-webkit-details-marker { display: none; }
.fam summary::after { content: "+"; color: var(--gold-ink); font-weight: 700; margin-left: 6px; }
.fam[open] summary::after { content: "–"; }
.fam-sum { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.fam-body { display: grid; gap: 12px; padding: 0 12px 14px; }
.author { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.author-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; box-shadow: inset 0 0 0 2px var(--gold); }
.author p { margin: 0 !important; font-size: .86rem; line-height: 1.45; }
.author strong { color: var(--accent); }

/* Calendario laboral */
.mini-h { font-size: .86rem; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.fest-list li span:last-child { font-weight: 500; }
.tag { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.tag--ok { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); }
.tag--off { background: var(--band); color: var(--ink-3); border: 1px solid var(--line); }
.puentes-box h3 { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin: 6px 0 8px; }
.puentes { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 8px; }
.puentes li { display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .88rem; }
.puentes strong { color: var(--accent); font-family: var(--serif); font-size: 1.05rem; }
.puentes .pedir { color: var(--gold-ink); font-size: .82rem; font-weight: 600; }
.sec-h { font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 34px 0 6px; }
.cal-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--ink-2); margin-bottom: 12px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-fest { background: var(--accent); }
.lg-fin { background: var(--band); border: 1px solid var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.mes { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface); min-width: 0; }
.mes h3 { font-family: var(--serif); font-weight: 600; color: var(--accent); text-transform: capitalize; font-size: 1.02rem; margin-bottom: 8px; }
.mes-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; }
.mes-grid span { padding: 4px 0; border-radius: 5px; color: var(--ink-2); }
.mes-grid .dh { font-weight: 700; color: var(--ink-3); font-size: .68rem; }
.mes-grid .fin { background: var(--band); color: var(--ink-3); }
.mes-grid .fest { background: var(--accent); color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); cursor: help; }

/* 7. Ad slots (vacíos hasta activar AdSense) ----------------------
   Ocultos mientras la web no tenga publicidad. Para mostrarlos, añadir
   class="ads-on" a la etiqueta <html> de cada página (build.py). */
html:not(.ads-on) .ad-slot { display: none; }
.ad-slot {
  min-height: 110px;
  margin: 26px auto;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad-slot--content { min-height: 260px; }

/* 8. Contenido ---------------------------------------------------- */
.content { padding: 8px 0 30px; }
.content h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 38px 0 12px; color: var(--accent); }
.content h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.content p, .content li { color: var(--ink-2); }
.content p + p { margin-top: 10px; }
.content ul, .content ol { padding-left: 1.2rem; display: grid; gap: 6px; margin-top: 8px; }
.content strong { color: var(--ink); }
.steps { list-style: none; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 14px 52px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold); font-weight: 700; display: grid; place-items: center; font-size: .82rem; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { background: var(--accent); font-weight: 600; color: var(--accent-ink); font-size: .8rem; letter-spacing: .02em; }
tbody tr:nth-child(even) td { background: var(--band); }
tr.is-active td, tbody tr.is-active:nth-child(even) td { background: var(--gold-soft); font-weight: 700; color: var(--ink); box-shadow: inset 0 1px 0 var(--gold), inset 0 -1px 0 var(--gold); }
.example { background: var(--band); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 14px; }
.source { font-size: .82rem; color: var(--ink-3); margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 8px; margin-top: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; }

/* Tarjetas de herramientas */
.tools-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 12px; }
.tool-link { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.tool-link:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-link strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--accent); }
.tool-link span { font-size: .88rem; color: var(--ink-2); }
.tool-link em { font-style: normal; font-size: .82rem; color: var(--gold-ink); font-weight: 700; margin-top: 6px; }
.tool-link.is-soon { opacity: .6; pointer-events: none; }

/* 9. Footer -------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); box-shadow: inset 0 2px 0 var(--gold); padding: 30px 0 38px; margin-top: 28px; font-size: .85rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--accent); }
.legal-page h2 { font-family: var(--sans); font-size: 1.1rem; }

/* 10. Responsive --------------------------------------------------- */
@media (min-width: 540px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .intro { padding-top: 34px; padding-bottom: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .tool-card { grid-template-columns: 1.05fr 1fr; }
  .tool-result { border-top: 0; border-left: 1px solid var(--line); }
  .tool-form, .tool-result { padding: 24px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 11. Impresión ---------------------------------------------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .actions, .faq, .tools-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .tool-card { box-shadow: none; }
}
