/* Cronista Urbano. Base: tipografía, color, cabecera y pie. Las piezas de contenido
   (tarjetas, portada, nota, archivos) están en content.css. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --ink: #16140f;
  --ink-2: #3b372f;
  --muted: #6b655b;
  --rule: #e3ddd1;
  --breaking: #b3261e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: 16px;
  --gap: 24px;
  --sec: var(--ink);
}
@media (min-width: 768px) { :root { --gutter: 24px; --gap: 32px; } }

/* El color dice la sección. Las subsecciones heredan el de su sección principal. */
.sec-chiapas { --sec: #1f7a4d; }
.sec-seguridad { --sec: #b3261e; }
.sec-politica { --sec: #1d4e89; }
.sec-nacional { --sec: #4a5566; }
.sec-deportes { --sec: #b8520f; }
.sec-tecnologia { --sec: #0e7490; }
.sec-mas { --sec: #6b655b; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--sans); }
.skip-link:focus { left: 8px; top: 8px; }

/* Franja superior: fecha, clima y Facebook. */
.topbar { border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar__date { white-space: nowrap; }
.wx { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.wx::-webkit-scrollbar { display: none; }
.wx__city { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.wx__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wx__temp { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.topbar__social { display: grid; place-items: center; width: 44px; height: 40px; margin-right: -12px; color: var(--ink); }
.topbar__social svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 767px) { .topbar__date { display: none; } }

/* Cabecera del periódico. */
.masthead { padding-block: 22px 16px; text-align: center; }
.masthead__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "opsz" 72; }
.masthead__title a:hover { text-decoration: none; }
.masthead__tagline { margin-top: 8px; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }

/* Menú de secciones: se queda pegado arriba al bajar. */
.sections { position: sticky; top: 0; z-index: 40; background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.sections__inner { display: flex; align-items: stretch; }
.sections__home { display: none; align-items: center; padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--rule); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.sections.is-stuck .sections__home { display: flex; }
.sections__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sections__list::-webkit-scrollbar { display: none; }
.sections__list > li { position: relative; flex: none; }
.sections__list > li > a { display: flex; align-items: center; min-height: 48px; padding-inline: 12px; font-size: 0.95rem; font-weight: 600; border-bottom: 3px solid transparent; }
.sections__list > li > a:hover, .sections__list > .current-menu-item > a, .sections__list > .current-menu-ancestor > a { text-decoration: none; border-bottom-color: var(--ink); }
.sections .sub-menu { display: none; }
@media (min-width: 1024px) {
  .sections__inner { justify-content: center; }
  .sections__list { overflow: visible; }
  .sections .sub-menu { position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px 0; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgb(22 20 15 / 0.08); }
  .sections__list > li:hover > .sub-menu, .sections__list > li:focus-within > .sub-menu { display: block; }
  .sections .sub-menu a { display: block; padding: 10px 16px; font-size: 0.95rem; }
}

/* Última hora: las notas de las últimas horas con su hora, en una línea. */
.breaking { border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 0.92rem; }
.breaking__inner { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.breaking__label { flex: none; padding: 3px 10px; background: var(--breaking); color: #fff; font-weight: 700; border-radius: 2px; }
.breaking__list { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 88%, transparent); }
.breaking__list::-webkit-scrollbar { display: none; }
.breaking__list li { display: flex; gap: 8px; white-space: nowrap; }
.breaking__time { color: var(--breaking); font-weight: 700; font-variant-numeric: tabular-nums; }

.site-main { padding-block: 28px 56px; }

/* Publicidad. */
.ad { display: grid; justify-items: center; gap: 4px; margin-inline: auto; padding-block: 12px; }
.ad__label { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); }
.ad--leaderboard { max-width: 970px; padding-inline: var(--gutter); }
.ad--leaderboard img { max-height: 140px; width: auto; }
.ad--box { max-width: 300px; }

/* Pie. */
.footer { background: var(--ink); color: #e9e4da; font-family: var(--sans); font-size: 0.95rem; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; gap: 36px; padding-block: 48px 36px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); } }
.footer__title { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.footer__about { margin-top: 14px; max-width: 34em; line-height: 1.6; color: #bfb8ab; }
.footer__follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; padding: 0 16px; border: 1px solid #4a453c; border-radius: 2px; color: #fff; }
.footer__follow svg { width: 18px; height: 18px; fill: currentColor; }
.footer__heading { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #3a362f; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; }
.footer__col ul { display: grid; gap: 2px; }
.footer__col li a { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.footer__col li a[class^="sec-"]::before { content: ""; width: 10px; height: 10px; background: var(--sec); flex: none; }
.footer__wx li { display: flex; align-items: center; gap: 10px; min-height: 36px; white-space: nowrap; }
.footer__wx-temp { margin-left: auto; color: #bfb8ab; font-variant-numeric: tabular-nums; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid #3a362f; color: #9c9588; font-size: 0.85rem; }
