:root {
  --cream: #f4efe6;
  --cream-deep: #e8e0d2;
  --ink: #14120f;
  --ink-soft: #2c2620;
  --muted: #5c5349;
  --accent: #8b2d12;
  --accent-mid: #b8431a;
  --accent-bright: #e8642a;
  --accent-glow: rgba(232, 100, 42, 0.45);
  --gold: #c9a227;
  --gold-bright: #e4bc4a;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --header-bg: #0f0c0a;
  --header-bg2: #1a1512;
  --hero-dark: #0d0a08;
  --hero-dark2: #221510;
  --hero-mid: #3d1810;
  --card: #fffdf8;
  --card-edge: rgba(20, 18, 15, 0.06);
  --border: #d0c4b2;
  --border-soft: rgba(255, 220, 180, 0.12);
  --shadow: 0 1px 3px rgba(20, 22, 28, 0.06), 0 12px 40px rgba(20, 22, 28, 0.07);
  --shadow-hover: 0 4px 14px rgba(20, 22, 28, 0.08), 0 20px 48px rgba(20, 22, 28, 0.1);
  --shadow-hero: 0 28px 56px rgba(8, 10, 14, 0.45), 0 4px 16px rgba(8, 10, 14, 0.2);
  --shadow-card-feature: 0 16px 40px rgba(20, 22, 28, 0.1), 0 0 0 1px var(--rule-cool);
  --radius-sm: 0.45rem;
  --radius: 0.65rem;
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --max: 42rem;
  --header-h: 4.15rem;
  --chrome-bg: #121820;
  --chrome-bg-elev: #181f2a;
  --chrome-border: #252d3a;
  --chrome-text: #e9ecf1;
  --chrome-muted: #8b95a8;
  --chrome-rule: #2c3544;
  --paper: #f9f7f3;
  --paper-warm: #ece6dc;
  --rule-editorial: #c5bcb0;
  --rule-cool: rgba(36, 48, 64, 0.12);
  --focus-ring: #6a7d9a;
  --cta-slate: #2c3a4e;
  --cta-slate-hover: #38465e;
  --hero-surface: #141a22;
  --hero-surface-mid: #1c2430;
  --font-display: Georgia, "Times New Roman", serif;
  --font-serif: Charter, Cambria, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.fonts-loaded {
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif: Literata, Charter, Cambria, Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.site {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(44, 58, 78, 0.045), transparent 45%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(139, 45, 18, 0.04), transparent 42%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream-deep) 48%, var(--paper-warm) 100%);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

body.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(circle at 22% 28%, rgba(42, 52, 68, 0.035) 0.5px, transparent 0.65px);
  background-size: 26px 26px;
  mix-blend-mode: multiply;
}

::selection {
  background: rgba(74, 93, 120, 0.22);
  color: var(--ink);
}

h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-mid);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding-left: max(clamp(1rem, 4vw, 1.75rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 1.75rem), env(safe-area-inset-right, 0px));
}

