/* Estilo inspirado en southeu.com: Open Sans, azul petróleo (#034c5e) y turquesa (#28bcb5) */

/* ---------- Tipografía ---------- */
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/OpenSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/OpenSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/OpenSans-Bold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f6f7;
  --border: #d9e2e4;
  --text: #3b4a50;
  --text-2: #5c5c5c;
  --muted: #7a868b;
  --heading: #034c5e;
  --accent: #034c5e;
  --accent-2: #02384a;
  --accent-fg: #ffffff;
  --turq: #28bcb5;
  --turq-strong: #1a8f8a;
  --accent-soft: #e4f5f4;
  --mark: #c9f0ed;
  --logo-1: #074d5e;
  --logo-2: #36b6b1;
  --info: #034c5e;   --info-bg: #eaf3f5;
  --note: #1a8f8a;   --note-bg: #e6f6f5;
  --warn: #b25e09;   --warn-bg: #fdf3e5;
  --shadow: 0 1px 2px rgba(3, 76, 94, .06), 0 2px 6px rgba(3, 76, 94, .06);
  --shadow-lg: 0 14px 34px rgba(3, 40, 50, .18);
  --radius: 6px;
  --topbar: 72px;
  --sidebar: 290px;
  --onpage: 230px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1a1f; --surface: #11242a; --surface-2: #173038; --border: #24414a;
    --text: #d8e4e7; --text-2: #b4c4c8; --muted: #8aa0a6;
    --heading: #e8f4f5; --accent: #5fd0c9; --accent-2: #86ddd7; --accent-fg: #062a33;
    --turq: #5fd0c9; --turq-strong: #5fd0c9; --accent-soft: #143a3f; --mark: #1d5a5a;
    --logo-1: #e8f4f5; --logo-2: #5fd0c9;
    --info: #7cc7da; --info-bg: #12303a; --note: #5fd0c9; --note-bg: #123335; --warn: #f0a854; --warn-bg: #2f2314;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1a1f; --surface: #11242a; --surface-2: #173038; --border: #24414a;
  --text: #d8e4e7; --text-2: #b4c4c8; --muted: #8aa0a6;
  --heading: #e8f4f5; --accent: #5fd0c9; --accent-2: #86ddd7; --accent-fg: #062a33;
  --turq: #5fd0c9; --turq-strong: #5fd0c9; --accent-soft: #143a3f; --mark: #1d5a5a;
  --logo-1: #e8f4f5; --logo-2: #5fd0c9;
  --info: #7cc7da; --info-bg: #12303a; --note: #5fd0c9; --note-bg: #123335; --warn: #f0a854; --warn-bg: #2f2314;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  font: 12px/1 ui-monospace, Consolas, monospace; padding: 3px 6px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Logo de South (SVG en línea) */
.brand-logo svg, .footer-logo svg { display: block; width: auto; height: 100%; stroke: none; }
.brand-logo svg path, .footer-logo svg path { fill: var(--logo-1); }
.brand-logo svg .cls-1, .footer-logo svg .cls-1 { fill: var(--logo-2); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--heading); text-decoration: none; min-width: 0; }
.brand-logo { display: block; height: 44px; flex: none; }
.brand-sep { width: 1px; height: 34px; background: var(--border); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-text strong { font-size: 16px; font-weight: 700; color: var(--heading); }
.brand-text span { font-size: 13px; color: var(--turq-strong); font-weight: 600; }
.topbar-note {
  flex: none; padding-left: 16px; border-left: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap;
}
.topbar-version { font-weight: 600; color: var(--heading); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid transparent; border-radius: 4px; background: none; color: var(--heading); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
#themeBtn .ico-sun { display: none; }
:root[data-theme="dark"] #themeBtn .ico-sun { display: block; }
:root[data-theme="dark"] #themeBtn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeBtn .ico-sun { display: block; }
  :root:not([data-theme="light"]) #themeBtn .ico-moon { display: none; }
}

/* ---------- Búsqueda ---------- */
.search { position: relative; flex: 1; min-width: 0; max-width: 520px; margin-left: auto; }
.search input {
  width: 100%; height: 42px; padding: 0 40px 0 40px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--turq); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ico { position: absolute; left: 12px; top: 11px; color: var(--heading); }
.search-kbd { position: absolute; right: 10px; top: 11px; }
.search input:focus ~ .search-kbd { display: none; }
.search-results {
  position: absolute; top: 48px; left: 0; right: 0; max-height: min(70vh, 560px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--turq);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
}
.sr-item { display: block; padding: 9px 12px; border-radius: 4px; text-decoration: none; color: var(--text); }
.sr-item:hover, .sr-item.sel { background: var(--accent-soft); }
.sr-path { display: block; font-size: 12px; color: var(--turq-strong); font-weight: 600; }
.sr-title { display: block; font-weight: 700; color: var(--heading); }
.sr-snip { display: block; font-size: 13px; color: var(--text-2); }
.sr-empty { padding: 14px; color: var(--muted); }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- Estructura ---------- */
.layout {
  display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--onpage);
  max-width: 1480px; margin: 0 auto;
}
main { min-width: 0; outline: none; }
.page { max-width: 880px; margin: 0 auto; padding: 36px 40px 64px; }

