/* Red Tape Guides (antes Tradiciones del Mundo) — hoja de estilos única.
   v12 (2026-11-26): rediseño. El artículo deja el índice lateral izquierdo,
   que empujaba el texto a la derecha y dejaba una columna vacía bajo el
   índice; ahora la lectura va en una columna centrada y el índice, en un
   carril derecho que solo aparece en pantallas anchas. */

/* v17 (2026-11-26): imagen corporativa. Azul marino y gris frío en lugar
   del crema y verde, todo en Inter (sin la serifa Fraunces, más de blog),
   esquinas más rectas, botones rectangulares e iconos de línea. Pedido de
   Xavi: «la web lo más corporativa posible».
   Inter se sirve desde el propio dominio (antes Google Fonts, que recibía la
   IP de cada visitante); es variable, un fichero cubre todos los pesos. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --ink: #0f1b2d;
  --ink-2: #2b3a4f;
  --muted: #5a6a80;
  --line: #e1e6ee;
  --accent: #0b3a6e;
  --accent-2: #1557a6;
  --accent-soft: #e9f0f9;
  --gold: #c99a2e;
  --warm: #a15c0c;
  --warm-soft: #fdf3e2;
  --navy: #0b2240;
  --footer: #081a31;
  --footer-ink: #b8c4d6;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgb(15 27 45 / .06);
  --shadow-hover: 0 6px 24px rgb(15 27 45 / .10);
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2c;
    --surface-2: #152135;
    --ink: #e8edf5;
    --ink-2: #cdd6e3;
    --muted: #97a5ba;
    --line: #233149;
    --accent: #8db8f0;
    --accent-2: #b0cff7;
    --accent-soft: #16263f;
    --gold: #e0b75a;
    --warm: #f0a95b;
    --warm-soft: #2b2114;
    --navy: #0a1a31;
    --footer: #060f1d;
    --footer-ink: #97a5ba;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-hover: 0 8px 28px rgb(0 0 0 / .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* Márgenes laterales reducidos (Xavi, 2026-11-27): antes min(1180px, 100% - 40px)
   y 100% - 32px en móvil. */
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

h1 { font: 750 clamp(2rem, 4.2vw, 3.1rem)/1.12 var(--serif); margin: 0 0 18px; letter-spacing: -.028em; text-wrap: balance; }
h2 { font: 700 clamp(1.45rem, 2.5vw, 1.85rem)/1.25 var(--serif); margin: 0 0 16px; letter-spacing: -.02em; text-wrap: balance; }
h3 { font: 650 1.17rem/1.35 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 18px; }