/* ——— Cabecera (cromo institucional) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--chrome-rule);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.35rem;
}

.header-nav-toggle {
  display: none;
}

.header-nav-backdrop {
  display: none;
}

.header-brand {
  flex: 1 1 14rem;
  min-width: 0;
}

.header-brand__tagline {
  margin: 0.2rem 0 0;
  padding-left: 0.55rem;
  border-left: 2px solid var(--chrome-rule);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--chrome-muted);
  max-width: 36rem;
}

@media (max-width: 52rem) {
  .header-brand__tagline {
    display: none;
  }
}

@media (max-width: 42rem) {
  body.site {
    /* Marca + hamburguesa + buscador (el menú va en panel lateral) */
    --header-h: 6.35rem;
  }

  body.site.nav-drawer-open {
    overflow: hidden;
    touch-action: none;
  }

  .read-progress-track {
    top: calc(env(safe-area-inset-top, 0px) + clamp(6rem, 28vw, 9.5rem));
  }

  .prose h2,
  .prose h3 {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + clamp(5.75rem, 26vw, 9rem));
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "search search";
    align-items: center;
    gap: 0.55rem 0.75rem;
  }

  .header-brand {
    grid-area: brand;
    min-width: 0;
  }

  .header-nav-toggle {
    grid-area: toggle;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--chrome-border);
    border-radius: var(--radius-sm);
    background: var(--chrome-bg-elev);
    color: var(--chrome-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .header-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .header-nav-toggle:focus-visible {
    outline: 2px solid rgba(120, 160, 210, 0.75);
    outline-offset: 2px;
  }

  .header-nav-toggle__icon {
    position: relative;
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .site-header.is-nav-open .header-nav-toggle__icon {
    background: transparent;
    box-shadow: none;
  }

  .site-header.is-nav-open .header-nav-toggle__icon::before,
  .site-header.is-nav-open .header-nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.15rem;
    height: 2px;
    margin-left: -0.575rem;
    margin-top: -1px;
    border-radius: 1px;
    background: currentColor;
  }

  .site-header.is-nav-open .header-nav-toggle__icon::before {
    transform: rotate(45deg);
  }

  .site-header.is-nav-open .header-nav-toggle__icon::after {
    transform: rotate(-45deg);
  }

  .header-search {
    grid-area: search;
    max-width: none;
  }

  .header-search__input {
    font-size: 1rem;
  }

  .header-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(8, 10, 14, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .site-header.is-nav-open {
    z-index: 70;
  }

  .site-header.is-nav-open + .header-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav-backdrop[hidden] {
    display: none !important;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20.5rem, 92vw);
    max-width: 100%;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.75rem);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--chrome-bg);
    border-left: 1px solid var(--chrome-border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    z-index: 75;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header.is-nav-open .nav-main {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-main a {
    flex-shrink: 0;
    white-space: normal;
    padding: 0.65rem 0.75rem;
    min-height: 2.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-main a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-main__sep--drawer {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.5rem 0;
    background: var(--chrome-border);
    border: none;
    align-self: stretch;
  }

  .nav-main__sep--drawer + .nav-main__aux {
    margin-top: 0.15rem;
  }

  #article-body h2,
  #article-body h3 {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + clamp(6rem, 28vw, 9.5rem) + 0.45rem);
  }

  .category-hero {
    box-shadow: var(--shadow);
    padding: 1.15rem 1rem 1.2rem;
    border-radius: var(--radius);
  }

  .category-banner__title,
  .category-hero__title {
    max-width: none;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .category-hero__crumb.breadcrumbs {
    row-gap: 0.35rem;
  }

  .category-hero__parent-link {
    max-width: 100%;
    white-space: normal;
    justify-content: flex-start;
  }

  .category-subcard__name,
  .category-topic-card__name {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .home-topics__inner {
    padding: 1rem 0.9rem 1.1rem;
  }

  .explore-hub {
    padding: 1.15rem 0.95rem 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }
}

.header-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 12rem;
  max-width: min(22rem, 100%);
  gap: 0.35rem;
}

.header-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  min-height: 2.4rem;
  font: inherit;
  font-size: 0.875rem;
  border-radius: 2px;
  border: 1px solid var(--chrome-border);
  background: var(--chrome-bg-elev);
  color: var(--chrome-text);
}

.header-search__input::placeholder {
  color: rgba(139, 149, 168, 0.85);
}

.header-search__input:focus {
  outline: 2px solid rgba(120, 160, 210, 0.55);
  outline-offset: 1px;
  border-color: #3d4d66;
}

.header-search__btn {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid #2f3a4d;
  background: #243044;
  color: #eef1f6;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-search__btn:hover {
  background: #2c384c;
  border-color: #3d4d66;
}

.header-search__btn:focus-visible {
  outline: 2px solid rgba(120, 160, 210, 0.65);
  outline-offset: 2px;
}

.logo {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--chrome-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0.15rem 0 0.15rem 0.55rem;
  border-left: 3px solid #4a5d78;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.logo__name {
  display: inline-block;
}

.logo:hover {
  color: #fff;
  border-left-color: #6a7d9a;
}

.logo::after {
  display: none;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem 0.15rem;
  font-size: 0.8125rem;
}

.nav-main a {
  color: rgba(233, 236, 241, 0.78);
  text-decoration: none;
  font-weight: 600;
  padding: 0.42rem 0.55rem;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-main a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-main a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -2px 0 0 rgba(180, 195, 220, 0.65);
}

.nav-main__sep {
  display: inline-block;
  width: 1px;
  height: 1rem;
  margin: 0 0.35rem;
  background: var(--chrome-border);
  flex-shrink: 0;
  align-self: center;
}

.nav-main__aux {
  font-weight: 500 !important;
  color: rgba(200, 210, 225, 0.65) !important;
  font-size: 0.78rem !important;
}

.nav-main__aux:hover {
  color: rgba(230, 235, 245, 0.95) !important;
}

.main {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem);
}

body.page-article .main,
body.page-personaje .main {
  max-width: 78rem;
}

/* ——— Hero portada (inicio) ——— */
.hero--feature {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  padding: clamp(2.75rem, 8vw, 4.75rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 70% at 12% 0%, rgba(120, 145, 185, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 50% at 92% 100%, rgba(139, 45, 18, 0.12), transparent 48%),
    linear-gradient(165deg, var(--hero-surface) 0%, var(--hero-surface-mid) 45%, #12161d 100%);
  color: #eef1f5;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero--feature::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.hero__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero__shine {
  position: absolute;
  top: -15%;
  right: -25%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    118deg,
    transparent 42%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 58%
  );
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__shine {
    animation: heroShineDrift 14s ease-in-out infinite alternate;
  }

  .page-home .hero--feature {
    animation: heroBgPulse 22s ease-in-out infinite alternate;
  }
}

@keyframes heroShineDrift {
  from {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.85;
  }
  to {
    transform: translate(-4%, 2%) rotate(-2deg);
    opacity: 1;
  }
}

@keyframes heroBgPulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.02);
  }
}

.hero--feature .hero-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 195, 215, 0.88);
  margin: 0 0 1rem;
}

.hero--feature .hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(140, 160, 190, 0.9), transparent);
  border-radius: 1px;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 18ch;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero--feature .lead {
  position: relative;
  z-index: 2;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: rgba(225, 230, 238, 0.78);
  max-width: 38rem;
  margin: 0;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 1.65rem;
}

.btn-home--ghost {
  color: rgba(238, 241, 245, 0.92);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.btn-home--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-home--ghost:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.hero-cta--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.btn-home--surface {
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule-editorial);
  box-shadow: var(--shadow);
}

