/* Bayardo · editorial, premium, un acento. */

:root {
  /* Oscuro por defecto: todo el sitio es "canal". El modo claro queda como opción. */
  --paper: #0f0d0b;
  --paper-2: #17140f;
  --paper-3: #221d17;
  --ink: #f1ece3;
  --ink-2: #cfc6b8;
  --muted: #8f8679;
  --line: #2a251f;
  --line-2: #3a332b;
  --red: #d0423f;
  --red-2: #e05a56;
  --dark: #0a0908;
  --dark-2: #100e0c;
  --dark-3: #1b1713;
  --on-dark: #f3eee5;
  --on-dark-2: #c9c0b2;
  --serif: 'Cardo', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgb(21 18 15 / .06), 0 12px 40px -18px rgb(21 18 15 / .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 40px -18px rgb(0 0 0 / .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f8f5ef; --paper-2: #efe9df; --paper-3: #e6dfd2;
  --ink: #15120f; --ink-2: #3f3a34; --muted: #7a7268; --line: #e1d9cb; --line-2: #cfc5b4;
  --red: #8b0000; --red-2: #a3151a; --dark: #120f0d; --dark-2: #1b1714; --dark-3: #262019;
  --shadow: 0 1px 2px rgb(21 18 15 / .06), 0 12px 40px -18px rgb(21 18 15 / .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(var(--narrow), 100% - var(--gutter) * 2); }
.ico { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }

/* Type scale */
.h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.kicker {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); line-height: 1.3;
}
.kicker--light { color: #e2b8b0; }
.year { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.sep { color: var(--line-2); margin-inline: .5em; }
.more {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .4em;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; white-space: nowrap;
}
.more:hover { border-color: var(--red); }
.more .ico { transition: transform .3s var(--ease); }
.more:hover .ico { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: var(--radius);
  font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: .02em; line-height: 1;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); color: #fff; }
.btn--paper { background: var(--on-dark); color: #15120f; }
.btn--paper:hover { background: #fff; color: #15120f; }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: var(--on-dark); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--small { padding: .6em 1em; font-size: .8rem; border-color: var(--line-2); }
.btn--small:hover { border-color: var(--ink); color: var(--ink); }
.btn--big { padding: 1.1em 2em; font-size: 1rem; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(3px); }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 50; background: var(--dark); color: var(--on-dark);
  border-bottom: 1px solid rgb(255 255 255 / .08); transition: box-shadow .3s;
}
.masthead.is-stuck { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .7); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: auto; height: 46px; transition: height .3s var(--ease); }
.masthead.is-stuck .brand img { height: 38px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__list a {
  font-family: var(--sans); font-size: .84rem; font-weight: 500; letter-spacing: .02em; color: var(--on-dark-2);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: #fff; border-color: var(--red-2); }
.nav__search { display: flex; align-items: center; border-bottom: 1px solid rgb(255 255 255 / .25); }
.nav__search input {
  background: none; border: 0; color: #fff; font-family: var(--sans); font-size: .86rem; padding: 6px 4px; width: 140px; outline: none;
}
.nav__search input::placeholder { color: var(--on-dark-2); }
.nav__search button { color: var(--on-dark-2); display: flex; }
.nav__search button:hover { color: #fff; }
.masthead__tools { display: none; gap: 6px; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark); border-radius: 50%; }
.iconbtn:hover { background: rgb(255 255 255 / .08); color: #fff; }
.iconbtn .ico { width: 24px; height: 24px; }
.js-menu .ico--close { display: none; }
body.nav-open .js-menu .ico--close { display: block; }
body.nav-open .js-menu .ico--menu { display: none; }

@media (max-width: 960px) {
  .masthead__tools { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--dark); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgb(255 255 255 / .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
    max-height: calc(100dvh - 76px); overflow: auto;
  }
  body.nav-open .nav, body.search-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-size: 1.05rem; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .nav__search { margin-top: 14px; }
  .nav__search input { width: 100%; font-size: 1rem; padding: 10px 4px; }
  body.search-open:not(.nav-open) .nav__list { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8); transform: scale(1.03); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(18 15 13 / .92) 0%, rgb(18 15 13 / .72) 55%, rgb(18 15 13 / .35) 100%),
              linear-gradient(0deg, rgb(18 15 13 / .9) 0%, transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero__title { font-size: clamp(2.5rem, 1.5rem + 5vw, 5.4rem); line-height: .98; margin: 14px 0 22px; text-wrap: balance; }
.hero__sub { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: var(--on-dark-2); max-width: 36ch; line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__portrait { margin: 0; justify-self: end; width: min(100%, 360px); }
.hero__portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .22); padding: 8px; background: rgb(0 0 0 / .25);
  filter: sepia(.18) contrast(1.02);
}
.hero__portrait figcaption { text-align: center; margin-top: 16px; display: grid; gap: 4px; }
.hero__name { font-size: 1.3rem; }
.hero__lema { font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #e2b8b0; font-weight: 600; }
@media (max-width: 760px) {
  .hero__in { grid-template-columns: 1fr; align-items: start; padding-top: 40px; }
  .hero__portrait { justify-self: start; width: 160px; order: -1; }
  .hero__portrait figcaption { text-align: left; }
  .hero::before { background: linear-gradient(0deg, rgb(18 15 13 / .95) 0%, rgb(18 15 13 / .75) 60%, rgb(18 15 13 / .55) 100%); }
}

/* Entrance choreography */
.fx { opacity: 0; transform: translateY(14px); animation: fx .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes fx { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx, .reveal { opacity: 1; transform: none; animation: none; transition: none; } }

/* Sections */
.section { padding: clamp(44px, 7vw, 96px) 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.section__head .more { color: var(--ink-2); }

/* Teasers */
.teaser { display: grid; gap: 14px; }
.teaser__media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease), filter .6s; filter: sepia(.08); }
.teaser__media { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.teaser:hover .teaser__media img { transform: scale(1.03); filter: none; }
.teaser__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.teaser__title { font-size: 1.3rem; line-height: 1.18; }
.teaser__title a:hover { color: var(--red); }
.teaser__excerpt { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.teaser__foot { font-family: var(--sans); font-size: .74rem; color: var(--muted); }
.teaser--lead .teaser__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
.teaser--lead .teaser__media img { aspect-ratio: 16 / 9; }
.teaser--lead .teaser__excerpt { font-size: 1.12rem; }
.teaser--row { grid-template-columns: 112px 1fr; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.teaser--row .teaser__media img { aspect-ratio: 8 / 5; }
.teaser--row .teaser__title { font-size: 1.1rem; }
.teaser--row .teaser__body { display: grid; gap: 6px; }
.teaser--card .teaser__body { display: grid; gap: 8px; }

.latest__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.latest__grid .teaser--lead { grid-row: span 6; }
.latest__grid .teaser--row:nth-of-type(2) { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .latest__grid { grid-template-columns: 1fr; } .latest__grid .teaser--row:nth-of-type(2) { border-top: 1px solid var(--line); padding-top: 16px; } }

.grid { display: grid; gap: clamp(22px, 3vw, 40px) clamp(18px, 2.5vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Un día como hoy */
.today__grid { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.datebadge {
  width: 120px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; gap: 2px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper);
}
.datebadge__m { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.datebadge__d { font-size: 3.6rem; line-height: .9; }
.datebadge--big { width: 150px; }
.datebadge--big .datebadge__d { font-size: 4.6rem; }
.today__list li { border-top: 1px solid var(--line); }
.today__list li:first-child { border-top: 0; }
.today__list a { display: grid; grid-template-columns: 92px 1fr 160px; gap: 20px; align-items: center; padding: 20px 0; }
.today__list img { width: 160px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius); filter: sepia(.1); }
.today__year { font-size: 2rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.today__text { display: grid; gap: 4px; }
.today__title { font-size: 1.35rem; line-height: 1.2; }
.today__ex { color: var(--ink-2); font-size: .98rem; }
.today__min { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.today__list a:hover .today__title { color: var(--red); }
@media (max-width: 760px) {
  .today__grid { grid-template-columns: 1fr; }
  .datebadge { width: 96px; }
  .datebadge__d { font-size: 2.8rem; }
  .today__list a { grid-template-columns: 64px 1fr; }
  .today__list img { display: none; }
  .today__year { font-size: 1.5rem; }
}

/* Explora: lista numerada con filetes */
.explore__list li { border-top: 1px solid var(--line); }
.explore__list li:last-child { border-bottom: 1px solid var(--line); }
.explore__list a { display: grid; grid-template-columns: 56px 1fr auto 28px; align-items: baseline; gap: 16px; padding: 18px 0; }
.explore__n { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.explore__name { font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem); }
.explore__count { font-family: var(--sans); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.explore__list .ico { color: var(--line-2); transition: transform .3s var(--ease), color .3s; align-self: center; }
.explore__list a:hover .ico { color: var(--red); transform: translateX(4px); }
@media (max-width: 560px) { .explore__list a { grid-template-columns: 36px 1fr 24px; } .explore__count { grid-column: 2; font-size: .72rem; } }

/* Línea de tiempo: franja de siglos en portada */
.tlstrip__lead { color: var(--ink-2); margin-bottom: 28px; font-size: 1.1rem; }
.tlstrip__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; }
.tlstrip__bar a { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; text-align: center; }
.tlstrip__count { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.tlstrip__bar-el { display: block; height: calc(var(--v) * 140px); min-height: 6px; background: var(--paper-3); border-top: 2px solid var(--ink); transition: background .3s, border-color .3s; }
.tlstrip__bar a:hover .tlstrip__bar-el { border-color: var(--red); }
.tlstrip__bar a:hover .tlstrip__bar-el { background: var(--red); }
.tlstrip__c { font-size: .95rem; border-top: 1px solid var(--line-2); padding-top: 8px; }

/* Biblioteca: estantería */
.shelf__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.shelf__row img, .cover { width: 100%; aspect-ratio: 12 / 17; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.shelf__row a:hover img { transform: translateY(-6px); }
.cover--empty { display: grid; place-content: center; padding: 14px; background: var(--dark-3); color: var(--on-dark); text-align: center; font-size: .95rem; line-height: 1.2; }
.shelf__title { display: block; margin-top: 12px; font-size: .98rem; line-height: 1.25; }
@media (max-width: 960px) { .shelf__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shelf__row li:nth-child(n+4) { display: none; } }

/* Comunidad */
.community__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.community__list li + li { border-left: 1px solid var(--line); }
.community__list a { display: grid; gap: 10px; padding: 28px 20px; justify-items: start; }
.community__list .ico { width: 28px; height: 28px; }
.community__label { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.community__count { font-size: 2.4rem; line-height: 1; }
.community__list--compact { grid-template-columns: repeat(2, 1fr); }
.community__list--compact a { padding: 18px 14px; }
.community__list--compact .community__count { font-size: 1.6rem; }
@media (max-width: 760px) { .community__list { grid-template-columns: repeat(2, 1fr); } .community__list li:nth-child(3) { border-left: 0; } .community__list li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Apoyo */
.support { background: var(--dark); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 !important; margin-top: clamp(44px, 7vw, 96px); }
.support__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.support .h2 { margin: 10px 0 14px; }
.support p { color: var(--on-dark-2); max-width: 60ch; }
@media (max-width: 760px) { .support__in { grid-template-columns: 1fr; } }

/* Page heads */
.pagehead { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 44px); display: grid; gap: 14px; }
.pagehead__desc { color: var(--ink-2); max-width: 70ch; }
.pagehead__count { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.searchbar { display: flex; gap: 10px; max-width: 520px; }
.searchbar input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.empty { color: var(--muted); padding: 20px 0 60px; }

/* Article */
.article__head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.article__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.article__title { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.02; }
.article__dek { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); color: var(--ink-2); line-height: 1.4; }
.article__byline { font-family: var(--sans); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.byline__name { color: var(--ink); font-weight: 600; }
.article__hero { margin: 8px auto 0; }
.article__hero img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); }
.article__hero figcaption { font-family: var(--sans); font-size: .76rem; color: var(--muted); padding: 10px 0; }
.article__layout { display: grid; grid-template-columns: 1fr var(--narrow) 1fr; gap: 24px; padding-top: clamp(28px, 4vw, 48px); }
.article__side { grid-column: 1; }
.article__body { grid-column: 2; min-width: 0; }
.share { position: sticky; top: 100px; display: grid; gap: 8px; justify-items: start; }
.share .kicker { margin-bottom: 6px; color: var(--muted); }
.share a, .share button { width: 42px; height: 42px; display: grid; place-content: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s; }
.share a:hover, .share button:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.share button.is-done { border-color: var(--red); color: var(--red); }
@media (max-width: 1100px) {
  .article__layout { grid-template-columns: 1fr; width: min(var(--narrow), 100% - var(--gutter) * 2); }
  .article__side, .article__body { grid-column: 1; }
  .share { position: static; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
  .share .kicker { margin: 0 8px 0 0; }
}

/* Prose (cuerpo del artículo y páginas) */
.prose { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); line-height: 1.68; color: var(--ink); }
.prose > * + * { margin-top: 1.25em; }
.prose p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .78; padding: .06em .08em 0 0; color: var(--red); font-weight: 400; }
.page-simple .prose p:first-of-type::first-letter, .pagehead__desc p::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.9em; line-height: 1.15; }
.prose h2 { font-size: 1.8em; }
.prose h3 { font-size: 1.4em; }
.prose h4 { font-size: 1.15em; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.prose a { color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.prose a:hover { border-color: var(--red); }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-element-caption { font-family: var(--sans); font-size: .76rem; color: var(--muted); margin-top: 8px; text-align: left; }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 2px solid var(--red); font-size: 1.15em; line-height: 1.45; color: var(--ink-2); }
.prose blockquote p + p { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em auto; width: 80px; }
.prose iframe, .prose video { max-width: 100%; }
.prose .wp-block-embed, .prose .wp-block-video { margin: 2em 0; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: .5em .4em; text-align: left; }
.prose .wp-block-image.alignwide, .prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (min-width: 1101px) { .prose .wp-block-image.alignwide, .prose .alignfull { margin-inline: calc((var(--narrow) - min(var(--wrap), 100vw - var(--gutter) * 2)) / 2); width: auto; max-width: none; } }
.sources { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--ink); font-size: .9em; color: var(--ink-2); }
.sources h2, .sources h3, .sources h4 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 0; }
.sources p::first-letter { float: none; font-size: inherit; color: inherit; padding: 0; line-height: inherit; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.5em; }
.article__tags a { font-family: var(--sans); font-size: .74rem; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.article__tags a:hover { border-color: var(--red); color: var(--red); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { display: grid; gap: 6px; font-size: 1.15rem; line-height: 1.25; }
.pager__next { text-align: right; }
.pager a .kicker { color: var(--muted); }
.related { margin-top: clamp(44px, 7vw, 96px); background: var(--paper-2); padding: clamp(44px, 7vw, 96px) 0 !important; }

/* Pagination */
.pagination { margin: 48px 0 72px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { font-family: var(--sans); font-size: .85rem; min-width: 40px; height: 40px; display: inline-grid; place-content: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 10px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--red); color: var(--red); }

/* Línea de tiempo (página) */
.tl { padding-bottom: 96px; }
.tl__controls { position: sticky; top: 76px; z-index: 10; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; margin-bottom: 36px; }
.tl__centuries { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tl__centuries::-webkit-scrollbar { display: none; }
.tl__centuries a { font-family: var(--sans); font-size: .8rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.tl__centuries a span { color: var(--muted); margin-left: 4px; }
.tl__centuries a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tl__centuries a.is-active span { color: var(--paper-3); }
.tl__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: .76rem; font-weight: 500; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .2s; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip.is-active span { color: rgb(255 255 255 / .7); }
.tl__century { position: relative; padding-left: clamp(0px, 4vw, 40px); }
.tl__century[hidden] { display: none; }
.tl__century-title { position: relative; font-size: clamp(2rem, 1.5rem + 3vw, 4rem); margin: 48px 0 24px; color: var(--ink); }
.tl__century-title span { background: var(--paper); padding-right: 16px; position: relative; }
.tl__century-title::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; border-top: 1px solid var(--line-2); z-index: -1; }
.tl__decade { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 10px 0 28px; }
.tl__decade[hidden] { display: none; }
.tl__decade-label { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; padding-top: 10px; }
.tl__list { position: relative; border-left: 1px solid var(--line-2); padding-left: 32px; display: grid; gap: 22px; }
.tl__item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: start; }
.tl__item[hidden] { display: none; }
.tl__item::before { content: ""; position: absolute; left: -36px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--paper); }
.tl__year { font-size: 1.8rem; line-height: 1; padding-top: 4px; font-variant-numeric: tabular-nums; }
.tl__year small { font-size: .55em; color: var(--muted); }
.tl__card { display: grid; grid-template-columns: 136px 1fr; gap: 18px; align-items: start; padding: 14px; margin: -14px; border-radius: var(--radius); transition: background .25s; }
.tl__card:hover { background: var(--paper-2); }
.tl__card img { width: 136px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 3px; filter: sepia(.1); }
.tl__card-body { display: grid; gap: 4px; }
.tl__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tl__title { font-size: 1.25rem; line-height: 1.2; }
.tl__card:hover .tl__title { color: var(--red); }
.tl__ex { color: var(--ink-2); font-size: .95rem; }
.tl__empty { color: var(--muted); padding: 40px 0; }
@media (max-width: 760px) {
  .tl__controls { top: 76px; }
  .tl__decade { grid-template-columns: 1fr; gap: 6px; }
  .tl__list { padding-left: 22px; }
  .tl__item { grid-template-columns: 1fr; gap: 6px; }
  .tl__item::before { left: -26px; top: 8px; }
  .tl__year { font-size: 1.3rem; color: var(--red); }
  .tl__card { grid-template-columns: 1fr; margin: 0; padding: 0; }
  .tl__card img { width: 100%; }
}

/* Un día como hoy (página) */
.day { padding-bottom: 96px; display: grid; gap: 40px; }
.day__picker { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 8px 0 28px; border-bottom: 1px solid var(--ink); }
.day__selects { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.day__selects select { font: inherit; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.day__title { margin-bottom: -16px; }
.today__list--page .today__title { font-size: 1.6rem; }
.day__months h2 { margin-bottom: 18px; }
.day__month-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.day__month-name { font-size: 1.15rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.day__month-name span { font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.day__days { display: flex; flex-wrap: wrap; gap: 4px; }
.day__days a { font-family: var(--sans); font-size: .78rem; min-width: 30px; height: 30px; display: inline-grid; place-content: center; border-radius: 999px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.day__days a:hover { border-color: var(--red); }
.day__days a.is-active { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 760px) { .day__picker { grid-template-columns: 1fr; } .day__month-list { grid-template-columns: repeat(2, 1fr); } }

/* Biblioteca (página) */
.bib { padding-bottom: 96px; }
.bib__filters { margin-bottom: 32px; }
.bib__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.book { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: start; }
.book[hidden] { display: none; }
.book__cover img, .book__cover .cover { aspect-ratio: 12 / 17; }
.book__body { display: grid; gap: 8px; }
.book__title { font-size: 1.4rem; line-height: 1.15; }
.book__desc { color: var(--ink-2); font-size: .98rem; }
.book__actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
@media (max-width: 960px) { .bib__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .book { grid-template-columns: 110px 1fr; gap: 14px; } }

/* Apoyo (página) */
.support-page__cta { margin: 36px 0; }
.support-page__follow { margin: 56px 0 96px; display: grid; gap: 14px; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 32px; margin-top: auto; }
.support + .footer { margin-top: 0; border-top: 1px solid rgb(255 255 255 / .1); }
.footer .kicker { color: #e2b8b0; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.newsletter .h3 { margin-top: 8px; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius); background: transparent; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand img { width: 220px; height: auto; }
.footer__about { color: var(--on-dark-2); margin: 20px 0; max-width: 42ch; font-size: 1rem; }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; display: grid; place-content: center; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; color: var(--on-dark-2); }
.social a:hover { border-color: #fff; color: #fff; }
.footer__col ul { display: grid; gap: 10px; margin-top: 16px; }
.footer__col a { font-size: 1rem; color: var(--on-dark-2); }
.footer__col a:hover { color: #fff; }
.footer__col a span { font-family: var(--sans); font-size: .72rem; color: var(--muted); margin-left: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); }
.lema { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #e2b8b0; font-weight: 600; }
.copy { font-family: var(--sans); font-size: .76rem; color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Selection, focus */
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