/* ---------- Índice lateral ---------- */
.sidebar {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 20px 12px 40px; border-right: 1px solid var(--border); background: var(--surface);
}
.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav-home a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; font-weight: 700; color: var(--heading); }
.nav-home svg { width: 18px; height: 18px; }
.nav-group { margin: 22px 10px 6px; font-size: 13px; font-weight: 700; color: var(--turq-strong); }
.nav-row { display: flex; align-items: center; border-radius: 4px; }
.nav-row > a { flex: 1; display: flex; gap: 10px; padding: 7px 4px 7px 10px; font-size: 14.5px; line-height: 1.35; min-width: 0; }
.nav-num {
  flex: none; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 3px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--heading);
}
.nav-row:hover, .nav-home a:hover { background: var(--surface-2); }
.nav-row:hover > a { color: var(--heading); }
.nav-toggle { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 4px; cursor: pointer; }
.nav-toggle:hover { color: var(--heading); background: var(--border); }
.nav-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.nav-ch.open .nav-toggle svg { transform: rotate(90deg); }
.nav-sub { display: none; margin: 2px 0 8px 22px !important; padding-left: 12px !important; border-left: 2px solid var(--border); }
.nav-ch.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 5px 10px; font-size: 13.5px; line-height: 1.35; border-radius: 4px; }
.nav-sub a:hover { color: var(--heading); background: var(--surface-2); }
.nav-ch.current > .nav-row > a { color: var(--heading); font-weight: 700; }
.nav-ch.current .nav-num { background: var(--accent); color: var(--accent-fg); }
.nav a.active { color: var(--heading); }
.nav-sub a.active { background: var(--accent-soft); font-weight: 600; box-shadow: inset 3px 0 0 var(--turq); }
.nav-home a.active { background: var(--accent-soft); }

/* ---------- En esta página ---------- */
.onpage {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 38px 16px 40px 8px; font-size: 13px;
}
.onpage-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--turq-strong); }
.onpage ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.onpage a { display: block; padding: 4px 10px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.onpage .lvl3 a { padding-left: 22px; font-size: 12.5px; }
.onpage a:hover { color: var(--heading); }
.onpage a.active { color: var(--heading); font-weight: 600; border-left-color: var(--turq); }

/* ---------- Contenido ---------- */
.kicker { margin: 0 0 4px; font-size: 18px; font-weight: 400; color: var(--turq-strong); }
.chapter-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.chapter-head h1 {
  display: flex; align-items: center; gap: 16px; margin: 0; font-size: 30px; line-height: 1.2;
  font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: .01em;
}
.h-num {
  flex: none; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 4px;
  background: var(--accent); color: var(--accent-fg); font-size: 22px;
}
.prose { font-size: 16px; }
.prose h2 { margin: 48px 0 14px; padding-bottom: 8px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--heading); }
.prose h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 8px; background: var(--turq); border-radius: 2px; }
.prose h3 { margin: 30px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--heading); }
.prose h2, .prose h3 { position: relative; border-radius: 4px; }
.anchor { margin-left: 8px; font-weight: 400; color: var(--turq); text-decoration: none; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose ul li::marker { color: var(--turq); }
.prose li { margin: 4px 0; }
.prose li > p { margin: 0; }
.prose strong { font-weight: 700; color: var(--heading); }

/* Pasos numerados */
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 44px; margin: 12px 0; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--turq); color: #fff;
}