.btn-home--surface:hover {
  color: var(--accent-mid);
  border-color: rgba(44, 58, 78, 0.25);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.hero__rule {
  position: relative;
  z-index: 2;
  margin-top: 1.75rem;
  height: 2px;
  max-width: 6rem;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(140, 160, 190, 0.85), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero--feature .hero-kicker {
    animation: heroFade 0.8s ease backwards;
  }

  .page-home .hero--feature .hero-title {
    animation: heroFade 0.85s ease 0.08s backwards;
  }

  .page-home .hero--feature .lead {
    animation: heroFade 0.85s ease 0.16s backwards;
  }

  .page-home .hero--feature .hero__rule {
    animation: heroFade 0.9s ease 0.24s backwards;
  }

  .page-home .hero--feature .hero-actions {
    animation: heroFade 0.88s ease 0.2s backwards;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Categorías (portada / búsqueda): árbol con sangría ——— */
.category-tree-nav {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-tree-nav--compact {
  margin-bottom: 0;
  gap: 0.28rem;
}

.category-tree-nav__row {
  padding-inline-start: calc(var(--cat-depth, 0) * 0.95rem);
}

.category-tree-nav .category-pill {
  max-width: 100%;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--rule-editorial);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.04);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-pill:hover {
  color: var(--ink);
  border-color: rgba(44, 58, 78, 0.28);
  background: #fffefb;
  box-shadow: 0 2px 10px rgba(20, 22, 28, 0.06);
}

.page-category .category-pills,
.page-category .category-tree-nav {
  display: none;
}

/* ——— Cabecera de categoría (página sección) ——— */
.category-banner {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.category-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.35rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(44, 58, 78, 0.12);
  background:
    linear-gradient(125deg, rgba(255, 253, 248, 0.97) 0%, rgba(252, 248, 240, 0.92) 42%, rgba(245, 238, 228, 0.88) 100%),
    linear-gradient(90deg, rgba(139, 45, 18, 0.07) 0%, transparent 12%),
    var(--card);
  box-shadow: var(--shadow-hero);
}

.category-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-mid), #3d4d66);
  pointer-events: none;
}

.category-hero__crumb {
  margin-bottom: 0.5rem;
}

.category-hero__crumb a {
  color: var(--muted);
  font-weight: 600;
}

.category-hero__crumb a:hover {
  color: var(--accent-mid);
}

.category-hero__crumb [aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 700;
}

.category-hero__kicker {
  position: relative;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.category-hero__parent {
  margin: 0 0 0.65rem;
}

.category-hero__parent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(44, 58, 78, 0.06);
  border: 1px solid rgba(44, 58, 78, 0.1);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.category-hero__parent-link:hover {
  color: var(--accent-mid);
  border-color: rgba(139, 45, 18, 0.28);
  background: rgba(139, 45, 18, 0.05);
}

.category-banner__title,
.category-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  margin: 0 0 0.65rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}

.category-banner__desc,
.category-hero__desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.68;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.category-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.category-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.category-hero__btn--primary {
  background: var(--cta-slate);
  color: #f4f6f9;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(20, 22, 28, 0.12);
}

.category-hero__btn--primary:hover {
  background: var(--cta-slate-hover);
  color: #fff;
  transform: translateY(-1px);
}

.category-hero__btn--ghost {
  background: rgba(255, 253, 248, 0.85);
  color: var(--ink-soft);
  border-color: var(--rule-editorial);
}

.category-hero__btn--ghost:hover {
  border-color: rgba(44, 58, 78, 0.25);
  color: var(--accent-mid);
}

.category-pills--roots {
  margin-bottom: 1.5rem;
}

/* ——— Portada: rejilla de temas ——— */
.home-topics {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.home-topics__inner {
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-editorial);
  background: linear-gradient(160deg, #fffefb 0%, rgba(252, 249, 242, 0.95) 55%, var(--cream) 100%);
  box-shadow: var(--shadow);
}

.home-topics__intro {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(44, 58, 78, 0.08);
}

.home-topics__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-topics__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  max-width: 44rem;
}

.home-topics__lead a {
  font-weight: 700;
  color: var(--accent-mid);
  text-decoration: none;
}

.home-topics__lead a:hover {
  text-decoration: underline;
}

.category-topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .category-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .category-topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: 6.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.category-topic-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-mid), #4a5d78);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-topic-card:hover {
  border-color: rgba(44, 58, 78, 0.22);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.category-topic-card:hover::after {
  opacity: 1;
}

.category-topic-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.category-topic-card__desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-topic-card__desc--placeholder {
  font-style: italic;
  opacity: 0.85;
}

/* ——— Subcategorías (tarjetas) ——— */
.category-subnav {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(44, 58, 78, 0.1);
  background: rgba(255, 253, 248, 0.65);
  box-shadow: 0 1px 0 rgba(20, 16, 12, 0.04);
}

.category-subnav__head {
  margin-bottom: 1rem;
}

.category-subnav__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.category-subnav__subtitle {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 40rem;
}

.category-subnav__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .category-subnav__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .category-subnav__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-subcard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-subcard:hover {
  border-color: rgba(139, 45, 18, 0.35);
  box-shadow: 0 6px 20px rgba(20, 22, 28, 0.07);
  transform: translateY(-2px);
}

.category-subcard__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}

.category-subcard__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-subcard__go {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

/* Listado bajo categoría: acento visual */
.article-list--in-category {
  border-color: rgba(139, 45, 18, 0.18);
}

.article-list--in-category::before {
  background: linear-gradient(180deg, var(--accent-mid), #4a5d78);
}

@media (max-width: 28rem) {
  .category-hero__btn {
    width: 100%;
  }

  .category-banner__title,
  .category-hero__title {
    max-width: none;
  }
}

.card-cat {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #3d4d66;
  background: rgba(44, 58, 78, 0.08);
  border-radius: 2px;
  border: 1px solid rgba(44, 58, 78, 0.1);
  pointer-events: auto;
}

.card-cat:hover {
  background: rgba(44, 58, 78, 0.12);
  color: var(--ink-soft);
}

/* ——— Hero 404 ——— */
.hero--error {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
  margin-bottom: 2rem;
}

.hero--error .hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 10vw, 4.25rem);
  color: var(--ink);
  max-width: none;
  text-shadow: none;
}

.hero--error .lead {
  color: var(--muted);
}

.error-suggest {
  max-width: 40rem;
  margin: 0 auto 3rem;
  padding: 0 clamp(1rem, 4vw, 1.75rem);
}

