:root {
  --ink: #082f49;
  --ink-soft: #365469;
  --navy: #06263c;
  --teal: #00a7aa;
  --teal-dark: #007f8c;
  --mint: #d8f1eb;
  --sky: #e4f5f5;
  --cream: #fbfaf5;
  --paper: #f4f6f4;
  --coral: #ec806d;
  --line: rgba(8, 47, 73, 0.14);
  --shadow: 0 24px 65px rgba(7, 44, 63, 0.12);
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
.article-media { width: 100%; max-width: 480px; margin: 24px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5); }
.article-media iframe { display: block; width: 100%; border: 0; border-radius: 6px; }
.article-media-youtube iframe { aspect-ratio: 16 / 9; }
.article-media-spotify iframe { height: 152px; }
.article-media figcaption { margin-top: 7px; color: var(--ink-soft); font-size: 11px; }
.article-complementary { margin-top: 20px; padding: 22px; border: 1px solid #e2c993; border-left: 4px solid #bd862e; border-radius: 8px; background: #fff3d9; overflow-wrap: anywhere; min-width: 0; }
.article-complementary h2 { margin-bottom: 16px; font-size: 15px; line-height: 1.3; }
.article-complementary p { margin-bottom: 12px; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.article-complementary p:last-child { margin-bottom: 0; }
.article-complementary a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-complementary-wide { grid-column: 1 / -1; width: 100%; margin-top: 0; }
@media print {
  .article-reading .article-layout > aside { display: contents !important; }
  .article-complementary {
    display: block !important;
    margin: 10px 0;
    padding: 10px 12px;
    color: #111;
    background: #f0f7f5;
    border: 1px solid #b4cfc5;
    break-inside: auto;
  }
  .article-complementary h2 { margin: 0 0 8px; break-after: avoid; }
  .article-complementary p { margin: 0 0 6px; font-size: 11px; line-height: 1.45; orphans: 2; widows: 2; }
}
@media print { .article-media { display: none !important; } }
html { scroll-behavior: smooth; }
.clipboard-helper { position: fixed; opacity: 0; pointer-events: none; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--body); line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: calc(100% - 64px); margin: 0 auto; }
.print-edition-header { display: none; }

.topline { color: #e6f6f3; background: var(--navy); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline-date { color: rgba(230, 246, 243, .65); }
.status-dot { width: 6px; height: 6px; display: inline-block; margin: 0 7px 1px 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,167,170,.15); }

.latest-news-ticker { display: flex; align-items: stretch; min-height: 42px; color: white; background: #000; }
.latest-news-ticker-label { display: flex; align-items: center; flex: 0 0 auto; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.28); color: #ffd447; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.latest-news-ticker-viewport { flex: 1 1 0; min-width: 0; overflow: hidden; }
.latest-news-ticker-track { display: flex; align-items: center; width: max-content; min-height: 42px; animation: latest-news-scroll 64s linear infinite; }
.latest-news-ticker-group { display: flex; align-items: center; flex: 0 0 auto; padding-right: 56px; }
.latest-news-ticker-item { padding: 0 16px; color: white; font-size: 13px; font-weight: 600; white-space: nowrap; }
.latest-news-ticker-date { display: flex; align-items: center; flex: 0 0 auto; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.28); color: #ffd447; font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.latest-news-ticker-item:hover, .latest-news-ticker-item:focus-visible { color: #b5ffed; text-decoration: underline; text-underline-offset: 3px; }
.latest-news-ticker-separator { color: #8de0cf; font-size: 18px; }
.latest-news-ticker-placeholder { padding: 0 18px; color: rgba(255,255,255,.75); font-size: 13px; }
@keyframes latest-news-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .latest-news-ticker-track { animation-duration: 128s; }
}
@media screen and (max-width: 640px) {
  .latest-news-ticker-label { padding: 0 12px; font-size: 9px; }
  .latest-news-ticker-item { padding: 0 11px; font-size: 12px; }
  .latest-news-ticker-date { padding: 0 10px; font-size: 8px; letter-spacing: .03em; }
}

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251,250,245,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 13px; background-color: white; background-image: url("assets/La_Red_Cientifica.jpeg"); background-repeat: no-repeat; background-position: center top; background-size: 43px auto; box-shadow: 0 7px 15px rgba(8,47,73,.12); }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.brand-section { color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 31px; }
.network-menu { position: relative; }
.network-menu summary { display: block; cursor: pointer; list-style: none; }
.network-menu summary::-webkit-details-marker { display: none; }
.network-menu summary span { margin-left: 5px; }
.network-dropdown { position: absolute; top: 100%; right: 0; z-index: 50; min-width: 240px; padding: 8px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.network-dropdown a { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--ink); font-size: 13px; }
.network-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.network-dropdown a[href*="instagram.com"] .network-icon { color: #c13584; }
.network-dropdown a[href*="facebook.com"] .network-icon { color: #1877f2; }
.network-dropdown a[href*="reddit.com"] .network-icon { color: #ff4500; }
.network-dropdown a[href*="linkedin.com"] .network-icon { color: #0a66c2; }
.network-dropdown a:hover, .network-dropdown a:focus-visible { background: var(--mint); }
.network-menu summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
@media (max-width: 900px) {
  .network-dropdown { position: static; min-width: 0; box-shadow: none; }
}

/* Contacto: accesos horizontales con iconos y nombres. */
.network-dropdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 570px;
  max-width: calc(100vw - 32px);
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
}
.network-menu:not([open]) .network-dropdown { display: none; }
.network-dropdown a {
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 82px;
  padding: 12px 6px;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
}
.network-dropdown .network-icon { width: 25px; height: 25px; flex: 0 0 25px; }
@media screen and (max-width: 980px) {
  .home-header .main-nav, .article-nav { position: relative; inset: auto; }
  .network-menu { position: static; }
  .network-dropdown { position: absolute; top: 100%; right: 0; width: min(570px, 100%); box-shadow: var(--shadow); }
}
@media screen and (max-width: 640px) {
  .network-dropdown { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nav-link { position: relative; color: var(--ink-soft); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { position: absolute; right: 0; bottom: -11px; left: 0; height: 2px; content: ""; background: var(--teal); }
.search-trigger { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: all .2s ease; }
.search-trigger:hover { color: white; background: var(--ink); border-color: var(--ink); }
.search-trigger svg, .search-field svg { width: 17px; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 11px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; cursor: pointer; }
.menu-toggle-label { margin: 0; font-size: 13px; font-weight: 700; }
.menu-toggle-icon { display: grid; width: 24px; height: 18px; gap: 4px; margin: 0; background: transparent; }
.menu-toggle-icon span { display: block; width: 24px; height: 2px; margin: 0; background: currentColor; transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }

.search-panel { max-height: 0; overflow: hidden; background: var(--sky); transition: max-height .35s ease; }
.search-panel.open { max-height: 180px; }
.search-panel-inner { padding: 24px 0 27px; }
.search-label { display: block; margin-bottom: 9px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid rgba(8,47,73,.2); border-radius: 7px; background: rgba(255,255,255,.72); }
.search-field input { width: 100%; height: 47px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-close { padding: 5px 0 5px 13px; border: 0; border-left: 1px solid var(--line); color: var(--ink-soft); background: transparent; font-size: 11px; cursor: pointer; }
.search-result { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; }

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before { position: absolute; top: -230px; right: -180px; width: 690px; height: 690px; border: 1px solid rgba(0,167,170,.18); border-radius: 50%; content: ""; }
.hero::after { position: absolute; top: -120px; right: -55px; width: 510px; height: 510px; border: 1px solid rgba(8,47,73,.09); border-radius: 50%; content: ""; }
.hero-orbit { position: absolute; z-index: 0; border: 1px solid rgba(0,167,170,.12); border-radius: 50%; pointer-events: none; }
.orbit-one { top: 58px; left: -150px; width: 360px; height: 360px; }
.orbit-two { bottom: -190px; left: 48%; width: 410px; height: 410px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(450px, .96fr); align-items: center; gap: 7%; min-height: 604px; padding: 67px 0 70px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.eyebrow-dark { color: var(--teal-dark); }
.eyebrow-line { width: 30px; height: 1px; display: inline-block; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }
h1 { max-width: 630px; margin-bottom: 23px; font-size: clamp(50px, 6.4vw, 82px); font-weight: 600; letter-spacing: -.075em; line-height: .98; }
h1 em, .newsletter-box h2 em { color: var(--teal); font-style: normal; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 48px; padding: 0 21px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,47,73,.16); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: var(--teal-dark); }
.text-link, .read-story, .side-link, .source-card a { color: var(--ink); font-size: 12px; font-weight: 700; }
.text-link span, .read-story span, .side-link span, .source-card a span { display: inline-block; margin-left: 7px; color: var(--teal); font-size: 17px; transition: transform .2s ease; }
.text-link:hover span, .read-story:hover span, .side-link:hover span, .source-card a:hover span { transform: translate(3px,-2px); }
.hero-stats { display: flex; gap: 29px; margin-top: 63px; }
.hero-stats > div { display: flex; align-items: center; gap: 10px; padding-right: 29px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { padding-right: 0; border-right: 0; }
.hero-stats strong { color: var(--teal-dark); font-family: var(--display); font-size: 25px; line-height: 1; }
.hero-stats span { color: var(--ink-soft); font-size: 10px; line-height: 1.25; text-transform: uppercase; }
.hero-visual { position: relative; min-height: 475px; }
.hero-image-frame { position: absolute; top: 17px; right: 9%; bottom: 25px; left: 5%; overflow: hidden; border-radius: 130px 130px 12px 12px; background: var(--mint); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76); }
.image-wash { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,47,73,.13), transparent 47%, rgba(0,167,170,.29)); mix-blend-mode: multiply; }
.image-caption { position: absolute; right: 22px; bottom: 20px; left: 22px; display: flex; justify-content: space-between; color: white; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid rgba(8,47,73,.09); border-radius: 6px; box-shadow: 0 12px 30px rgba(8,47,73,.13); color: var(--ink); background: rgba(255,255,255,.93); font-size: 10px; line-height: 1.35; }
.floating-note strong { font-family: var(--display); font-size: 12px; }
.note-a { top: 33px; left: -6px; }
.note-b { right: -2px; bottom: 3px; padding-right: 21px; }
.note-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 14px; }
.mini-ring { width: 26px; height: 26px; display: inline-block; border: 5px solid var(--teal); border-right-color: var(--ink); border-radius: 50%; }
.hero-scribble { position: absolute; right: -9px; top: 150px; color: var(--teal); font-family: var(--display); font-size: 54px; font-weight: 600; transform: rotate(13deg); }

.topic-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #eff7f2; }
.topic-strip-inner { min-height: 71px; display: flex; align-items: center; gap: 11px; }
.topic-intro { margin-right: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.topic-pill { padding: 8px 14px; border: 1px solid rgba(0,127,140,.2); border-radius: 999px; color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.topic-end { margin-left: auto; color: var(--ink-soft); font-size: 11px; }
.topic-end span { margin-left: 9px; color: var(--teal); font-size: 17px; }

.section-pad { padding: 114px 0; }
.latest-section { background: var(--cream); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 14px; }
h2 { margin-bottom: 0; font-size: clamp(39px, 4vw, 58px); font-weight: 600; letter-spacing: -.065em; line-height: 1; }
#latest-title { font-size: calc(clamp(39px, 4vw, 58px) - 2px); }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter-button { padding: 8px 12px; border: 0; border-radius: 3px; color: var(--ink-soft); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.active { color: var(--ink); background: var(--mint); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 31px; align-items: start; }
.stories-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.story-card { display: grid; grid-template-columns: minmax(245px, 32%) minmax(0, 68%); overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: white; transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease; }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card-featured { grid-column: auto; grid-template-columns: minmax(290px, 39%) minmax(0, 61%); }
.story-image { position: relative; min-height: 180px; overflow: hidden; background: var(--mint); }
.story-card-featured .story-image { min-height: 205px; }
.story-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(160deg, transparent 48%, rgba(8,47,73,.28)); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-image img { transform: scale(1.05); }
.story-tag { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 9px; border-radius: 3px; color: white; background: var(--teal-dark); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-featured-label { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; color: white; background: var(--coral); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-card-featured .story-tag { background: var(--coral); }
.story-body { padding: 19px 22px 21px; }
.story-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #79909d; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.story-meta span:first-child { display: inline-grid; min-width: 28px; min-height: 24px; place-items: center; padding: 2px 5px; border-radius: 3px; color: var(--teal-dark); background: var(--mint); font-family: var(--display); font-size: 14px; }
.story-card-featured .story-meta span:first-child { color: white; background: var(--coral); }
.meta-dot { width: 4px; height: 4px; margin-left: 1px; border-radius: 50%; background: var(--coral); }
.story-body h3 { max-width: 630px; margin-bottom: 10px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.05em; line-height: 1.08; }
.story-card:not(.story-card-featured) .story-body h3 { font-size: 22px; }
.story-excerpt { max-width: 515px; margin-bottom: 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.read-story { padding: 0; border: 0; background: transparent; cursor: pointer; }
.side-column { display: grid; gap: 18px; }
.side-card { padding: 24px; border: 1px solid var(--line); background: white; }
.quote-card { position: relative; overflow: hidden; min-height: 201px; background: var(--ink); }
.quote-card::after { position: absolute; right: -35px; bottom: -72px; width: 165px; height: 165px; border: 1px solid rgba(0,167,170,.55); border-radius: 50%; content: ""; }
.quote-mark { position: absolute; top: 12px; right: 23px; color: var(--teal); font-family: Georgia, serif; font-size: 68px; line-height: 1; }
.quote-card p { position: relative; z-index: 1; max-width: 190px; margin: 31px 0 24px; color: #ecfbf6; font-family: var(--display); font-size: 18px; letter-spacing: -.045em; line-height: 1.18; }
.quote-caption { position: relative; z-index: 1; color: rgba(230,246,243,.62); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.agenda-card { padding-bottom: 20px; }
.side-card-title { display: flex; justify-content: space-between; margin-bottom: 19px; font-family: var(--display); font-size: 16px; font-weight: 600; }
.side-number { color: var(--teal); font-size: 19px; }
.edition-list { padding: 0; margin: 0; list-style: none; }
.edition-list li { display: grid; grid-template-columns: 26px 1fr; gap: 9px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; line-height: 1.42; }
.list-index { color: var(--coral); font-family: var(--display); font-size: 13px; font-weight: 600; }
.archive-card { background: #f1f2f0; }
.archive-intro { margin: -8px 0 12px; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-list { padding: 0; margin: 0; overflow: visible; list-style: none; }
.archive-list li { padding: 11px 0; border-top: 1px solid rgba(8,47,73,.14); }
.archive-list a { display: block; color: var(--ink); font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.25; }
.archive-list a:hover { color: var(--teal-dark); }
.archive-list li span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; line-height: 1.35; }
.archive-empty { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.side-link { display: inline-block; margin-top: 13px; }
.source-card { background: var(--mint); }
.source-icon { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 19px; border-radius: 50%; color: white; background: var(--teal-dark); font-size: 16px; }
.source-label { margin-bottom: 5px; color: var(--teal-dark); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.source-card h3 { margin-bottom: 9px; font-size: 24px; letter-spacing: -.05em; }
.source-card p:not(.source-label) { margin-bottom: 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.source-card a, .source-credit { font-size: 11px; }
.source-email { display: block; margin-top: 9px; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.source-credit { color: var(--teal-dark); font-weight: 700; }
.no-results { padding: 64px 15px; border: 1px dashed rgba(0,127,140,.35); text-align: center; }
.no-results > span { color: var(--teal); font-size: 27px; }
.no-results h3 { margin: 12px 0 5px; font-size: 21px; }
.no-results p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.radio-banner { width: 80%; margin: 56px auto 0; }
.radio-banner-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 12px 30px rgba(8,47,73,.08); transition: transform .25s ease, box-shadow .25s ease; }
.radio-banner-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.radio-banner-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.radio-banner img { width: 100%; height: auto; }

.editorial-section { background: #eef6f2; }
.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 9%; }
.editorial-visual { position: relative; min-height: 415px; }
.editorial-photo { position: absolute; top: 10px; right: 20px; bottom: 0; left: 0; overflow: hidden; border-radius: 8px 100px 8px 8px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.editorial-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(30deg, rgba(8,47,73,.48), transparent 62%); }
.editorial-sticker { position: absolute; z-index: 1; right: -12px; bottom: -19px; display: grid; width: 111px; height: 111px; place-content: center; border-radius: 50%; color: white; background: var(--coral); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.05; text-align: center; transform: rotate(10deg); }
.editorial-sticker span { color: #ffe1cf; font-size: 17px; }
.editorial-copy { max-width: 570px; }
.editorial-copy h2 { margin-bottom: 26px; }
.editorial-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.editorial-copy strong { color: var(--ink); }
.editorial-signature { display: flex; align-items: center; gap: 13px; margin-top: 30px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.editorial-signature strong { font-family: var(--display); font-size: 12px; }
.signature-line { width: 42px; height: 1px; background: var(--teal); }

.edition-main { background: var(--cream); }
.edition-hero { padding: 58px 0 68px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--cream) 0%, #eef8f4 100%); }
.edition-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 8%; }
.edition-hero .article-back { margin-bottom: 30px; }
.edition-issue-card { padding: 28px; border: 2px solid var(--teal-dark); border-radius: 8px; background: var(--mint); box-shadow: 0 17px 35px rgba(8,47,73,.12); }
.edition-card-label { display: block; margin-bottom: 14px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.edition-issue-card strong { display: block; color: var(--ink); font-family: var(--display); font-size: 24px; letter-spacing: -.045em; line-height: 1.1; }
.edition-issue-card p { margin: 18px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.edition-principles { padding: 82px 0 100px; background: var(--paper); }
.edition-principles > .container > h2 { max-width: 560px; margin-bottom: 33px; }
.edition-principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.edition-principle { min-height: 190px; padding: 24px; border-top: 3px solid var(--teal); background: white; box-shadow: 0 11px 26px rgba(8,47,73,.07); }
.edition-principle strong { color: var(--coral); font-family: var(--display); font-size: 22px; }
.edition-principle h3 { margin: 25px 0 9px; font-size: 23px; }
.edition-principle p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

/* La noticia destacada funciona como portada con texto superpuesto. */
.story-card-featured .story-card-link { position: relative; display: block; min-height: 330px; }
.story-card-featured .story-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; min-height: 0 !important; }
.story-card-featured .story-image img { min-height: 100%; }
.story-card-featured .story-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; height: 100%; padding: 32px 34px 30px; border-left: 0; background: linear-gradient(180deg, rgba(8,47,73,.02) 12%, rgba(8,47,73,.25) 38%, rgba(8,47,73,.94) 100%); }
.story-card-featured .story-meta { color: rgba(255,255,255,.78); }
.story-card-featured .story-body h3 { max-width: 680px; color: white; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.story-card-featured .story-excerpt { max-width: 650px; color: rgba(255,255,255,.86); text-shadow: 0 1px 10px rgba(0,0,0,.28); }
.story-card-featured .read-story { color: white; }
.story-card-featured .read-story span { color: #b5ffed; }

.newsletter-section { padding: 82px 0; color: var(--ink); background: #dceffc; }
.podcast-banner-section { padding: 56px 0; background: var(--cream); }
.podcast-banner { display: block; width: 80%; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 12px 30px rgba(8,47,73,.08); transition: transform .25s ease, box-shadow .25s ease; }
.podcast-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.podcast-banner:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.podcast-banner img { width: 100%; height: auto; }
.newsletter-box { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 12%; }
.newsletter-section .eyebrow { color: var(--teal-dark); }
.newsletter-box h2 { font-size: clamp(30px, 3.2vw, 44px); }
.newsletter-box h2 em { color: var(--teal-dark); }
.newsletter-form { padding-bottom: 5px; }
.subscription-intro { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }
.subscription-page { background: #dceffc; }
.subscription-embed { display: block; margin-left: auto; margin-right: auto; max-width: 100%; border: 0; }
.subscription-fallback { margin: 20px 0 0; text-align: center; font-size: 14px; }
.subscription-fallback a { color: var(--ink); text-decoration: underline; }
.newsletter-section .form-note { color: var(--ink-soft); font-size: 12px; }
.newsletter-section .subscription-button {
  min-height: 56px;
  padding: 0 30px;
  border: 2px solid #082f49;
  border-radius: 8px;
  color: white;
  background: #082f49;
  box-shadow: 0 6px 0 rgba(8, 47, 73, .18), 0 12px 24px rgba(8, 47, 73, .16);
  font-size: 17px;
  font-weight: 700;
}
.newsletter-section .subscription-button:hover { background: #064563; border-color: #064563; }
.newsletter-section .subscription-button:focus-visible { outline: 3px solid #082f49; outline-offset: 5px; }
.newsletter-section .subscription-button:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(8, 47, 73, .18); }
.newsletter-form label { display: block; margin-bottom: 12px; color: #bdd9d5; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.email-field { display: flex; border-bottom: 1px solid rgba(234,249,245,.48); }
.email-field input { width: 100%; height: 48px; padding: 0; border: 0; outline: 0; color: white; background: transparent; font-size: 15px; }
.email-field input::placeholder { color: rgba(234,249,245,.42); }
.email-field button { display: flex; align-items: center; gap: 16px; padding: 0 0 0 18px; border: 0; color: #77ddd5; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.email-field button span { font-size: 19px; transition: transform .2s ease; }
.email-field button:hover span { transform: translateX(4px); }
.form-note, .form-success { margin: 11px 0 0; color: rgba(234,249,245,.5); font-size: 10px; }
.form-success { color: #77ddd5; }

.site-footer { padding: 59px 0 23px; color: #dcefeb; background: #061f31; }
.footer-grid { display: grid; grid-template-columns: 1.7fr .8fr .9fr 1.35fr; gap: 35px; padding-bottom: 47px; }
.footer-brand { display: flex; align-items: center; gap: 17px; }
.footer-logos { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.footer-logo-wrap { width: 53px; height: 53px; overflow: hidden; flex: 0 0 auto; border-radius: 15px; background: white; }
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-network { border-radius: 10px; }
.footer-editorial { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.footer-editorial .footer-note { min-width: 0; }
.footer-editorial .footer-logo-network, .article-page .footer-bottom > .footer-logo-network { margin-left: auto; justify-self: end; }
@media (max-width: 980px) {
  .footer-editorial { grid-column: 1 / -1; }
}
.footer-brand p { margin: 0; color: rgba(220,239,235,.68); font-size: 13px; line-height: 1.4; }
.footer-supplement-link { font-size: 1.25em; color: inherit; }
.footer-supplement-link:hover, .footer-supplement-link:focus-visible { color: #fff; text-decoration: underline; }
.footer-links { display: grid; align-content: start; gap: 8px; font-size: 13px; }
.footer-links span { margin-bottom: 7px; color: #77ddd5; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer-links a { color: rgba(220,239,235,.68); transition: color .2s ease; }
.footer-links a:hover { color: white; }
.footer-network-menu { position: relative; width: fit-content; font-size: 13px; }
.footer-network-menu > summary { display: flex; align-items: center; gap: 7px; min-height: 32px; color: rgba(220,239,235,.68); cursor: pointer; list-style: none; }
.footer-network-menu > summary::-webkit-details-marker { display: none; }
.footer-network-menu > summary > span { margin: 0; color: inherit; font-size: 9px; }
.footer-network-menu > summary:hover, .footer-network-menu > summary:focus-visible { color: white; }
.footer-network-menu > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.footer-network-dropdown { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: min(220px, calc(100vw - 64px)); padding: 6px; border: 1px solid rgba(220,239,235,.2); border-radius: 6px; background: #082f49; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.footer-network-menu:not([open]) > .footer-network-dropdown { display: none; }
.site-footer .footer-network-dropdown a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 3px; color: #dcefeb; font-size: 13px; }
.site-footer .footer-network-dropdown a:hover, .site-footer .footer-network-dropdown a:focus-visible { color: white; background: rgba(255,255,255,.1); }
.footer-network-row { padding-top: 12px; }
@media print { .footer-network-menu { display: none !important; } }
.footer-note { display: flex; gap: 11px; color: rgba(220,239,235,.58); font-size: 12px; line-height: 1.6; }
.footer-note p { margin: 0; }
.footer-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(220,239,235,.14); color: rgba(220,239,235,.42); font-size: 12px; }

[hidden] { display: none !important; }
.story-card.is-hidden { display: none; }
.stories-pagination { padding: 24px 0; text-align: center; }
.stories-pagination[hidden] { display: none; }
.stories-pagination p { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }
.stories-pagination button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 980px) {
  .container { width: min(100% - 40px, 760px); }
  .nav-wrap { min-height: 75px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 75px; right: 20px; left: 20px; display: none; align-items: stretch; gap: 0; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: rgba(251,250,245,.98); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .nav-link { padding: 12px 9px; border-bottom: 1px solid var(--line); }
  .nav-link.active::after { bottom: 0; left: 9px; width: 30px; }
  .search-trigger { margin: 14px 9px 3px; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; padding-top: 60px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { width: min(100%, 550px); margin: 0 auto; }
  .content-layout { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-card { min-height: 100%; }
  .editorial-grid { grid-template-columns: 1fr; gap: 55px; }
  .editorial-visual { width: min(100%, 570px); }
  .newsletter-box { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-note { grid-column: span 3; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 34px); }
  .topline-inner { min-height: 30px; font-size: 9px; }
  .topline-date { display: none; }
  .brand-mark { width: 39px; height: 39px; background-size: 39px auto; }
  .brand-name { font-size: 15px; }
  .brand-section { font-size: 8px; }
  .hero-grid { min-height: auto; padding: 54px 0 62px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-stats { gap: 14px; margin-top: 48px; }
  .hero-stats > div { gap: 6px; padding-right: 13px; }
  .hero-stats strong { font-size: 20px; }
  .hero-stats span { font-size: 8px; }
  .hero-visual { min-height: 378px; }
  .hero-image-frame { right: 3%; left: 3%; border-radius: 94px 94px 10px 10px; }
  .floating-note { transform: scale(.86); }
  .note-a { left: -23px; }
  .note-b { right: -25px; }
  .hero-scribble { right: -14px; top: 117px; font-size: 43px; }
  .topic-strip-inner { min-height: 65px; overflow-x: auto; width: 100%; padding: 0 17px; }
  .topic-intro, .topic-end { display: none; }
  .topic-pill { flex: 0 0 auto; }
  .section-pad { padding: 75px 0; }
  .section-heading { display: block; margin-bottom: 33px; }
  .section-heading h2 { margin-bottom: 25px; }
  .filter-group { gap: 2px; }
  .filter-button { padding: 7px 9px; }
  .stories-grid { grid-template-columns: 1fr; gap: 18px; }
  .story-card, .story-card-featured { grid-template-columns: 1fr; display: block; }
  .story-image, .story-card-featured .story-image { min-height: 240px; }
  .story-body { padding: 23px 20px 24px; }
  .story-body h3, .story-card:not(.story-card-featured) .story-body h3 { font-size: 23px; }
  .story-meta { flex-wrap: wrap; row-gap: 4px; }
  .side-column { grid-template-columns: 1fr; gap: 15px; margin-top: 2px; }
  .side-card { padding: 21px; }
  .quote-card { min-height: 195px; }
  .editorial-visual { min-height: 315px; }
  .editorial-photo { right: 10px; border-radius: 8px 75px 8px 8px; }
  .editorial-sticker { right: -4px; width: 92px; height: 92px; font-size: 10px; }
  .editorial-sticker span { font-size: 14px; }
  .editorial-copy h2 { font-size: 40px; }
  .newsletter-section { padding: 67px 0; }
  .newsletter-box { grid-template-columns: 1fr; gap: 38px; }
  .newsletter-box h2 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-note { grid-column: span 2; }
  .footer-bottom { display: grid; gap: 7px; }
  .footer-logo-wrap { width: 45px; height: 45px; }
}

/* Tratamiento editorial de periódico */
:root { --serif: "Newsreader", Georgia, serif; }
h1, h2, h3, .story-body h3, .quote-card p { font-family: var(--serif); }
.story-card { display: block; overflow: hidden; border: 1px solid rgba(8,47,73,.17); border-radius: 0; border-top: 4px solid var(--ink); box-shadow: 0 10px 24px rgba(8,47,73,.08); }
.story-card-featured { border-color: rgba(236,128,109,.58); border-top-color: var(--coral); box-shadow: 0 15px 32px rgba(201,32,38,.14); }
.story-card:not(.story-card-featured) { border-top-color: var(--teal-dark); }
.story-card:not(.story-card-featured):hover { border-color: rgba(0,127,140,.42); }
.story-card-featured .story-body { background: linear-gradient(180deg, rgba(8,47,73,.02) 12%, rgba(8,47,73,.25) 38%, rgba(8,47,73,.94) 100%); }
.story-card-link { display: grid; grid-template-columns: minmax(245px, 32%) minmax(0, 68%); color: inherit; }
.story-card-featured .story-card-link { grid-template-columns: minmax(290px, 39%) minmax(0, 61%); }
.story-card:focus-within { outline: 2px solid var(--teal); outline-offset: 4px; }
.story-card-link:hover .read-story { color: var(--teal-dark); }
.story-card-link:hover .read-story span { transform: translate(3px, -2px); }
.story-body h3 { font-weight: 600; }
.story-card-featured { animation: featured-blink 1.35s ease-in-out infinite; }
.story-card-featured .story-featured-label { animation: featured-label-blink 1.35s steps(1, end) infinite; }
@keyframes featured-blink {
  0%, 42%, 100% { border-color: var(--coral); box-shadow: 0 0 0 0 rgba(201,32,38,0); }
  52%, 78% { border-color: rgba(201,32,38,.35); box-shadow: 0 0 0 5px rgba(201,32,38,.16); }
}
@keyframes featured-label-blink {
  0%, 42%, 100% { opacity: 1; }
  52%, 78% { opacity: .48; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card-featured,
  .story-card-featured .story-featured-label { animation: none; }
}
.source-card .source-link { display: inline-block; margin-top: 10px; }
.article-nav { position: static; display: flex; align-items: center; gap: 27px; padding: 0; border: 0; box-shadow: none; }

/* Página individual */
.article-main { padding: 45px 0 105px; background: var(--cream); }
.article-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 38px; color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-back span { font-size: 19px; transition: transform .2s ease; }
.article-back:hover span { transform: translateX(-4px); }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: 7%; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.article-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.article-kicker::before { width: 31px; height: 1px; content: ""; background: currentColor; }
.article-title { max-width: 760px; margin: 0 0 22px; color: var(--ink); font-family: var(--serif); font-size: clamp(36px, 4.5vw, 64px); font-weight: 600; letter-spacing: -.065em; line-height: .97; }
.article-lead { max-width: 650px; margin: 0 0 26px; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: #6f8793; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.article-meta strong { color: var(--coral); font-family: var(--display); font-size: 17px; }
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.article-hero-image { position: relative; min-height: 390px; margin: 0; overflow: hidden; background: var(--mint); }
.article-hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, rgba(8,47,73,.05), rgba(0,127,140,.35)); mix-blend-mode: multiply; }
.article-hero-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.article-hero-image figcaption { position: absolute; z-index: 1; right: 17px; bottom: 15px; left: 17px; display: flex; justify-content: space-between; color: white; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: minmax(0, 690px) 240px; column-gap: 11%; row-gap: 28px; align-items: start; max-width: 1020px; margin: 57px auto 0; }
.article-body { color: var(--ink); }
.article-body p { margin: 0 0 23px; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; line-height: 1.63; }
.article-body p:first-child::first-letter { float: left; margin: 8px 8px 0 0; color: var(--coral); font-family: var(--serif); font-size: 68px; font-weight: 600; line-height: .7; }
.article-body h2 { margin: 42px 0 17px; color: var(--ink); font-family: var(--serif); font-size: 34px; }
.article-body blockquote { margin: 36px 0; padding: 22px 0 22px 24px; border-left: 3px solid var(--teal); color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.25; }
.article-source { margin-top: 37px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.article-source a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-end-marker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-end-marker::before,
.article-end-marker::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}
.article-share { position: sticky; top: 25px; padding: 19px; border: 1px solid var(--line); background: white; }
.article-share {
  padding: 22px;
  border: 2px solid var(--teal-dark);
  background: var(--mint);
  box-shadow: 0 14px 30px rgba(8, 47, 73, .12);
}
.article-share-title { margin: 0 0 13px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.article-share-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(8, 47, 73, .2);
  font-size: 11px;
}

.article-share-title::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(236, 128, 109, .18);
}

.share-buttons { display: grid; gap: 7px; }
.share-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 10px; border: 1px solid rgba(8, 47, 73, .24); color: var(--ink); background: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.share-button:hover { color: white; border-color: var(--ink); background: var(--ink); transform: translateY(-1px); }
.share-button svg { width: 16px; height: 16px; fill: currentColor; }
.share-button.whatsapp:hover { border-color: #1ca866; background: #1ca866; }
.share-button.copy:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.share-button.print:hover { color: var(--ink); border-color: var(--mint); background: var(--mint); }
.share-feedback { min-height: 16px; margin: 10px 0 0; color: var(--teal-dark); font-size: 10px; line-height: 1.4; text-align: center; }
.article-source-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 0;
  padding: 22px;
  background: var(--mint);
}

.article-source-card span { display: block; margin: 2px 0 0; color: var(--teal-dark); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.article-citations { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin: 0; list-style: none; }
.article-citations li { flex: 1 1 260px; min-width: 0; padding: 0 0 0 12px; border-top: 0; border-left: 2px solid var(--teal); color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.article-citations li + li { margin-top: 0; }
.article-footer-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 1020px; margin: 67px auto 0; padding-top: 25px; border-top: 1px solid var(--line); }
.article-footer-nav a { color: var(--ink); font-size: 12px; font-weight: 700; }
.article-footer-nav a:hover { color: var(--teal-dark); }
.article-footer-nav span { color: var(--teal); font-size: 17px; }
.article-missing { max-width: 680px; margin: 90px auto; text-align: center; }
.article-missing h1 { margin-bottom: 14px; font-size: 54px; }
.article-missing p { color: var(--ink-soft); }

@media (max-width: 980px) {
  .article-nav { position: static; display: flex; align-items: center; gap: 20px; padding: 0; border: 0; box-shadow: none; }
  .article-hero { grid-template-columns: 1fr; gap: 38px; }
  .article-hero-image { width: min(100%, 620px); min-height: 340px; }
  .article-hero-image img { min-height: 340px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 38px; }
}

@media (max-width: 640px) {
  .article-nav { display: none; }
  .story-card-link, .story-card-featured .story-card-link { display: block; }
  .article-main { padding: 31px 0 70px; }
  .article-shell { width: calc(100% - 34px); }
  .article-back { margin-bottom: 29px; }
  .article-title { font-size: clamp(34px, 10.5vw, 50px); }
  .article-lead { font-size: 16px; }
  .article-hero { gap: 28px; padding-bottom: 31px; }
  .article-hero-image, .article-hero-image img { min-height: 265px; }
  .article-layout { display: flex; flex-direction: column; gap: 32px; margin-top: 36px; }
  .article-body { order: 2; }
  .article-share { position: static; width: 100%; order: 1; }
  .article-end-marker { width: 100%; order: 2; }
  .article-source-card { display: block; width: 100%; order: 3; }
  .article-source-card span { margin-bottom: 12px; }
  .article-citations { display: grid; gap: 10px; }
  .article-citations li { padding: 10px 0 0; border-top: 1px solid rgba(8, 47, 73, .14); border-left: 0; }
  .share-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-button:last-child { grid-column: span 2; }
  .article-body p { font-size: 19px; }
  .article-footer-nav { display: grid; gap: 17px; margin-top: 47px; }
}

@media print {
  .topline, .site-header, .article-back, .article-share, .article-footer-nav { display: none !important; }
  .article-main { padding: 0; background: white; }
  .article-shell { width: 100%; }
  .article-hero { display: block; padding-bottom: 25px; }
  .article-title { max-width: 800px; font-size: 50px; }
  .article-hero-image { max-width: 620px; min-height: 270px; margin-top: 25px; }
  .article-hero-image img { min-height: 270px; }
  .article-layout { display: block; max-width: 760px; margin-top: 31px; }
  .article-body p { color: #111; }
  .article-source { color: #333; }
  .article-end-marker { margin: 28px 0 0; color: #333; }
  .article-end-marker::before,
  .article-end-marker::after { background: #333; }
  .article-source-card {
    display: grid !important;
    grid-template-columns: 125px minmax(0, 1fr);
    margin-top: 0;
    padding: 16px 0 0;
    background: white;
  }
  .article-source-card span,
  .article-citations li { color: #111; }
  .article-citations li { border-left-color: #333; }
}

/* Cabecera editorial original */
.topline {
  color: #f7f4ee;
  background: #171717;
  letter-spacing: .07em;
}

.topline-date { color: rgba(247, 244, 238, .7); }
.topline-separator { margin: 0 5px; color: #c43337; }
.status-dot { background: #c43337; box-shadow: 0 0 0 4px rgba(196, 51, 55, .16); }

.home-header {
  --header-ink: #171717;
  --header-muted: #626262;
  --header-paper: #fffdf8;
  --header-red: #a6222a;
  background: var(--header-paper);
  border-bottom: 1px solid var(--header-ink);
  backdrop-filter: none;
}

.home-header .nav-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: minmax(120px, auto) auto;
  align-items: center;
  gap: 0;
  padding-top: 15px;
}

.home-header .menu-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: none;
  width: 38px;
  height: 38px;
  padding: 10px 8px;
  border: 1px solid rgba(23, 23, 23, .35);
  border-radius: 0;
}

.home-header .menu-toggle span { background: var(--header-ink); }

.home-header .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 11px;
  width: auto;
}

.home-header .brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 4px;
  background-color: white;
  background-image: url("assets/La_red_cientifica.com.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 84px auto;
  mix-blend-mode: multiply;
}

.home-header .brand-copy { display: grid; gap: 4px; }
.home-header .brand-name {
  color: var(--header-ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .9;
}

.home-header .brand-section {
  color: #fff;
  background: #171717;
  width: fit-content;
  padding: 5px 8px 4px;
  font-size: 9px;
  letter-spacing: .22em;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-edition {
  color: var(--header-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-header .brand-issue { color: var(--header-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }

.home-header .search-trigger {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(23, 23, 23, .35);
  border-radius: 0;
  color: var(--header-ink);
}

.home-header .search-trigger:hover {
  color: white;
  background: var(--header-ink);
  border-color: var(--header-ink);
}

.home-header .main-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  min-height: 48px;
  border-top: 1px solid rgba(23, 23, 23, .2);
  gap: 0;
}

.home-header .nav-link {
  padding: 15px 22px 14px;
  border-right: 1px solid rgba(23, 23, 23, .14);
  color: var(--header-muted);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-header .nav-link:first-child { border-left: 1px solid rgba(23, 23, 23, .14); }
.home-header .nav-link:hover,
.home-header .nav-link.active { color: var(--header-ink); }

.home-header .nav-link.active::after {
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 3px;
  background: var(--header-red);
}

.home-header .search-panel { background: #f1eee7; }
.home-header .search-label { color: var(--header-red); }
.home-header .search-field { border-color: rgba(23, 23, 23, .28); }

@media (max-width: 980px) {
  .home-header .nav-wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 102px;
    min-height: 102px;
    padding-top: 0;
  }

  .home-header .brand { grid-column: 1; gap: 8px; }
  .home-header .brand-mark { width: 43px; height: 43px; background-size: 72px auto; }
  .home-header .brand-name { font-size: 20px; }
  .home-header .menu-toggle { grid-column: 2; justify-self: end; }
  .home-header .header-edition { display: none; }
  .home-header .main-nav {
    position: absolute;
    z-index: 4;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(23, 23, 23, .22);
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 18px 35px rgba(23, 23, 23, .14);
  }

  .home-header .main-nav.open { display: grid; }
  .home-header .nav-link,
  .home-header .nav-link:first-child {
    padding: 12px 9px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 23, 23, .14);
  }

  .home-header .nav-link:last-child { border-bottom: 0; }
  .home-header .nav-link.active::after { right: auto; bottom: 0; left: 9px; width: 30px; }
}

@media (max-width: 640px) {
  .topline-separator { display: none; }
  .home-header .brand { gap: 6px; }
  .home-header .brand-mark { width: 36px; height: 36px; background-size: 61px auto; }
  .home-header .brand-name { font-size: 17px; }
  .home-header .brand-section { font-size: 7px; letter-spacing: .12em; }
}

/* Escala ampliada del encabezado */
.topline-inner {
  min-height: 41px;
  font-size: 13px;
}

.home-header .nav-wrap {
  grid-template-rows: minmax(144px, auto) auto;
  padding-top: 18px;
}

.home-header .brand { gap: 13px; }
.home-header .brand-mark { width: 60px; height: 60px; background-size: 101px auto; }
.home-header .brand-copy { gap: 5px; }
.home-header .brand-name { font-size: clamp(26px, 2.88vw, 36px); }
.home-header .brand-section { font-size: 11px; }

.home-header .menu-toggle {
  width: 46px;
  height: 46px;
  padding: 12px 10px;
}

.home-header .header-actions { gap: 17px; }
.home-header .search-trigger { width: 42px; height: 42px; }
.home-header .main-nav { min-height: 58px; }
.home-header .nav-link {
  padding: 18px 26px 17px;
  font-size: 13px;
}

.home-header .nav-link.active::after { right: 26px; left: 26px; height: 4px; }

@media (max-width: 980px) {
  .home-header .nav-wrap {
    grid-template-rows: 122px;
    min-height: 122px;
    padding-top: 0;
  }

  .home-header .brand { gap: 10px; }
  .home-header .brand-mark { width: 52px; height: 52px; background-size: 87px auto; }
  .home-header .brand-name { font-size: 24px; }
  .home-header .menu-toggle { width: 46px; height: 46px; }
  .home-header .nav-link { padding: 14px 9px; }
  .home-header .nav-link.active::after { right: auto; left: 9px; height: 3px; }
}

@media (max-width: 640px) {
  .topline-inner { min-height: 36px; }
  .home-header .nav-wrap { grid-template-rows: 122px; min-height: 122px; }
  .home-header .brand { gap: 8px; }
  .home-header .brand-mark { width: 43px; height: 43px; background-size: 73px auto; }
  .home-header .brand-name { font-size: 20px; }
  .home-header .brand-section { font-size: 8px; }
}

@media (max-width: 980px) {
  .home-header .main-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(23, 23, 23, .2);
    box-shadow: none;
  }
  .home-header .main-nav.open { display: flex; }
}

/* Lectura y navegación en pantallas pequeñas. */
@media screen and (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .home-header .nav-wrap { grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto auto; min-height: 0; padding-top: 20px; }
  .home-header .brand { min-width: 0; padding-bottom: 20px; }
  .home-header .brand-copy { min-width: 0; }
  .home-header .brand-name { font-size: clamp(18px, 5.2vw, 25px); }
  .home-header .header-actions { grid-column: 2; padding-bottom: 20px; }
  .home-header .search-trigger { margin: 0; }
  .home-header .main-nav { justify-content: flex-start; }
  .home-header .nav-link { min-height: 44px; padding: 14px 10px; font-size: 11px; }
  .network-menu { position: static; min-width: 0; }
  .home-header .main-nav, .article-nav { position: relative; inset: auto; }
  .network-dropdown { position: absolute; right: 0; width: min(290px, calc(100vw - 32px)); background: white; box-shadow: var(--shadow); }
  .network-dropdown a { min-height: 44px; }
  .story-body { padding: 22px 18px; }
  .story-body h3, .article-title { line-height: 1.15; overflow-wrap: anywhere; }
  .story-excerpt, .editorial-copy p { font-size: 16px; line-height: 1.65; }
  .article-body, .article-layout > aside { width: 100%; min-width: 0; }
  .article-body p { font-size: 19px; line-height: 1.7; overflow-wrap: anywhere; }
  .article-citations li, .source-email { overflow-wrap: anywhere; }
  .article-page .nav-wrap { flex-wrap: wrap; padding: 16px 0; gap: 14px; }
  .article-page .brand { min-width: 0; max-width: 100%; }
  .article-page .brand-copy { min-width: 0; }
  .article-page .topline-inner { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .article-hero { grid-template-columns: minmax(0, 1fr); }
  .article-nav { display: flex; flex-wrap: wrap; width: 100%; gap: 8px 16px; }
  .article-nav .nav-link { min-height: 44px; display: block; }
  .article-footer-nav { flex-wrap: wrap; }
}
/* Fotografías originales del documento y créditos completos. */
.article-embedded-image { margin: 2rem 0; }
.article-embedded-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-embedded-image figcaption, .article-embedded-image li { font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.article-embedded-image figcaption { margin-top: .75rem; }
.edition-week-heading { grid-column: 1 / -1; margin: 1rem 0 .25rem; color: var(--ink-soft); font-size: 1rem; }
.brand-logo { display: block; width: 80px; height: 80px; flex: 0 0 auto; padding: 5px; object-fit: contain; background: white; border: 1px solid rgba(8,47,73,.12); border-radius: 12px; box-shadow: 0 4px 12px rgba(8,47,73,.08); }
.footer-logos .footer-logo-wrap { width: 85px; height: 85px; padding: 3px; }
.footer-logos .footer-logo-wrap img { object-fit: contain; }
.site-footer .footer-logo-network { width: 66px; height: 66px; }
.article-citations { display: grid; gap: 14px; }
.article-citations li { flex: none; font-size: 12px; overflow-wrap: anywhere; }
.article-source-card .article-citations li {
  padding: 0 0 0 1.27cm;
  text-indent: -1.27cm;
  border: 0;
  line-height: 2;
}
.article-citations a, .article-license-notes a { overflow-wrap: anywhere; }
.article-license-notes { margin-top: 24px; border-top: 1px solid rgba(8, 47, 73, .14); padding-top: 14px; }
.article-license-notes p { font-size: 12px; line-height: 1.6; }
@media (max-width: 680px) { .brand-logo { width: 58px; height: 58px; padding: 3px; } }

/* Identidad del suplemento de agronomía y veterinaria. */
.brand-logo { width: 115px; height: 115px; padding: 2px; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-section, .home-header .brand-section {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  color: #fff;
  background: #c92026;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.5;
  white-space: normal;
}
@media (max-width: 680px) {
  .brand-logo { width: 77px; height: 77px; padding: 1px; }
  .brand-section, .home-header .brand-section { padding: 5px 7px; font-size: 9px; letter-spacing: .03em; }
}

@media print {
  .site-footer {
    display: block !important;
    position: static;
    margin-top: 28px;
    padding: 20px 0 12px;
    color: #111;
    background: white;
    border-top: 1px solid #999;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .site-footer .container { width: 100%; }
  .site-footer .footer-grid {
    grid-template-columns: 1.7fr .8fr .9fr 1.35fr;
    gap: 16px;
    padding-bottom: 16px;
  }
  .site-footer .footer-brand { grid-column: auto; }
  .site-footer .footer-editorial { grid-column: 1 / -1; }
  .site-footer .footer-brand p,
  .site-footer .footer-links,
  .site-footer .footer-links span,
  .site-footer .footer-links a,
  .site-footer .footer-note,
  .site-footer .footer-bottom { color: #111; }
  .site-footer .footer-bottom {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top-color: #aaa;
  }
}

@media print {
  .print-edition-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    padding: 0 0 14px;
    border-bottom: 2px solid #111;
    color: #111;
  }
  .print-edition-header img {
    width: 76px;
    height: 76px;
    object-fit: contain;
  }
  .print-edition-kicker {
    margin: 0 0 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .print-edition-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
  }
  .print-edition-title span { font-size: 14px; font-weight: 400; }
}

/* Encabezado y apertura de noticias más compactos. */
@media (min-width: 981px) {
  .stories-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; }
  .stories-grid .story-excerpt { font-size: 15px; }
  .stories-grid .story-card { grid-column: span 3; }
  .stories-grid .story-card-slot-1 { grid-column: span 4; }
  .stories-grid .story-card-slot-2 { grid-column: span 2; }
  .stories-grid .story-card-slot-5,
  .stories-grid .story-card-slot-6 { grid-column: span 6; }
  .stories-grid .story-card-link { height: 100%; }
  .stories-grid .story-card-slot-1 .story-card-link { grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
  .stories-grid .story-card-slot-2 .story-card-link,
  .stories-grid .story-card-slot-3 .story-card-link,
  .stories-grid .story-card-slot-4 .story-card-link { display: flex; flex-direction: column; }
  .stories-grid .story-card-slot-2 .story-image,
  .stories-grid .story-card-slot-3 .story-image,
  .stories-grid .story-card-slot-4 .story-image,
  .stories-grid .story-card-slot-5 .story-image,
  .stories-grid .story-card-slot-6 .story-image { min-height: 145px; }
  .stories-grid .story-card-slot-1 .story-image { min-height: 265px; }
  .stories-grid .story-card-slot-1 .story-body { padding: 28px 30px 30px; border-left: 4px solid rgba(236,128,109,.25); }
  .stories-grid .story-card-slot-1 .story-body h3 { max-width: 560px; margin-bottom: 14px; font-size: clamp(28px, 2.5vw, 37px); line-height: 1.02; }
  .stories-grid .story-card-slot-1 .story-excerpt { max-width: 560px; font-size: 17px; line-height: 1.62; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .stories-grid .story-card { grid-column: span 1; }
  .stories-grid .story-card-slot-1,
  .stories-grid .story-card-slot-5,
  .stories-grid .story-card-slot-6 { grid-column: span 2; }
  .stories-grid .story-card-link { height: 100%; }
  .stories-grid .story-card-slot-1 .story-card-link { grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
  .stories-grid .story-card-slot-2 .story-card-link,
  .stories-grid .story-card-slot-3 .story-card-link,
  .stories-grid .story-card-slot-4 .story-card-link { display: flex; flex-direction: column; }
  .stories-grid .story-card-slot-2 .story-image,
  .stories-grid .story-card-slot-3 .story-image,
  .stories-grid .story-card-slot-4 .story-image { min-height: 150px; }
  .stories-grid .story-card-slot-1 .story-image { min-height: 230px; }
  .stories-grid .story-card-slot-1 .story-body { padding: 24px 26px 26px; }
  .stories-grid .story-card-slot-1 .story-body h3 { font-size: 29px; }
}

@media (max-width: 980px) {
  .edition-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .edition-issue-card { width: min(100%, 430px); }
}

@media (max-width: 640px) {
  .edition-hero { padding: 38px 0 48px; }
  .edition-hero .article-back { margin-bottom: 24px; }
  .edition-issue-card { padding: 22px; }
  .edition-issue-card strong { font-size: 21px; }
  .edition-principles { padding: 60px 0 70px; }
  .edition-principles-grid { grid-template-columns: 1fr; }
  .edition-principle { min-height: 0; }
}

@media (min-width: 981px) {
  .home-header .nav-wrap { grid-template-rows: minmax(120px, auto) auto; padding-top: 8px; }
  .home-header .brand-copy { gap: 3px; }
  .home-header .main-nav { min-height: 50px; }
  .home-header .nav-link { padding: 14px 22px 13px; }
  .latest-section.section-pad { padding-top: 56px; padding-bottom: 80px; }
  .section-heading { margin-bottom: 30px; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .latest-section.section-pad { padding-top: 50px; padding-bottom: 65px; }
  .section-heading { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .latest-section.section-pad { padding-top: 44px; padding-bottom: 60px; }
  .section-heading { margin-bottom: 24px; }
}

/* Ajustes finales para pantallas pequeñas. */
@media screen and (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .site-header { position: relative; }
  .latest-news-ticker { flex-wrap: wrap; }
  .latest-news-ticker-label { padding: 0 10px; font-size: 8px; }
  .latest-news-ticker-viewport { flex: 1 1 0; }
  .latest-news-ticker-date { justify-content: center; width: 100%; min-height: 25px; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; font-size: 9px; }
  .home-header .search-trigger { width: 44px; height: 44px; }
  .home-header .nav-wrap { column-gap: 12px; }
  .brand-section { max-width: 100%; overflow-wrap: anywhere; }
  .home-header .main-nav,
  .article-page .article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0;
  }
  .home-header .nav-link,
  .article-page .article-nav .nav-link {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    overflow-wrap: anywhere;
  }
  .home-header .network-menu,
  .article-page .article-nav .network-menu,
  .home-header .network-menu > summary,
  .article-page .article-nav .network-menu > summary { width: 100%; }
  .network-dropdown { width: 100%; max-width: 100%; max-height: min(60vh, 420px); overflow-y: auto; }
  .filter-button { min-height: 44px; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
  .stories-grid { gap: 12px; }
  .story-image, .story-card-featured .story-image { min-height: 0; aspect-ratio: 16 / 9; }
  .story-body { padding: 17px 17px 18px; }
  .story-meta { margin-bottom: 11px; }
  .story-body h3, .story-card:not(.story-card-featured) .story-body h3 { font-size: 21px; }
  .story-card-featured .story-image { aspect-ratio: 4 / 3; }
  .story-card-featured .story-body { padding: 22px 19px 23px; border-left: 3px solid rgba(236,128,109,.28); }
  .story-card-featured .story-body h3 { font-size: 26px; line-height: 1.06; }
  .story-card-featured .story-excerpt { font-size: 13px; -webkit-line-clamp: 4; }
  .story-card-featured .story-card-link,
  .story-card-featured .story-body { min-height: 310px; }
  .story-card-featured .story-body { padding: 24px 19px 23px; border-left: 0; }
  .story-featured-label { top: 12px; right: 12px; }
  .story-excerpt { margin-bottom: 14px; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .archive-list { overflow: visible; }
  .share-button { min-height: 44px; }
  .share-button:last-child { grid-column: auto; }
  .search-field input { min-width: 0; font-size: 16px; }
  .subscription-page .button { max-width: 100%; white-space: normal; text-align: center; }
}

/* Article reading palette and typography. */
:root {
  --color-text: #1a1f26;
  --color-bg: #f8fafc;
  --color-accent: #2563eb;
  --color-code-bg: #f1f5f9;
  --color-code-text: #0f172a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e2e8f0;
    --color-bg: #0f172a;
    --color-accent: #60a5fa;
    --color-code-bg: #1e293b;
    --color-code-text: #f8fafc;
  }
}
@media screen {
body.article-reading {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.625;
  color: var(--color-text);
  background-color: var(--color-bg);
}
.article-reading .article-main {
  --ink: var(--color-text);
  --ink-soft: var(--color-text);
  --teal-dark: var(--color-accent);
  color: var(--color-text);
  background: var(--color-bg);
}
.article-reading .article-main h1,
.article-reading .article-main h2,
.article-reading .article-main h3,
.article-reading .article-body p,
.article-reading .article-body blockquote {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.article-reading .article-body p,
.article-reading .article-lead { color: var(--color-text); font-size: 18px; line-height: 1.625; }
.article-reading .article-body p:first-child::first-letter { float: none; margin: 0; color: inherit; font: inherit; }
.article-reading .article-title { letter-spacing: -.04em; line-height: 1.15; }
.article-reading .article-body a,
.article-reading .article-source-card a,
.article-reading .article-complementary a { color: var(--color-accent); }
.article-reading .article-main code,
.article-reading .article-main pre { color: var(--color-code-text); background: var(--color-code-bg); border-radius: 4px; }
.article-reading .article-main code { padding: .15em .35em; }
.article-reading .article-main pre {
  background-color: #020617;
  color: #f1f5f9;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #334155;
  overflow-x: auto;
}
.article-reading .article-main pre code { color: inherit; background: transparent; padding: 0; }
}
@media screen and (prefers-color-scheme: dark) {
  .article-reading .article-main { --line: rgba(226,232,240,.18); }
  .article-reading .article-share,
  .article-reading .article-source-card,
  .article-reading .article-media { color: var(--color-text); background: var(--color-code-bg); }
  .article-reading .article-complementary { background: #342b1c; border-color: #80683c; }
  .article-reading .article-meta { color: #94a3b8; }
  .article-reading .share-button { color: var(--color-text); border-color: var(--line); background: transparent; }
  .article-reading .share-button:hover { background: #334155; }
}
@media print {
  body.article-reading {
    --color-text: #1a1f26;
    --color-bg: #fff;
    --color-accent: #2563eb;
    --color-code-bg: #f1f5f9;
    --color-code-text: #0f172a;
    color: var(--color-text);
    background: white;
  }
  .article-reading .article-main { background: white; }
}

/* Compact article printing, preserving the original serif typeface. */
@media print {
  @page { margin: 12mm; }
  .article-reading .article-main { padding: 0; }
  .article-reading .article-shell,
  .article-reading .article-layout { width: 100%; max-width: none; }
  .article-reading .article-hero { padding-bottom: 10px; }
  .article-reading .article-kicker { margin-bottom: 8px; }
  .article-reading .article-title { margin-bottom: 10px; font-size: 32pt; line-height: 1.05; }
  .article-reading .article-lead { max-width: none; margin-bottom: 10px; }
  .article-reading .article-meta { margin-bottom: 8px; }
  .article-reading .article-hero-image { width: 100%; max-width: none; min-height: 0; margin-top: 10px; background: transparent; }
  .article-reading .article-hero-image img { width: auto; max-width: 100%; height: auto; max-height: 45mm; min-height: 0; margin: 0 auto; object-fit: contain; }
  .article-reading .article-hero-image::after,
  .article-reading .article-hero-image figcaption { display: none; }
  .article-reading .article-layout { margin-top: 12px; }
  .article-reading .article-layout > aside { display: none; }
  .article-reading .article-body p { margin-bottom: 10px; line-height: 1.45; orphans: 2; widows: 2; }
  .article-reading .article-body h2 { margin: 18px 0 8px; break-after: avoid; }
  .article-reading .article-body blockquote { margin: 14px 0; padding: 10px 0 10px 16px; }
  .article-reading .article-body .article-source { margin-top: 12px; padding-top: 8px; font-size: 12px; }
  .article-reading .article-embedded-image { margin: 12px 0; break-inside: avoid; }
  .article-reading .article-embedded-image img { width: auto; max-width: 100%; max-height: 45mm; margin: 0 auto; border-radius: 0; }
  .article-reading .article-embedded-image figcaption { margin-top: 5px; }
  .article-reading .article-end-marker { margin: 10px 0 0; }
  .article-reading .article-source-card { display: block !important; padding: 10px 0 0; }
  .article-reading .article-source-card > span { margin-bottom: 8px; break-after: avoid; }
  .article-reading .article-citations { display: block; }
  .article-reading .article-source-card .article-citations li { margin: 0 0 6px; line-height: 1.45; orphans: 2; widows: 2; }
  .article-reading .article-license-notes { margin-top: 10px; padding-top: 8px; }
  .article-reading .article-license-notes p { margin-bottom: 6px; }
  .article-reading .site-footer { margin-top: 12px; padding: 10px 0 0; break-inside: auto; page-break-inside: auto; }
  .article-reading .site-footer .footer-grid { gap: 10px; padding-bottom: 8px; }
  .article-reading .site-footer .footer-bottom { gap: 10px; padding-top: 8px; }
  .article-reading .site-footer .footer-logo-wrap,
  .article-reading .site-footer .footer-logo-network { width: 40px; height: 40px; }
  .article-reading .site-footer .footer-brand p { font-size: 11px; }
  .article-reading .site-footer .footer-links { gap: 4px; font-size: 11px; }
  .article-reading .site-footer .footer-links a { min-height: 0; }
}

/* Menú móvil compacto, con búsqueda y botón de apertura visibles. */
@media screen and (max-width: 640px) {
  .home-header .nav-wrap {
    grid-template-columns: minmax(0, 1fr) 50px 102px;
    grid-template-rows: auto;
    column-gap: 10px;
    min-height: 0;
    padding-top: 20px;
  }
  .home-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-bottom: 20px;
  }
  .home-header .brand-mark { width: 56px; height: 56px; background-size: 93px auto; }
  .home-header .brand-copy { min-width: 0; }
  .home-header .brand-name { font-size: clamp(20px, 6.2vw, 27px); }
  .home-header .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: stretch;
    padding-bottom: 20px;
  }
  .home-header .search-trigger { width: 50px; height: 48px; }
  .home-header .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    width: 102px;
    height: 48px;
    margin-bottom: 20px;
    padding: 0 12px;
    justify-self: end;
  }
  .home-header .menu-toggle .menu-toggle-label,
  .home-header .menu-toggle .menu-toggle-icon { background: transparent; }
  .home-header .menu-toggle .menu-toggle-icon span { background: var(--header-ink); }
  .home-header .main-nav,
  .article-page .article-nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: none !important;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(23, 23, 23, .22);
    background: rgba(255, 253, 248, .99);
    box-shadow: 0 18px 35px rgba(23, 23, 23, .14);
  }
  .home-header .main-nav.open,
  .article-page .article-nav.open { display: grid !important; }
  .home-header .main-nav .nav-link,
  .article-page .article-nav .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 15px 12px;
    border: 0;
    border-bottom: 1px solid rgba(23, 23, 23, .14);
  }
  .home-header .main-nav .nav-link:last-child,
  .article-page .article-nav .nav-link:last-child { border-bottom: 0; }
  .home-header .main-nav .nav-link.active::after { right: auto; bottom: 0; left: 12px; width: 30px; }

  .article-page .nav-wrap {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 16px 0;
  }
  .article-page .brand { flex: 1 1 auto; min-width: 0; padding-bottom: 0; }
  .article-page .menu-toggle {
    display: flex;
    flex: 0 0 auto;
    width: 102px;
    height: 48px;
    padding: 0 12px;
  }
}
