/* dehistoriae — revista moderna. Fuentes alojadas en /assets/fonts (ver fonts.css). */
:root {
  --bg: #fbf8f3;
  --bg-alt: #f2ebe0;
  --ink: #1f1714;
  --ink-soft: #5a4b44;
  --muted: #8b7d74;
  --accent: #c2481f;
  --accent-dark: #9a3714;
  --accent-soft: #f8e4da;
  --gold: #e8ae4a;
  --line: #e8dfd2;
  --card: #ffffff;
  --glass: rgba(251, 248, 243, 0.82);
  --prose-ink: #2a201c;
  --shadow: 0 1px 2px rgba(31, 23, 20, 0.05), 0 18px 40px -20px rgba(31, 23, 20, 0.28);
  --t0: #c2481f; --t1: #54301c; --t2: #9a7420; --t3: #526340; --t4: #3d5468; --t5: #80323f;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --accent-font: "Fraunces", Georgia, "Times New Roman", serif;
  --r: 20px;
  --r-lg: 32px;
  --wrap: 1200px;
  --prose: 700px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100e;
    --bg-alt: #1d1715;
    --ink: #f4ede4;
    --ink-soft: #cbbeb1;
    --muted: #9a8c80;
    --accent: #f08350;
    --accent-dark: #f7a27d;
    --accent-soft: rgba(240, 131, 80, 0.14);
    --line: #2e2623;
    --card: #1b1513;
    --glass: rgba(20, 16, 14, 0.8);
    --prose-ink: #e7ddd0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ui); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.028em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 300; font: 600 14px var(--ui); border-radius: 8px; }
.skip:focus { left: 8px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); z-index: 250; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Cabecera ---------- */
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font: 700 25px/1 var(--ui); letter-spacing: -0.04em; color: var(--ink); }
.utility { display: flex; align-items: center; gap: 4px; }
.utility a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font: 500 14px/1 var(--ui); color: var(--ink-soft); transition: background .15s, color .15s; }
.utility a:hover, .utility a[aria-current] { background: var(--bg-alt); color: var(--ink); }
.utility .icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; margin-left: 6px; background: var(--ink); color: var(--bg); }
.utility .icon-btn:hover { background: var(--accent); color: #fff; }

.mainnav { position: sticky; top: 0; z-index: 200; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.mainnav-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.mainnav-inner::before, .mainnav-inner::after { content: ""; margin: auto; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font: 500 14px/1.2 var(--ui); color: var(--ink-soft); transition: background .15s, color .15s; }
.mainnav a:hover { background: var(--bg-alt); color: var(--ink); }
.mainnav a[aria-current] { background: var(--ink); color: var(--bg); }
.nav-extra { display: none; }

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14.5px/1 var(--ui); text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: #1f1714; }
.btn-light:hover { background: #f2ebe0; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

.eyebrow { display: inline-block; margin-bottom: 14px; font: 600 13px/1 var(--ui); color: var(--accent); letter-spacing: 0.01em; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.kicker { display: inline-block; position: relative; z-index: 2; background: var(--accent-soft); color: var(--accent-dark); padding: 6px 11px; border-radius: 999px; font: 600 12px/1 var(--ui); text-decoration: none; transition: background .15s, color .15s; }
.kicker:hover { background: var(--accent); color: #fff; }
.badge { background: var(--accent); color: #fff; font: 700 11.5px/1 var(--ui); padding: 7px 11px; border-radius: 999px; }
.meta, .meta-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 400 13px/1.4 var(--ui); color: var(--muted); }
.meta-inline { display: inline-flex; margin-left: 4px; }
.meta-inline::before { content: "·"; margin-right: 6px; }

.section { padding-top: 88px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.more { font: 600 14px var(--ui); text-decoration: none; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: background .15s, box-shadow .15s; }
.more:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* ---------- Portada ---------- */
.cover { position: relative; display: flex; align-items: flex-end; width: calc(100% - 32px); max-width: 1480px; margin: 12px auto 0; min-height: clamp(520px, 78vh, 720px); border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; z-index: -2; }
.cover-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 8, 0.1) 0%, rgba(20, 12, 8, 0.28) 38%, rgba(20, 12, 8, 0.82) 100%); }
.cover-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 64px 24px clamp(32px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cover-copy { max-width: 780px; }
.cover .eyebrow { color: #fff; opacity: 0.9; margin-bottom: 22px; }
.cover h1 { font-size: clamp(46px, 8vw, 108px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 700; }
.cover h1 em { font: italic 400 1em/1 var(--accent-font); letter-spacing: -0.03em; color: var(--gold); }
.cover p { max-width: 560px; margin: 26px 0 30px; font: 400 clamp(17px, 1.5vw, 19.5px)/1.6 var(--ui); color: rgba(255, 255, 255, 0.88); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 34px; padding: 20px 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats strong { font: 700 34px/1 var(--ui); letter-spacing: -0.04em; }
.stats span { font: 500 12.5px/1.2 var(--ui); color: rgba(255, 255, 255, 0.78); }

/* ---------- Destacado y últimas ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 28px; padding-top: 72px; }
.lead { position: relative; display: flex; align-items: flex-end; min-height: 600px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--bg-alt); }
.lead-media { position: absolute; inset: 0; z-index: -2; display: block; }
.lead-media img, .lead-media .card-media, .lead-media, .row-media { text-decoration: none; }
.tile { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.lead:hover .lead-media img { transform: scale(1.04); }
.lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 28%, rgba(20, 12, 8, 0.88) 100%); }
.lead-body { padding: clamp(24px, 3.4vw, 44px); width: 100%; }
.kicker-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.lead .kicker { background: rgba(255, 255, 255, 0.2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lead .kicker:hover { background: #fff; color: #1f1714; }
.lead-title { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 14px; }
.lead-title a { text-decoration: none; }
.lead-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lead-excerpt { font: 400 17px/1.55 var(--ui); color: rgba(255, 255, 255, 0.86); margin-bottom: 14px; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead .meta { color: rgba(255, 255, 255, 0.72); }

.rail { background: var(--bg-alt); border-radius: var(--r-lg); padding: 30px 28px 14px; align-self: stretch; }
.rail-title { font: 700 22px var(--ui); letter-spacing: -0.03em; margin-bottom: 8px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.row-card { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.rail ul li:first-child { border-top: 0; }
.row-media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg); border-radius: 16px; }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.row-card:hover .row-media img { transform: scale(1.06); }
.row-card .kicker { margin-bottom: 8px; padding: 5px 9px; font-size: 11px; }
.row-card h3 { font-size: 17px; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 6px; }
.row-card h3 a { text-decoration: none; }
.row-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card .kicker { align-self: flex-start; margin-bottom: 14px; }
.card-title { font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 10px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-excerpt { font: 400 15px/1.6 var(--ui); color: var(--ink-soft); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.card-media, .lead-media, .row-media { text-decoration: none; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; text-align: center; color: #fff; background-color: var(--c, var(--t1));
  background-image: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.24), transparent 55%), radial-gradient(circle at 95% 100%, rgba(0, 0, 0, 0.3), transparent 62%); }
.tile span { font: italic 400 clamp(24px, 2.6vw, 34px)/1.1 var(--accent-font); letter-spacing: -0.01em; }
.row-media .tile { padding: 6px; }
.row-media .tile span { font-size: 13px; }
.tile-0 { --c: var(--t0); } .tile-1 { --c: var(--t1); } .tile-2 { --c: var(--t2); }
.tile-3 { --c: var(--t3); } .tile-4 { --c: var(--t4); } .tile-5 { --c: var(--t5); }

/* ---------- Serie ---------- */
.series { width: calc(100% - 32px); max-width: 1480px; margin: 96px auto 0; border-radius: var(--r-lg); color: #f6eee5; background: radial-gradient(120% 140% at 0% 0%, #6a3720 0%, #3b2418 55%, #2a1810 100%); }
.series-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.series .eyebrow { color: var(--gold); }
.series h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 20px; color: #fff; }
.series p { font: 400 17.5px/1.65 var(--ui); color: #dccfc1; margin-bottom: 30px; max-width: 460px; }
.series-list { list-style: none; margin: 0; padding: 0; }
.series-list li + li { margin-top: 10px; }
.series-list a { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); text-decoration: none; transition: background .2s, transform .2s; }
.series-list a:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(6px); }
.series-list .num { font: italic 400 30px/1 var(--accent-font); color: var(--gold); }
.series-list .st { font: 600 17.5px/1.3 var(--ui); letter-spacing: -0.015em; }

/* ---------- Secciones ---------- */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.topic { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 28px; border-radius: var(--r); text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; background-color: var(--c);
  background-image: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.22), transparent 55%), radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.28), transparent 60%); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.topic:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.topic::after { content: "→"; position: absolute; top: 22px; right: 26px; font: 400 26px/1 var(--ui); opacity: 0.85; transition: transform .25s; }
.topic:hover::after { transform: translateX(5px); }
.topic.t0 { --c: var(--t0); } .topic.t1 { --c: var(--t1); } .topic.t2 { --c: var(--t2); }
.topic.t3 { --c: var(--t3); } .topic.t4 { --c: var(--t4); } .topic.t5 { --c: var(--t5); }
.topic-count { position: absolute; top: 24px; left: 28px; font: 600 12px var(--ui); padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.topic h3 { font-size: 27px; letter-spacing: -0.035em; margin-bottom: 8px; }
.topic p { margin: 0; font: 400 14.5px/1.5 var(--ui); color: rgba(255, 255, 255, 0.85); }

/* ---------- Sobre el proyecto ---------- */
.about { margin-top: 96px; }
.about-inner { width: calc(100% - 32px); max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(22px, 3.4vw, 40px); background: var(--bg-alt); border-radius: var(--r-lg); }
.about figure { margin: 0; }
.about img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--r); }
.about figcaption { margin-top: 10px; font: 400 13px var(--ui); color: var(--muted); }
.about h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 18px; }
.about p { font: 400 17px/1.7 var(--ui); color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- Artículo ---------- */
.article { padding-top: 56px; }
.article-head { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.kickers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.article-head h1 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 700; margin-bottom: 24px; text-wrap: balance; }
.byline { font: 400 14.5px/1.5 var(--ui); color: var(--ink-soft); }
.byline strong { color: var(--ink); font-weight: 600; }
.article-hero { max-width: 1080px; margin: 40px auto 0; padding: 0 24px; text-align: center; }
.article-hero img { width: auto; max-width: 100%; max-height: 620px; margin: 0 auto; border-radius: var(--r-lg); }
.article-hero figcaption, .prose figcaption { margin-top: 12px; font: 400 13.5px/1.45 var(--ui); color: var(--muted); }

.prose { max-width: var(--prose); margin: 52px auto 0; padding: 0 24px; font: 400 19.5px/1.74 var(--text); color: var(--prose-ink); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 32px; margin: 2em 0 0.55em; line-height: 1.1; }
.prose h3 { font-size: 24px; margin: 1.8em 0 0.5em; }
.prose h4, .prose h5 { font-size: 19px; margin: 1.6em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { color: var(--accent); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 2em 0; padding: 6px 0 6px 1.4em; border-left: 4px solid var(--accent); font-style: italic; color: var(--ink-soft); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 2.2em auto; text-align: center; }
.prose figure img, .prose p > img { margin: 0 auto; border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.8em 0 1.6em; }
.prose hr ~ p { font: 400 15.5px/1.6 var(--ui); color: var(--ink-soft); margin-bottom: 0.8em; }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px var(--ui); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; border-radius: 16px; overflow: hidden; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { max-width: 100%; }
.page .prose { margin-top: 40px; }

.article-foot { max-width: var(--prose); margin: 64px auto 0; padding: 0 24px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.share span { font: 600 13px var(--ui); margin-right: 8px; color: var(--muted); }
.share a, .share button { font: 500 13.5px/1 var(--ui); padding: 10px 16px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); text-decoration: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--bg); }
.authorbox { margin-top: 12px; padding: 26px 28px; background: var(--bg-alt); border-radius: var(--r); }
.authorbox strong { display: block; font: 700 19px var(--ui); letter-spacing: -0.02em; margin-bottom: 6px; }
.authorbox p { margin: 0; font: 400 15.5px/1.6 var(--ui); color: var(--ink-soft); }

.postnav { max-width: 980px; margin: 56px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.postnav a { display: block; padding: 24px 26px; border-radius: var(--r); background: var(--bg-alt); text-decoration: none; transition: background .2s, transform .2s; }
.postnav a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.postnav span { display: block; font: 600 13px var(--ui); color: var(--muted); margin-bottom: 8px; }
.postnav strong { font: 700 18px/1.25 var(--ui); letter-spacing: -0.02em; }
.postnav .next { text-align: right; grid-column: 2; }
.related { padding-top: 80px; }

/* ---------- Listados, archivo, búsqueda ---------- */
.page-head { padding-top: 72px; padding-bottom: 16px; }
.page-head h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.05em; margin-bottom: 18px; }
.page-head p { font: 400 19px/1.6 var(--ui); color: var(--ink-soft); max-width: 640px; }
.page-head .count { display: inline-block; font: 600 13px var(--ui); padding: 7px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.archive { padding-bottom: 24px; }
.year { margin-top: 48px; }
.year h2 { font: italic 400 56px/1 var(--accent-font); letter-spacing: -0.02em; color: var(--accent); padding-bottom: 14px; margin-bottom: 4px; }
.year ul { list-style: none; margin: 0; padding: 0; }
.year li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.year time { font: 500 13.5px/1.9 var(--ui); color: var(--muted); }
.year li a { font: 600 21px/1.25 var(--ui); letter-spacing: -0.025em; text-decoration: none; }
.year li a:hover { color: var(--accent); }
.year li span { display: block; margin-top: 4px; font: 400 13px var(--ui); color: var(--muted); }
.search-page { padding-bottom: 24px; }
#search-form { display: flex; gap: 10px; margin: 12px 0 20px; }
#q { flex: 1; font: 400 18px var(--ui); padding: 16px 22px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
#q:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
#search-status { font: 400 14px var(--ui); color: var(--muted); min-height: 22px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 22px 0; border-top: 1px solid var(--line); }
.results a { font: 700 23px/1.2 var(--ui); letter-spacing: -0.03em; text-decoration: none; }
.results a:hover { color: var(--accent); }
.results .rm { margin: 6px 0 8px; font: 400 13px var(--ui); color: var(--muted); }
.results p { margin: 0; color: var(--ink-soft); font: 400 15.5px/1.6 var(--ui); }

/* ---------- Pie ---------- */
.site-footer { margin-top: 110px; background: #1d1411; color: #cfc3b6; padding: 64px 0 0; font: 400 15px/1.6 var(--ui); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; font: 700 32px/1 var(--ui); letter-spacing: -0.045em; color: #fbf7f1; text-decoration: none; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; margin: 0; color: #a99c90; font-size: 14.5px; }
.site-footer h4 { font: 600 13px var(--ui); letter-spacing: 0; color: #f08350; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e9dfd3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; padding-bottom: 30px; font-size: 13px; color: #8d8075; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Adaptación ---------- */
@media (max-width: 1020px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead { min-height: 520px; }
  .grid, .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-inner, .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cover-inner { align-items: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .topbar-inner { height: 64px; }
  .brand span { font-size: 22px; }
  .utility a:not(.icon-btn) { display: none; }
  .nav-extra { display: inline-block; }
  .mainnav-inner::before, .mainnav-inner::after { margin: 0; }
  .grid, .topics { grid-template-columns: 1fr; }
  .topic { min-height: 190px; }
  .section { padding-top: 64px; }
  .cover, .series { width: calc(100% - 20px); border-radius: 26px; }
  .stats { width: 100%; justify-content: space-between; gap: 12px; padding: 16px 20px; }
  .stats strong { font-size: 28px; }
  .lead { min-height: 480px; border-radius: 26px; }
  .rail { border-radius: 26px; padding: 24px 20px 10px; }
  .prose { font-size: 18.5px; margin-top: 36px; }
  .prose h2 { font-size: 27px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { grid-column: auto; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .year li { grid-template-columns: 1fr; gap: 2px; }
  #search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lead:hover img, .card:hover img, .row-card:hover img { transform: none; }
}
@media print {
  .topbar, .mainnav, .site-footer, .share, .postnav, .related, .progress, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; padding: 0; font-size: 11pt; color: #000; }
  a { text-decoration: none; }
}