.error-suggest__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.error-suggest__links {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.error-suggest__links a {
  font-weight: 600;
}

.error-suggest__sub {
  margin: 1.35rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.error-suggest__pills {
  margin-top: 0.35rem;
}

.search-banner {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  box-shadow: var(--shadow);
}

.search-banner__crumb {
  margin-bottom: 0.85rem;
}

.search-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.search-banner__lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.65;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.search-form--hero {
  max-width: 32rem;
}

.search-form__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  min-height: 2.75rem;
  font: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-form__input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: rgba(90, 105, 130, 0.45);
}

.search-form__btn {
  padding: 0.65rem 1.25rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--cta-slate);
  color: #f4f6f9;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 22, 28, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-form__btn:hover {
  transform: translateY(-1px);
  background: var(--cta-slate-hover);
  box-shadow: 0 4px 14px rgba(20, 22, 28, 0.14);
}

.search-form__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.hero-cta {
  margin: 1.5rem 0 0;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #f4f6f9;
  background: var(--cta-slate);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-home:hover {
  color: #fff;
  background: var(--cta-slate-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.btn-home:focus-visible {
  outline: 2px solid rgba(180, 200, 230, 0.85);
  outline-offset: 3px;
}

.btn-home--surface:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ——— Listado revista ——— */
.article-list--mag {
  position: relative;
  padding: clamp(1.65rem, 3.5vw, 2.35rem);
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  box-shadow: var(--shadow);
}

@media (min-width: 48rem) {
  .article-list--mag {
    margin: 0 calc(-1 * clamp(0.5rem, 2vw, 1rem));
  }
}

.article-list--mag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #4a5d78, #2c3a4e);
  opacity: 0.9;
  pointer-events: none;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  position: relative;
  padding-bottom: 0.45rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, #3d4d66, rgba(61, 77, 102, 0.2));
  border-radius: 1px;
}

.section-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule-editorial);
  border-radius: var(--radius);
  padding: 0;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #5a6d88, #3d4d66);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(44, 58, 78, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(44, 58, 78, 0.18);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.cards > li:first-child .card {
  background: linear-gradient(165deg, #fffefb 0%, #faf8f4 100%);
  border-color: rgba(44, 58, 78, 0.14);
  box-shadow: var(--shadow-card-feature);
}

.cards > li:first-child .card::before {
  opacity: 1;
  width: 3px;
}

.cards > li:first-child .card::after {
  opacity: 0.35;
}

@media (min-width: 1024px) {
  .cards > li:first-child {
    grid-column: 1 / -1;
  }

  .cards > li:first-child .card {
    flex-direction: row;
    align-items: stretch;
  }

  .cards > li:first-child .card-body {
    flex: 1;
    padding: 1.5rem 1.5rem 1rem;
    max-width: 48rem;
  }

  .cards > li:first-child .card h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  }

  .cards > li:first-child .card-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 10rem;
    border-top: none;
    border-left: 1px solid var(--card-edge);
    padding: 1.5rem;
  }
}

.card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-stretch:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.card-body {
  padding: 1.25rem 1.35rem 0.75rem;
  flex: 1;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.card-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.35rem 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(197, 188, 176, 0.45);
  pointer-events: none;
  position: relative;
  z-index: 1;
  background: rgba(250, 248, 244, 0.65);
}

.card-footer .card-cta {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.card-footer time,
.card-date-placeholder {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-mid);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-cta:hover {
  color: var(--accent);
}

.card:hover .card-cta {
  transform: translateX(2px);
}

/* ——— Pie (documento institucional) ——— */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--chrome-border);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: #0e1218;
  color: rgba(225, 230, 238, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--chrome-rule);
  pointer-events: none;
}

.footer-inner {
  display: grid;
  gap: 1.75rem 1.5rem;
}

@media (min-width: 52rem) {
  .footer-inner {
    grid-template-columns: minmax(11rem, 1.35fr) 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 36rem) and (max-width: 51.99rem) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

.footer-col--brand {
  padding-right: 0.5rem;
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(155, 168, 188, 0.75);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #f0f3f8;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.footer-brand::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  background: #4a5d78;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: rgba(175, 186, 202, 0.88);
  max-width: 28rem;
  line-height: 1.55;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-nav--meta {
  gap: 0.4rem;
}

.footer-nav a {
  color: rgba(215, 222, 235, 0.88);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(120, 160, 210, 0.45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--chrome-border);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-legal a {
  color: rgba(175, 190, 215, 0.92);
  text-decoration: none;
  padding: 0.2rem 0;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-copy {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--chrome-border);
  font-size: 0.72rem;
  color: rgba(155, 168, 188, 0.72);
  grid-column: 1 / -1;
  line-height: 1.6;
  max-width: 52rem;
}

.footer-copy__extra {
  display: inline;
  color: rgba(175, 186, 202, 0.85);
}

/* ——— Artículo ——— */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-mid);
  text-decoration: underline;
}

.breadcrumbs .sep {
  margin: 0 0.4rem;
  opacity: 0.35;
  font-weight: 400;
}

.article-shell {
  position: relative;
  min-width: 0;
}

.article-hero {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(44, 58, 78, 0.12);
  background: var(--chrome-bg);
  box-shadow: var(--shadow-hero);
}

.article-hero__frame {
  position: relative;
  aspect-ratio: 1200 / 630;
  max-height: min(58vh, 28rem);
}

.article-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 12, 10, 0.35) 100%);
  opacity: 0.85;
}

.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ancho suficiente para índice lateral + columna de texto; centrado en el main */
.article-page {
  margin-inline: auto;
  min-width: 0;
}