/* ---- Cabecera ---- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.14rem var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand span { color: var(--accent-2); font-weight: 500; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-s); }
.main-nav a:hover { background: var(--surface-2); color: var(--accent); }
.main-nav a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-search input {
  width: 200px; padding: 8px 14px 8px 36px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6573' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 13px 50%;
  color: var(--ink); font: inherit; font-size: .9rem; transition: width .2s, border-color .2s;
}
.header-search input:focus { width: 240px; border-color: var(--accent); outline: none; }
.topics { position: relative; margin-left: auto; }
.topics summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: " ▾"; color: var(--muted); }
.topics ul { position: absolute; right: 0; top: 46px; list-style: none; margin: 0; padding: 10px; width: min(300px, calc(100vw - 32px)); max-height: 75vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.topics li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.topics li a:hover, .topics li a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.topics li.all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
@media (min-width: 861px) { .topics { display: none; } }
@media (max-width: 860px) { .main-nav { display: none; } }
@media (max-width: 1000px) { .header-search { display: none; } }

/* ---- Barra de progreso de lectura ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 25; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-2); }

/* ---- Cabeceras de página ---- */
.hero { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.hero-small { padding: 52px 0 36px; background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--accent-2); margin: 0 0 14px; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0 0 18px; }
.meta { font-size: .88rem; color: var(--muted); margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---- Artículo: cabecera con portada ---- */
.post-hero { padding: 44px 0 48px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.post-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-hero .lede { font-size: 1.15rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: var(--radius-s); text-decoration: none; margin-bottom: 16px; }
.pill:hover { color: var(--warm); filter: brightness(.97); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; color: var(--muted); margin: 0; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* La portada bajó al cuerpo (2026-11-27): su sitio en la cabecera es ahora
   del anuncio. */
.post-cover { margin: 0 0 32px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgb(11 34 64 / .18); }
@media (max-width: 980px) {
  .post-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---- Anuncios (Ad Manager) ---- */
.ad { text-align: center; margin: 32px 0; }
.ad > div { display: inline-block; max-width: 100%; }
.ad iframe { max-width: 100%; }
.post-hero .ad { margin: 0; }
.rail .ad { margin: 0 0 28px; }

/* ---- Artículo: columna de lectura + carril derecho ---- */
.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)); justify-content: center; padding: 48px 0 72px; }
.rail { display: none; }
@media (min-width: 1180px) {
  /* Carril de 336 px (Xavi, 2026-11-27; antes 250, se ensanchó para los
     anuncios, que ya no están). El texto ocupa el resto. */
  .post-layout { grid-template-columns: minmax(0, 1fr) 336px; gap: 48px; justify-content: stretch; }
  .rail { display: block; }
  .rail-inner { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; overflow-x: hidden; padding-bottom: 12px; }
  .post-layout .toc-inline { display: none; }
}
.toc-title { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.45; transition: color .15s, border-color .15s; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.rail-card { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); font-size: .9rem; }
.rail-card p { margin: 0 0 10px; color: var(--ink-2); }
.rail-card .rail-title { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.rail-card a { font-weight: 600; text-decoration: none; }
.to-top { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--muted); text-decoration: none; }

/* ---- Cuerpo del artículo ---- */
.content { min-width: 0; font-size: 1.075rem; }
.content > p:first-of-type { font-size: 1.12rem; }
.content h2 { margin-top: 56px; padding-top: 8px; }
.content > h2:first-child { margin-top: 0; }
.content h3 { margin-top: 32px; }
.content h4 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
.content h2[id], .content h3[id] { scroll-margin-top: 88px; }
.content ul, .content ol:not(.steps) { padding-left: 24px; margin: 0 0 18px; }
.content li { margin: 7px 0; }
.content li::marker { color: var(--accent); }
.content strong { color: var(--ink); font-weight: 650; }
.content a:not(.btn) { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.content a:not(.btn):hover { text-decoration-color: currentColor; }
.content section + section { margin-top: 56px; }
.section-lede { font-size: 1.1rem; color: var(--muted); }
.note { font-size: .93rem; color: var(--muted); }

.callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.callout p:last-child { margin: 0; }
.callout.warn { background: var(--warm-soft); border-color: color-mix(in srgb, var(--warm) 28%, transparent); }

.key-points { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.key-points::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.kp-title { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 10px; }
.key-points ul { margin: 0; padding-left: 20px; }
.key-points li { margin: 7px 0; }

blockquote { margin: 36px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--gold); font: 600 1.28rem/1.5 var(--serif); color: var(--ink); }
blockquote p { margin: 0 0 8px; }
blockquote footer, blockquote cite { display: block; font: 400 .88rem var(--sans); color: var(--muted); font-style: normal; }
blockquote.law { font: 400 1.04rem/1.65 var(--serif); font-style: italic; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 24px; }

figure { margin: 32px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.diagram img { border: 1px solid var(--line); background: var(--surface); }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Tarjetas, pasos, tablas, columnas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card p { font-size: .96rem; color: var(--muted); }
.card-num { font: 700 .85rem var(--serif); color: var(--accent-2); margin-bottom: 6px; }
.card .form { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .85rem; font-weight: 600; color: var(--accent); }

.steps { counter-reset: paso; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: paso; position: relative; padding: 0 0 26px 60px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps p { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 24px 0; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
tr:last-child td { border-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.two-col ul { list-style: none; padding: 0; margin: 0; }
.two-col li { position: relative; padding: 6px 0 6px 28px; font-size: .96rem; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.dash li::before { content: "!"; position: absolute; left: 4px; color: var(--warm); font-weight: 700; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* Preguntas frecuentes (cualquier <details> del cuerpo) */
.content details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); padding: 0; margin: 10px 0; }
.content summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; }
.content summary::-webkit-details-marker { display: none; }
.content summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; line-height: 1; }
.content details[open] summary::after { content: "−"; }
.content details > :not(summary) { padding: 0 18px; }
.content details > :last-child { padding-bottom: 16px; margin-bottom: 0; }
.content details p { color: var(--muted); }

.sources { font-size: .92rem; }
.sources li { color: var(--muted); }

/* Índice dentro del artículo (cerrado por defecto) */
.toc-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 32px; box-shadow: var(--shadow); }
.toc-inline details { border: 0; margin: 0; background: none; }
.toc-inline summary { cursor: pointer; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline ol { margin: 0; padding: 0 22px 18px 44px; }
.toc-inline li { margin: 5px 0; }
.toc-inline li a { color: var(--ink); text-decoration: none; }
.toc-inline li a:hover { color: var(--accent); text-decoration: underline; }
.toc-inline ol ol { margin: 4px 0 6px; padding: 0 0 0 20px; list-style: lower-alpha; font-size: .93rem; }
.toc-inline ol ol a { color: var(--muted); }

/* Guías relacionadas, aviso, anterior/siguiente */
.related-inline { margin: 48px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2); }
.related-inline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.related-inline li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 12px; margin: 0 -12px; border-radius: 8px; }
.related-inline li:hover { background: var(--surface); }
.related-inline li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.related-inline li a::after { content: ""; position: absolute; inset: 0; }
.related-inline li:hover a { color: var(--accent); }
.related-inline li span { flex: none; font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .related-inline li { flex-direction: column; gap: 2px; } }

.disclaimer { display: flex; gap: 14px; margin-top: 32px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: .88rem; line-height: 1.6; color: var(--muted); }
.disclaimer::before { content: "i"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--muted); font: 700 .8rem var(--serif); font-style: italic; }
.disclaimer p { margin: 0; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.prev-next a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.4; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.prev-next a:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.prev-next span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.prev-next .next { text-align: right; grid-column: 2; }
@media (max-width: 700px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { grid-column: 1; } }

.related { border-top: 1px solid var(--line); padding: 56px 0 80px; background: var(--surface-2); }
.related h2 { margin: 0 0 24px; }

/* ---- Tarjetas de listados ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.post-thumb { display: block; aspect-ratio: 1200 / 630; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.post-card:not(:has(.post-thumb)) { padding: 0; }
.post-card > .post-cat, .post-card > h3, .post-card > p { margin-inline: 22px; }
.post-card > .post-cat { margin-top: 20px; }
.post-card h3 { font: 650 1.08rem/1.4 var(--serif); letter-spacing: -.01em; margin: 8px 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.post-meta { margin: auto 0 0; padding-top: 6px; font-size: .8rem; color: var(--muted); }
.post-cat { position: relative; z-index: 1; align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); text-decoration: none; }

/* ---- Portada ---- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 13px 24px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; border: 1px solid var(--accent); transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.section-title { margin: 64px 0 22px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .18s, transform .18s, box-shadow .18s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.cat-card strong { font: 650 1.04rem var(--serif); letter-spacing: -.01em; }
.cat-card span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.cat-card .cat-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; }
.cat-card em { font-style: normal; font-size: .84rem; color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 8px; }

.home-cats { padding-bottom: 80px; }
.home-cat { margin-top: 64px; }
.home-cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-cat-head h2 { margin: 0; }
.home-cat-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.listing { padding: 44px 0 80px; }

.topics-page { padding: 40px 0 80px; columns: 2 380px; column-gap: 48px; }
.topic-block { break-inside: avoid; margin-bottom: 28px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-block h2 { font-size: 1.4rem; }
.topic-block h2 a { color: var(--ink); text-decoration: none; }
.topic-block h2 a:hover { color: var(--accent); }
.topic-block p { color: var(--muted); font-size: .95rem; }
.topic-block ul { padding-left: 18px; margin: 0; }
.topic-block li { margin: 5px 0; font-size: .95rem; }
.topic-block li::marker { color: var(--accent); }

.prose { max-width: var(--read); padding: 40px 0 80px; }
.prose h2 { margin-top: 44px; }
.prose .post-grid { margin-top: 20px; }

/* ---- Páginas que no son artículos: cabecera común ---- */
.page-hero { padding: 52px 0 44px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-col { max-width: var(--read); }
.page-title { display: flex; align-items: center; gap: 18px; }
.page-title h1 { margin: 0; }
.page-title .kicker { margin-bottom: 8px; }
.page-hero .lede { margin: 18px 0 0; }
.page-hero .meta { margin-top: 14px; }
.page-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--radius); background: var(--accent); color: var(--bg); font-size: 1.7rem; box-shadow: var(--shadow-hover); }
.page-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prose.page-col { padding: 40px 0 72px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.prose .hero-cta { margin: 24px 0 8px; }
.prose .search-page { margin: 4px 0 0; }
@media (max-width: 560px) {
  .page-hero { padding: 32px 0 30px; }
  .page-title { gap: 14px; }
  .page-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 1.3rem; }
  .page-icon svg { width: 26px; height: 26px; }
}

/* Todos los temas */
.topic-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.topic-head h2 { margin: 0; }
.topic-head .cat-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; }
.topic-count { margin: 2px 0 0; font-size: .8rem; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Tarjetas de calculadoras ---- */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 8px 0 32px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); color: var(--ink); }
.tool-card strong { font: 650 1.06rem/1.3 var(--serif); letter-spacing: -.01em; }
.tool-card > span:not(.tool-icon) { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.tool-card em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: .88rem; color: var(--accent); }
.tool-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more-tools { padding: 48px 0 72px; border-top: 1px solid var(--line); background: var(--surface-2); }
.more-tools h2 { margin: 0 0 20px; }
.more-tools .tool-cards { margin: 0; }
/* 4 calculadoras en el índice (2×2) y 3 «más calculadoras» en cada una */
.prose .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-tools .tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .prose .tool-cards, .more-tools .tool-cards { grid-template-columns: minmax(0, 1fr); } }
.tool-page { padding-bottom: 56px; }