/* Tablas */
.table-wrap { overflow-x: auto; margin: 4px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose table, .about table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th > p, td > p { margin: 0; }
thead th, thead td { background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 13.5px; }
thead th strong, thead td strong { color: inherit; }
tbody tr:nth-child(even) > td { background: var(--surface-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { background: var(--accent-soft); color: var(--heading); font-weight: 700; white-space: nowrap; }

/* Avisos */
.callout { margin: 6px 0 22px; padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout-title { font-size: 13px; font-weight: 700; margin-bottom: 4px !important; }
.callout-info { background: var(--info-bg); border-left-color: var(--info); }
.callout-info .callout-title { color: var(--info); }
.callout-note { background: var(--note-bg); border-left-color: var(--note); }
.callout-note .callout-title { color: var(--note); }
.callout-warning { background: var(--warn-bg); border-left-color: var(--warn); }
.callout-warning .callout-title { color: var(--warn); }

/* Figuras */
.fig { margin: 10px 0 28px; }
.fig .zoom {
  display: block; position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); cursor: zoom-in; transition: border-color .15s, box-shadow .15s;
}
.fig .zoom:hover { border-color: var(--turq); box-shadow: var(--shadow-lg); }
.fig img { display: block; width: 100%; height: auto; }
.fig .zoom::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 4px; opacity: 0; transition: opacity .15s;
  background: rgba(3, 76, 94, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fig .zoom:hover::after, .fig .zoom:focus-visible::after { opacity: 1; }
.fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Paginación */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager-link {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: var(--heading);
}
.pager-link strong { font-weight: 700; }
.pager-link:hover { border-color: var(--turq); box-shadow: var(--shadow); }
.pager-link span { font-size: 13px; color: var(--turq-strong); font-weight: 600; }
.pager-link.next { grid-column: 2; text-align: right; }
.pager-link.prev span::before { content: "← "; }
.pager-link.next span::after { content: " →"; }

/* ---------- Portada ---------- */
.home .hero {
  position: relative; overflow: hidden; margin: -36px -40px 0; padding: 56px 40px 48px;
  background: linear-gradient(120deg, #034c5e 0%, #046176 55%, #0b7f86 100%); color: #fff;
}
.home .hero::after {
  /* franjas del globo de South */
  content: ""; position: absolute; right: -40px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%);
  border-radius: 50%; opacity: .16;
  background: repeating-linear-gradient(180deg, #36b6b1 0 12px, transparent 12px 26px);
}
.home .hero .kicker { color: #8fe3dd; position: relative; }
.home h1 { position: relative; margin: 0 0 14px; font-size: 38px; line-height: 1.18; font-weight: 700; color: #fff; max-width: 620px; }
.lead { position: relative; margin: 0 0 26px; font-size: 17px; color: #d6eef0; max-width: 620px; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--heading); font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { border-color: var(--turq); }
.btn-primary { background: var(--turq); border-color: var(--turq); color: #fff; }
.btn-primary:hover { background: #1fa39d; border-color: #1fa39d; }
.hero .btn:not(.btn-primary) { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero kbd { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.home-block { margin-top: 44px; }
.home-block > h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: .01em; }
.home-block > h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 8px; background: var(--turq); border-radius: 2px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.quick-link {
  display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  border-left: 3px solid var(--turq); background: var(--surface); text-decoration: none; color: var(--heading); font-weight: 700;
}
.quick-link small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.quick-link:hover { background: var(--accent-soft); border-color: var(--turq); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-top-color: var(--turq); transform: translateY(-2px); }
.card-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--heading); font-weight: 700;
}
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--heading); }
.card ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--text-2); }
.card li { margin: 2px 0; }
.card li::marker { color: var(--turq); }
.card li.more { list-style: none; margin-left: -16px; color: var(--muted); }
.about .table-wrap { max-width: 720px; }
.about tbody th { width: 140px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Pie ---------- */
.site-footer {
  display: flex; align-items: center; gap: 18px; max-width: 880px; margin: 0 auto; padding: 22px 40px 40px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.site-footer p { margin: 0; }
.footer-logo { display: block; height: 34px; flex: none; }

/* ---------- Visor de imágenes ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(2, 30, 38, .92); padding: 56px 72px 24px;
}
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 4px; background: #fff; }
.lb-fig figcaption { margin-top: 12px; color: #d6eef0; font-size: 14px; text-align: center; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: var(--turq); }
.lb-close { top: 12px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .onpage { display: none; }
}
@media (max-width: 1100px) {
  .topbar-note { display: none; }
}
@media (max-width: 900px) {
  :root { --topbar: 60px; }
  .layout { display: block; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-logo { height: 36px; }
  .brand-sep, .brand-text { display: none; }
  .sidebar {
    position: fixed; top: var(--topbar); left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 50;
    transform: translateX(-102%); transition: transform .2s ease; visibility: hidden;
  }
  body.menu-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  body.menu-open { overflow: hidden; }
  .scrim { position: fixed; inset: var(--topbar) 0 0 0; z-index: 45; background: rgba(2, 30, 38, .45); }
  .page { padding: 22px 16px 48px; }
  .home .hero { margin: -22px -16px 0; padding: 36px 16px 32px; }
  .home .hero::after { width: 200px; height: 200px; right: -70px; }
  .chapter-head h1 { font-size: 24px; }
  .home h1 { font-size: 29px; }
  .search-kbd { display: none; }
  .site-footer { padding: 20px 16px 32px; flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 600px) {
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { grid-column: 1; }
  .lightbox { padding: 56px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-fig img { max-height: calc(100vh - 170px); }
  tbody th { white-space: normal; }
}

/* ---------- Impresión ---------- */
@media print {
  .topbar, .sidebar, .onpage, .pager, .anchor, .scrim, .site-footer { display: none !important; }
  .layout { display: block; }
  .page { max-width: none; padding: 0; }
  .home .hero { background: none; color: var(--heading); }
  .fig .zoom { box-shadow: none; }
  .fig, .table-wrap, .callout { break-inside: avoid; }
}