.article-dek {
  margin: -0.25rem 0 0.85rem;
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-byline__time {
  color: var(--ink-soft);
}

.article-jump-wrap {
  margin: 0 0 0.5rem;
}

.article-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-mid);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.article-jump:hover {
  color: var(--accent);
  border-bottom-color: rgba(139, 45, 18, 0.35);
}

/* Cuerpo del artículo: columna de lectura centrada (no todo el ancho del .wrap) */
.page-article #article-body.prose {
  width: 100%;
  max-width: min(60rem, 100%);
  margin-inline: auto;
  font-size: 1.075rem;
  line-height: 1.84;
  letter-spacing: 0.013em;
  padding-block: 0.35rem 0.5rem;
}

.page-article #article-body.prose p {
  margin: 0 0 1.35rem;
}

.page-article #article-body.prose h2 {
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(44, 58, 78, 0.12);
  font-size: clamp(1.28rem, 2.8vw, 1.42rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-article #article-body.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.08rem, 2.2vw, 1.2rem);
  line-height: 1.35;
}

.page-article #article-body.prose ul,
.page-article #article-body.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.55rem;
}

.page-article #article-body.prose li {
  margin-bottom: 0.55rem;
}

.page-article #article-body.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.2rem 1.35rem 1.2rem 1.4rem;
}

.page-article .article-head {
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(44, 58, 78, 0.1);
}

.page-article .article-top {
  margin-bottom: clamp(0.5rem, 1.5vw, 0.85rem);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(44, 58, 78, 0.06);
}

.page-article .breadcrumbs.breadcrumbs--article {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.8125rem;
}

.breadcrumbs.breadcrumbs--article a {
  font-weight: 500;
  color: var(--muted);
}

.breadcrumbs.breadcrumbs--article a:hover {
  color: var(--accent-mid);
}

.breadcrumbs.breadcrumbs--article .sep {
  opacity: 0.22;
  margin: 0 0.32rem;
  font-weight: 400;
}

.page-article #article-body img,
.page-article #article-body video {
  max-width: 100%;
  height: auto;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 4.8vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.75rem;
}

.article-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(4rem, 26%);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #3d4d66, rgba(61, 77, 102, 0.25));
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin-bottom: 1.15rem;
  row-gap: 0.6rem;
}

.page-article .article-meta-row .meta-chip {
  max-width: 100%;
  min-width: 0;
  word-break: break-word;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #fffefb;
  border: 1px solid var(--rule-editorial);
  border-radius: 2px;
  box-shadow: none;
}

.meta-chip--muted {
  color: var(--muted);
  background: rgba(250, 248, 244, 0.95);
}

.meta-chip--accent {
  color: var(--accent-mid);
  background: rgba(139, 45, 18, 0.06);
  border-color: rgba(139, 45, 18, 0.22);
}

a.meta-chip--cat {
  text-decoration: none;
  color: var(--accent-mid);
  border-color: rgba(139, 45, 18, 0.25);
}

a.meta-chip--cat:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
}

a.meta-chip--theme {
  text-decoration: none;
  color: var(--ink-soft);
  border-color: rgba(92, 83, 73, 0.35);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

a.meta-chip--theme:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
}

a.meta-chip--time {
  text-decoration: none;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.03em;
}

a.meta-chip--time:hover {
  color: var(--accent-mid);
  border-color: rgba(139, 45, 18, 0.3);
}

.article-suceso {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-suceso__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.article-suceso__hint {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.article-suceso__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1.5rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-suceso__dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.article-suceso__dl dd {
  margin: 0;
  font-weight: 600;
}

.archive-hero {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  box-shadow: var(--shadow);
}

.archive-hero__crumb {
  margin-bottom: 0.75rem;
}

.archive-hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.15rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.archive-hero__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.68;
}

.archive-filters {
  margin-bottom: 2rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.archive-filters__grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .archive-filters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-filters__field--wide {
    grid-column: 1 / -1;
  }
}

.archive-filters__field select,
.archive-filters__field input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  min-height: 2.75rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.archive-filters__field select:focus-visible,
.archive-filters__field input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: rgba(90, 105, 130, 0.45);
}

.archive-filters__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.archive-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.archive-filters__submit {
  padding: 0.6rem 1.25rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: var(--cta-slate);
  color: #f4f6f9;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.archive-filters__submit:hover {
  background: var(--cta-slate-hover);
}

.archive-filters__submit:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.archive-filters__reset,
.archive-filters__rss {
  font-size: 0.88rem;
  font-weight: 600;
}

.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.5rem;
}