/* ---- Búsqueda ---- */
.search-page input { width: 100%; padding: 16px 20px 16px 50px; font: inherit; font-size: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235f6573' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 18px 50%; }
.search-page input:focus { border-color: var(--accent); outline: none; }

/* ---- Calculadoras ---- */
.tool { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 28px; margin: 0 0 44px; box-shadow: var(--shadow-hover); }
.tool::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent-2); }
.tool-form { display: grid; gap: 20px; }
.tool-form label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.tool-form label.inline { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.tool-form input[type=date], .tool-form input[type=number], .tool-form input[type=text] { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink); max-width: 360px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.tool-form input[type=date]:hover, .tool-form input[type=number]:hover, .tool-form input[type=text]:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tool-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.tool-form input[type=radio], .tool-form input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.tool-form fieldset { border: 0; border-radius: var(--radius-s); padding: 16px 18px; margin: 0; display: grid; gap: 10px; background: var(--surface-2); }
.tool-form legend { float: left; width: 100%; font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 4px; }
.tool-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; padding: 14px 30px; font-size: 1rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.tool-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: center; }
.tool-grid input { max-width: none !important; }
.tool-grid-head { margin: 0; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tool-result { margin-top: 26px; padding: 6px 22px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); background: var(--accent-soft); border-radius: var(--radius); animation: aparecer .3s ease-out; }
.tool-result > p { margin: 0; padding: 13px 0; font-size: 1.02rem; }
.tool-result > p + p, .tool-result > .table-wrap + p { border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.tool-result .table-wrap { margin: 16px 0 10px; }
.tool-result .ok, .tool-result .warn { font-weight: 600; }
.tool-result p.ok::before, .tool-result p.warn::before { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: .8rem; vertical-align: 1px; color: #fff; }
.tool-result .ok { color: var(--accent); }
.tool-result p.ok::before { content: "✓"; background: var(--accent); }
.tool-result .warn { color: var(--warm); }
.tool-result p.warn::before { content: "!"; background: var(--warm); }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tool-result { animation: none; } }
@media (max-width: 560px) {
  .tool { padding: 24px 18px 22px; border-radius: 16px; }
  .tool-form .btn { justify-self: stretch; justify-content: center; }
}

/* ---- Pie ---- */
.site-footer { background: var(--footer); color: var(--footer-ink); padding: 56px 0 28px; font-size: .9rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #9fc0ea; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid .cols-2 { columns: 2; column-gap: 24px; }
.footer-grid .cols-2 li { break-inside: avoid; margin: 0 0 7px; }
.footer-grid a { color: var(--footer-ink); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin: 0 0 12px; max-width: 36ch; }
.footer-title { font-weight: 700; color: #fff; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }
.site-footer .legal { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 22px; font-size: .84rem; }
.site-footer .legal p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.topics summary { white-space: nowrap; }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { gap: 12px; height: 60px; }
  .brand { font-size: 1.04rem; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .topics summary { padding: 6px 12px; font-size: .88rem; }
  .hero { padding: 48px 0 40px; }
  .post-hero { padding: 28px 0 36px; }
  .post-layout { padding-top: 32px; }
  .steps li { padding-left: 52px; }
  .tool-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .content { font-size: 1.04rem; }
}

/* ==== v17: piezas corporativas ==== */

/* Barra institucional sobre la cabecera */
.topbar { background: var(--navy); color: #c5d2e4; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.topbar nav { display: flex; gap: 22px; }
.topbar a { color: #c5d2e4; text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar nav { display: none; } .topbar { font-size: .76rem; } }

/* Iconos de línea de las categorías */
.cat-icon svg, .page-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-icon svg { width: 22px; height: 22px; }
.page-icon svg { width: 30px; height: 30px; }

/* Portada */
.home-hero { position: relative; overflow: hidden; padding: 88px 0 84px; color: #fff;
  background:
    linear-gradient(115deg, rgb(8 26 49 / .97) 0%, rgb(11 58 110 / .93) 100%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 96px),
    var(--navy); }
.home-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 0 0 80px rgb(255 255 255 / .02); }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.home-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
.home-hero .lede { color: #c9d5e6; font-size: 1.18rem; }
.home-hero .kicker { color: var(--gold); }
.home-hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.home-hero .btn:hover { background: #e9f0f9; border-color: #e9f0f9; color: var(--navy); }
.home-hero .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.home-hero .btn-ghost:hover { background: rgb(255 255 255 / .08); color: #fff; border-color: #fff; }
.hero-panel { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 28px 28px 24px; backdrop-filter: blur(4px); }
.panel-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 14px; }
.panel-list { list-style: none; margin: 0 0 18px; padding: 0; }
.panel-list li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / .1); }
.panel-list li:first-child { border-top: 0; padding-top: 4px; }
.panel-list svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 6px; background: rgb(255 255 255 / .1); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-list strong { color: #fff; font-weight: 650; }
.panel-list span { color: #b8c6da; font-size: .9rem; line-height: 1.5; }
.hero-panel > a { color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; }
.hero-panel > a:hover { text-decoration: underline; }
@media (max-width: 980px) { .home-hero-grid { grid-template-columns: 1fr; gap: 40px; } .home-hero { padding: 56px 0 52px; } }

/* Franja de cifras */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid div { padding: 28px 24px; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; font-size: 2rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); }
.stats-grid span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stats-grid div { padding: 20px 16px; } .stats-grid div:nth-child(3) { border-left: 0; padding-left: 0; } .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Fuentes oficiales */
.sources-strip { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sources-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 18px 0; }
.sources-strip p { margin: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sources-strip ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.sources-strip li { font-weight: 600; font-size: .92rem; color: var(--ink-2); }

/* Secciones de la portada */
.section { padding: 76px 0; }
.band-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p:not(.kicker) { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.section-head .kicker { margin-bottom: 8px; }
.section-head > a { flex: none; font-weight: 600; text-decoration: none; }
.section-head > a:hover { text-decoration: underline; }
@media (max-width: 700px) { .section { padding: 52px 0; } .section-head { flex-direction: column; align-items: start; } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pillars > div { padding: 30px 28px; border-left: 1px solid var(--line); }
.pillars > div:first-child { border-left: 0; }
.pillars h3 { margin: 14px 0 8px; }
.pillars p { color: var(--muted); font-size: .95rem; margin: 0; }
.pillars svg { width: 44px; height: 44px; padding: 10px; border-radius: 8px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillars > div { border-left: 0; border-top: 1px solid var(--line); } .pillars > div:first-child { border-top: 0; } }
.home-tools .tool-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 1000px) { .home-tools .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-tools .tool-cards { grid-template-columns: 1fr; } }
.cta-band { background: var(--navy); color: #c9d5e6; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 56px 0; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-band .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn:hover { background: #e9f0f9; color: var(--navy); }

/* Fecha en las tarjetas */
.post-meta time { white-space: nowrap; }

/* Pie corporativo */
.footer-note { font-size: .84rem; color: #8fa0b8; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .legal a { color: var(--footer-ink); text-decoration: none; }
.site-footer .legal a:hover { color: #fff; }
.site-footer .legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Estándares editoriales y About: tarjetas de principios */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.principles > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.principles h3 { margin: 0 0 6px; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.byline a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

/* ==== v18: versión móvil ====
   Auditoría a 375 px: enlaces del pie, migas e índice de 16-18 px de alto (el
   dedo pide unos 44), la portada medía casi 16.000 px por las 15 tarjetas de
   tema, y la línea de fechas del artículo se partía en columnas. */

/* Fechas del artículo: con inline-flex cada nodo de texto era una columna. */
.byline span { display: inline-block; position: relative; padding-left: 21px; }
.byline span svg { position: absolute; left: 0; top: .22em; }

/* Menú: panel a todo el ancho bajo la cabecera, con buscador y accesos
   principales antes de la lista de temas. */
@media (max-width: 860px) {
  .topics { position: static; }
  .topics summary { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; }
  .topics summary::after { content: none; }
  .topics summary::before { content: ""; width: 16px; height: 12px; flex: none;
    background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
  .topics[open] summary { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
  .topics ul { left: 0; right: 0; top: 100%; width: auto; max-height: calc(100dvh - 64px); border-radius: 0; border-width: 1px 0;
    padding: 12px max(16px, calc((100% - 1180px) / 2)) 24px; box-shadow: 0 18px 30px rgb(8 26 49 / .18); overscroll-behavior: contain; }
  .topics li a { padding: 11px 10px; font-size: 1rem; }
  .menu-search { padding: 2px 0 8px; }
  .menu-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); font: inherit; font-size: 16px;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6573' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 14px 50%; }
  .menu-search input:focus { border-color: var(--accent); outline: none; }
  .menu-main a { font-weight: 600; }
  .menu-label { margin-top: 10px; padding: 14px 10px 4px; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}
@media (min-width: 600px) and (max-width: 860px) {
  .topics ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .menu-search, .menu-label { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  /* Portada más corta */
  .home-hero { padding: 40px 0 44px; }
  .section { padding: 44px 0; }

  /* Temas: una fila por tema (icono, nombre, número de guías); la descripción
     ya está en la página de cada tema. */
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 14px; padding: 12px 16px; }
  .cat-card .cat-icon { width: 40px; height: 40px; margin: 0; }
  .cat-card > span:not(.cat-icon) { display: none; }
  .cat-card strong { font-size: 1rem; line-height: 1.3; }
  .cat-card em { margin: 0; padding: 0; white-space: nowrap; font-size: .8rem; }

  /* Listados: la primera guía con imagen; el resto, solo tema, título y fecha. */
  .post-grid { gap: 12px; }
  .post-card:not(:first-child) .post-thumb { display: none; }
  .post-card:not(:first-child) .post-body > p:not(.post-meta) { display: none; }
  .post-body { padding: 16px 18px 14px; }
  .post-card h3 { font-size: 1.02rem; margin: 6px 0; }
  .post-cat { padding: 8px 0; margin: -8px 0; font-size: .74rem; }

  /* Objetivos táctiles */
  .crumbs { margin: -8px 0 10px; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .toc li a { padding-top: 10px; padding-bottom: 10px; }
  .toc-inline li { margin: 0; }
  .toc-inline li a { display: block; padding: 8px 0; }
  .toc-inline summary { min-height: 56px; }
  .tool-form input[type=radio], .tool-form input[type=checkbox] { width: 22px; height: 22px; }
  .tool-form label.inline { min-height: 44px; }
  .footer-grid { gap: 28px; }
  .footer-grid li, .footer-grid .cols-2 li { margin: 0; }
  .footer-grid a { display: block; padding: 10px 0; }
  .site-footer .legal nav { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .site-footer .legal nav a { padding: 10px 0; }
  .section-head > a, .hero-panel > a, .home-tools a[href="/tools/"] { display: inline-block; padding: 10px 0; }
  .topic-head h2 a { display: inline-block; padding: 8px 0; }
  .brand { padding: 9px 0; }
}