.card-theme {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card-archive-hint,
.card-geo {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.card-geo-link {
  color: var(--accent-mid);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.card-geo-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(139, 45, 18, 0.35);
}

.card-geo-sep {
  margin: 0 0.15rem;
  opacity: 0.45;
  font-weight: 400;
}

.read-progress-track {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(18, 24, 32, 0.12);
  pointer-events: none;
}

.read-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a5d78, #2c3a4e);
  box-shadow: none;
  transition: width 0.12s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .read-progress-bar {
    transition: none;
  }
}

.article-footer {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-footer__h {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.article-share {
  margin-bottom: 2rem;
}

.article-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  min-height: 2.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: var(--accent-mid);
  color: var(--accent-mid);
}

.share-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.share-btn--link {
  text-decoration: none;
}

.article-pager {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .article-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.article-pager__cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fffdf9 0%, #faf6ef 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 5rem;
}

.article-pager__cell:hover {
  border-color: rgba(139, 45, 18, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-pager__cell--next {
  text-align: right;
}

.article-pager__cell--next .article-pager__dir,
.article-pager__cell--next .article-pager__title {
  align-self: flex-end;
}

.article-pager__cell--empty {
  visibility: hidden;
  pointer-events: none;
  min-height: 0;
  padding: 0;
  border: none;
}

.article-pager__dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.article-pager__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.prose {
  max-width: var(--max);
  font-size: 1.0625rem;
}

.page-article .prose > p:first-of-type {
  display: flow-root;
}

.page-article .prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.15rem;
  line-height: 0.82;
  padding: 0.06em 0.14em 0 0;
  font-weight: 700;
  color: #3d4d66;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.42rem;
  margin: 2.25rem 0 0.9rem;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.5rem);
  color: var(--ink);
}

.prose h3 {
  font-size: 1.18rem;
  margin: 1.6rem 0 0.55rem;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.5rem);
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose a {
  font-weight: 600;
  color: var(--accent-mid);
}

.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--accent-mid);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem 1.1rem 1.25rem;
  border-left: 3px solid #4a5d78;
  background: rgba(44, 58, 78, 0.06);
  border-radius: 0 2px 2px 0;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.03rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-suceso__dl dd a {
  color: var(--accent-mid);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.article-suceso__dl dd a:hover {
  color: var(--accent);
  border-bottom-color: rgba(139, 45, 18, 0.35);
}

.article-related {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-related__head {
  margin-bottom: 1.25rem;
}

.article-related__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.article-related__lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36rem;
}

.article-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .article-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  min-height: 8.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: linear-gradient(165deg, #fffefb 0%, var(--card) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(20, 22, 28, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.article-related__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-mid), #4a5d78);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.article-related__card:hover {
  border-color: rgba(44, 58, 78, 0.2);
  box-shadow: 0 10px 32px rgba(20, 22, 28, 0.1);
  transform: translateY(-3px);
}

.article-related__card:hover::before {
  opacity: 1;
}

.article-related__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.article-related__cat {
  color: var(--accent-mid);
}

.article-related__geo {
  color: var(--muted);
}

.article-related__card-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.article-related__excerpt {
  font-size: 0.84rem;
  line-height: 1.52;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-pager__legend {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ——— Cronología ——— */
.chronology-hero .chronology-code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(20, 16, 12, 0.06);
}

.chronology-json-hint {
  margin-top: 0.75rem;
}

.chronology-hub-toolbar {
  margin-top: 1.25rem;
  max-width: 28rem;
}

.chronology-hub-search {
  display: block;
}

.chronology-hub-search__input {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.chronology-hub-search__input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: rgba(90, 105, 130, 0.45);
}

.chronology-filter-empty {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.chronology-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.chronology-country-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 16, 12, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chronology-country-card:hover {
  border-color: rgba(44, 58, 78, 0.28);
  box-shadow: 0 4px 20px rgba(20, 22, 28, 0.08);
}

.chronology-country-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.chronology-country-card__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.chronology-country-card--empty {
  border-style: dashed;
  opacity: 0.92;
}

.chronology-country-card__count--zero {
  opacity: 0.72;
}

.chronology-hub__hint {
  max-width: 44rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.chronology-filter-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: middle;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  background: rgba(44, 58, 78, 0.1);
  color: var(--ink);
}

.chronology-facets {
  margin-bottom: 2rem;
}

.chronology-facets__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.chronology-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chronology-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.chronology-pill:hover {
  border-color: rgba(44, 58, 78, 0.25);
}

.chronology-pill.is-active {
  border-color: rgba(44, 58, 78, 0.45);
  background: rgba(44, 58, 78, 0.08);
}

.chronology-pill.is-muted {
  opacity: 0.45;
}

.chronology-pill__n {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(20, 16, 12, 0.06);
  padding: 0.1em 0.45em;
  border-radius: 999px;
}

.chronology-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(74, 93, 120, 0.35);
  margin-left: 0.5rem;
}

.chronology-timeline__item {
  position: relative;
  padding: 0 0 1.5rem 1.35rem;
}

.chronology-timeline__marker {
  position: absolute;
  left: -0.55rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5d78;
  box-shadow: 0 0 0 3px var(--paper);
}

.chronology-timeline__card {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.chronology-timeline__when {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.chronology-timeline__era {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--accent-mid);
}

.chronology-timeline__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.chronology-timeline__card h3 a {
  color: inherit;
  text-decoration: none;
}

.chronology-timeline__card h3 a:hover {
  color: var(--accent-mid);
}

.chronology-timeline__card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ——— Personajes / glosario / enlaces en artículos ——— */
.prose .gloss-link,
.prose .hv-person {
  color: var(--accent-warm, #c9a227);
  text-decoration: underline dotted;
  text-underline-offset: 0.15em;
}

.prose .gloss-link:hover,
.prose .hv-person:hover {
  color: var(--accent-warm-hover, #ddb33d);
}

.glossary-hub-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  columns: 2;
  gap: 0.35rem 1.25rem;
}

@media (min-width: 720px) {
  .glossary-hub-list {
    columns: 3;
  }
}

.glossary-hub-list__item {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.glossary-hub-list__item a {
  font-weight: 600;
}

/* ——— Ficha de personaje (lectura tipo artículo) ——— */
.personaje-shell {
  min-width: 0;
}

.personaje-hero {
  position: relative;
  margin-bottom: 0;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.75rem) clamp(1.45rem, 3vw, 1.9rem);
  padding-left: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(44, 58, 78, 0.12);
  background:
    linear-gradient(125deg, rgba(255, 254, 251, 1) 0%, var(--card) 42%, rgba(241, 246, 252, 0.55) 100%),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.personaje-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-mid), rgba(139, 45, 18, 0.28));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0.9;
}

.personaje-hero .archive-hero__crumb {
  margin-bottom: 0.65rem;
}

.personaje-hero .archive-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  margin-bottom: 0.35rem;
  line-height: 1.12;
}

.personaje-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 1rem;
}

.personaje-hero__meta .meta-chip {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  font-weight: 600;
}

.personaje-dek {
  margin: clamp(1.25rem, 3vw, 2rem) auto clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.15rem, 2.5vw, 1.55rem) clamp(1.25rem, 3vw, 1.65rem);
  max-width: min(60rem, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(44, 58, 78, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.95) 0%, rgba(252, 250, 247, 0.5) 100%);
  box-shadow: 0 1px 0 rgba(44, 58, 78, 0.05);
}

.personaje-dek__lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.68;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.page-personaje #personaje-body.prose {
  width: 100%;
  max-width: min(60rem, 100%);
  margin-inline: auto;
  font-size: 1.075rem;
  line-height: 1.84;
  letter-spacing: 0.013em;
  padding-block: 0.25rem 0.75rem;
}

.page-personaje #personaje-body.prose p {
  margin: 0 0 1.35rem;
}

.page-personaje #personaje-body.prose h2 {
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(44, 58, 78, 0.12);
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.8vw, 1.42rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-personaje #personaje-body.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.08rem, 2.2vw, 1.2rem);
  line-height: 1.35;
}

.page-personaje #personaje-body.prose ul,
.page-personaje #personaje-body.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.55rem;
}

.page-personaje #personaje-body.prose li {
  margin-bottom: 0.55rem;
}

.page-personaje #personaje-body.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.2rem 1.35rem 1.2rem 1.4rem;
}

.page-personaje #personaje-body.prose > p:first-of-type {
  display: flow-root;
}

.page-personaje #personaje-body.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 2.85rem;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  font-weight: 700;
  color: rgba(74, 93, 120, 0.92);
}

.page-personaje #personaje-body.prose a.hv-person,
.page-personaje #personaje-body.prose a.gloss-link {
  font-weight: 600;
}

.page-personaje .personaje-related {
  max-width: min(60rem, 100%);
  margin-inline: auto;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.glosario-definition {
  margin-top: 0.5rem;
}

@media (max-width: 36rem) {
  .main {
    padding-top: clamp(1.35rem, 4vw, 2.25rem);
    padding-bottom: max(clamp(2.75rem, 8vw, 5rem), env(safe-area-inset-bottom, 0px));
  }

  .hero--feature {
    padding: clamp(1.85rem, 6vw, 2.65rem) clamp(1rem, 4vw, 1.35rem);
    border-radius: var(--radius);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-home,
  .hero-actions .btn-home--ghost,
  .hero-actions .btn-home--surface {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
  }

  .header-search__input {
    min-height: 2.75rem;
  }

  .nav-main a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .article-list--mag {
    margin-left: 0;
    margin-right: 0;
    padding: clamp(1.2rem, 3vw, 1.65rem) clamp(0.85rem, 3vw, 1.15rem);
  }

  .site-footer {
    padding-bottom: max(1.75rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
  }

  .glossary-hub-list {
    columns: 1;
  }

  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0;
    row-gap: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .breadcrumbs .sep {
    margin: 0 0.3rem;
  }

  .article-hero__frame {
    max-height: min(58vh, 22rem);
    aspect-ratio: 16 / 9;
  }

  .article-title {
    font-size: clamp(1.55rem, 6.5vw, 2.15rem);
    padding-bottom: 0.65rem;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .article-meta-row {
    gap: 0.4rem;
  }

  .meta-chip {
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
  }

  .article-suceso__dl {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }

  .article-suceso__dl dt {
    margin-top: 0.65rem;
  }

  .article-suceso__dl dt:first-of-type {
    margin-top: 0;
  }

  .article-suceso__dl dd {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--rule-editorial);
  }

  .article-suceso__dl dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .archive-hero {
    padding: 1.05rem 1rem 1.15rem;
  }

  .archive-filters {
    padding: 0.95rem 1rem;
  }

  .article-share__row {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .article-pager__cell {
    min-height: 3.25rem;
    padding: 0.95rem 1rem;
  }

  .page-article .prose > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    font-weight: 700;
    color: var(--ink);
  }

  .page-personaje #personaje-body.prose > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    font-weight: 700;
    color: var(--ink);
  }

  .prose {
    font-size: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-article #article-body.prose {
    overflow-x: visible;
  }

  .page-personaje #personaje-body.prose {
    overflow-x: visible;
  }

  .personaje-hero {
    padding: 1.05rem 1rem 1.2rem;
    padding-left: 1.15rem;
  }

  .prose h2 {
    font-size: 1.28rem;
    margin: 1.85rem 0 0.75rem;
  }

  .prose h3 {
    font-size: 1.08rem;
    margin: 1.35rem 0 0.45rem;
  }

  .prose blockquote {
    margin: 1.15rem 0;
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
  }

  .prose table {
    font-size: 0.9rem;
    max-width: none;
  }

  .chronology-country-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.5rem 0 2.25rem;
  }

  .chronology-pill {
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
  }

  .chronology-timeline__list {
    margin-left: 0.35rem;
    border-left-width: 2px;
  }

  .chronology-timeline__item {
    padding: 0 0 1.25rem 1.1rem;
  }

  .footer-nav a {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .cookie-banner__actions--main {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Páginas legales ——— */
.legal-doc__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-doc__lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52rem;
}

.legal-doc__section {
  margin-bottom: 1.75rem;
}

.legal-doc__section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.legal-doc__section ul {
  padding-left: 1.25rem;
}

.legal-placeholder {
  padding: 0.05em 0.25em;
  border-radius: 2px;
  background: rgba(232, 100, 42, 0.1);
  border: 1px dashed rgba(139, 45, 18, 0.35);
  font-weight: 600;
  color: var(--ink-soft);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  font-weight: 700;
  background: rgba(44, 58, 78, 0.06);
  color: var(--ink-soft);
}

.legal-doc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.legal-doc__cookie-settings {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent-mid);
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc__cookie-settings:hover {
  color: var(--accent);
}

.legal-doc__cookie-settings--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
}

.legal-doc__cookie-settings--inline:hover {
  border-color: rgba(139, 45, 18, 0.35);
  color: var(--accent-mid);
}

.footer-legal__btn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(175, 190, 215, 0.92);
  background: transparent;
  border: 1px solid rgba(120, 140, 170, 0.35);
  border-radius: 2px;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.footer-legal__btn:hover {
  color: #fff;
  border-color: rgba(180, 195, 220, 0.55);
}

/* ——— Portada: exploración ——— */
.explore-hub {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fffefb 0%, var(--cream) 55%, #faf6ef 100%);
  box-shadow: var(--shadow);
}

.explore-hub__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.explore-hub__lead {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 44rem;
}

.explore-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .explore-hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .explore-hub__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.explore-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-editorial);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.explore-hub__card:hover {
  border-color: rgba(44, 58, 78, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.explore-hub__icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--accent-mid);
  opacity: 0.85;
}

.explore-hub__card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.explore-hub__card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ——— 404: búsqueda ——— */
.error-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.error-search__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  min-height: 2.65rem;
  font: inherit;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
}

.error-search__btn {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  min-height: 2.65rem;
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--cta-slate);
  color: #f4f6f9;
  cursor: pointer;
}

.error-search__btn:hover {
  background: var(--cta-slate-hover);
}

/* ——— Artículo: lectura + índice ——— */
.article-reading {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 56rem) {
  .article-reading {
    display: grid;
    grid-template-columns: minmax(11.5rem, 13.25rem) minmax(0, 1fr);
    gap: 1.75rem 2.25rem;
    align-items: start;
  }

  /*
   * Si #article-toc está [hidden], no participa en el grid y solo queda .article-body.
   * Sin esta regla, el cuerpo se coloca en la columna 1 (~13rem) y el texto queda ilegible.
   */
  .article-reading .article-body {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .article-toc:not([hidden]) ~ .article-body {
    grid-column: 2;
  }

  .article-toc {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.65rem);
    max-height: calc(100dvh - var(--header-h) - 2.5rem);
    overflow-y: auto;
  }
}

.article-toc[hidden] {
  display: none !important;
}

.article-toc {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(44, 58, 78, 0.12);
  background: linear-gradient(165deg, #fffefb 0%, rgba(252, 249, 244, 0.95) 100%);
  box-shadow: 0 2px 14px rgba(20, 22, 28, 0.05);
}

.article-toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.35;
}

.article-toc__item {
  margin-bottom: 0.4rem;
}

.article-toc__item--sub {
  padding-left: 0.65rem;
  border-left: 2px solid rgba(74, 93, 120, 0.25);
  margin-left: 0.15rem;
}

.article-toc__list a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.article-toc__list a:hover {
  color: var(--accent-mid);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (min-width: 43rem) {
  #article-body h2,
  #article-body h3 {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.75rem);
  }
}

.article-back-top {
  position: fixed;
  z-index: 55;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.article-back-top:hover {
  background: var(--accent-mid);
  color: #fff;
  border-color: var(--accent-mid);
}

.article-back-top:active {
  transform: scale(0.96);
}

/* ——— Banner cookies (RGPD / ePrivacy) ——— */
.cookie-banner {
  position: fixed;
  z-index: 85;
  left: 0;
  right: 0;
  bottom: 0;
  padding: max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--chrome-border);
  background: rgba(18, 22, 28, 0.97);
  color: #e9ecf1;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.cookie-banner__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(200, 210, 225, 0.92);
}

.cookie-banner__desc a {
  color: #b8c8e8;
  font-weight: 600;
}

.cookie-banner__desc a:hover {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.85rem;
}

.cookie-banner__actions--panel {
  margin-top: 1rem;
}

.cookie-banner__btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  min-height: 2.65rem;
  border: 1px solid transparent;
}

.cookie-banner__btn--primary {
  background: #e8c14a;
  color: #1a1408;
  border-color: rgba(255, 255, 255, 0.12);
}

.cookie-banner__btn--primary:hover {
  background: #f0d060;
}

.cookie-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6f9;
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: rgba(210, 218, 232, 0.95);
  border-color: rgba(140, 160, 190, 0.35);
}

.cookie-banner__btn--ghost:hover {
  border-color: rgba(200, 210, 230, 0.55);
  color: #fff;
}

.cookie-banner__panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner__panel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: rgba(190, 200, 218, 0.9);
}

.cookie-banner__fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.cookie-banner__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(215, 222, 235, 0.95);
  cursor: pointer;
}

.cookie-banner__toggle input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Evita desplazamientos por hover en dispositivos sin puntero fino */
@media (hover: none) {
  .category-topic-card:hover,
  .category-subcard:hover,
  .explore-hub__card:hover,
  .article-related__card:hover,
  .chronology-country-card:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .header-search,
  .header-nav-toggle,
  .header-nav-backdrop,
  .nav-main,
  .breadcrumbs,
  .read-progress-track,
  .article-share,
  .article-pager,
  .cookie-banner,
  .article-back-top {
    display: none !important;
  }

  body.site {
    background: #fff;
  }

  .main {
    padding: 0;
  }

  .article-hero {
    max-height: none;
  }

  .article-hero__frame {
    max-height: none;
    aspect-ratio: auto;
  }

  .article-hero img {
    max-height: none;
    height: auto;
  }

  .article-jump-wrap {
    display: none !important;
  }

  .page-article .prose > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    padding: 0;
    color: inherit;
  }
}
