/*
Theme Name: La Portada
Theme URI: https://github.com/hgpublicreativa-ux/la-portada
Author: La Portada
Description: Tema del diario digital La Portada (Ecuador). Diseño «Noche»: negro y amarillo de la bandera, tipografía Archivo condensada, banner principal a sangre, 8 secciones, «Lo último», «Más leídas», Opinión, boletín y espacios de publicidad.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: la-portada
Tags: news, blog, dark, one-column, custom-menu, featured-images, sticky-post
*/

/* ── La Portada · Sistema «Noche» ─────────────────────────────
   Negro y amarillo de la bandera. Archivo (ancho variable).      */
:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --surface: #151517;
  --line: #2a2a2e;
  --text: #f2efe8;     /* 17:1 sobre --bg */
  --text-2: #bdb9b0;   /* 9.8:1 */
  --text-3: #8f8b83;   /* 5.6:1 */
  --yellow: #ffd100;   /* 13:1 */
  --maxw: 1320px;
  --g: 28px;
  --header: 68px;
  --font: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--bg); -webkit-tap-highlight-color: rgba(255, 209, 0, .15); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; caret-color: var(--yellow); touch-action: manipulation; }
::selection { background: var(--yellow); color: #000; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--g); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: #000; padding: 10px 14px; font-weight: 700; transition: top 200ms var(--ease); }
.skip:focus { top: 12px; }
.ph { background: var(--surface); overflow: hidden; }
main { display: block; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; font-stretch: 78%; font-weight: 800; }
a:hover .hl, a:focus-visible .hl { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.meta { display: block; margin-top: 10px; font: 600 12.5px/1.35 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.meta b { color: var(--yellow); font-weight: 700; }
.meta a:hover b { text-decoration: underline; text-underline-offset: .2em; }

.btn { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: #000; font: 800 13px var(--font); letter-spacing: .06em; text-transform: uppercase; border: 0; cursor: pointer; transition: transform 140ms ease, background-color 140ms ease; white-space: nowrap; }
.btn:hover { background: #ffe14d; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .sm { display: none; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); background: none; cursor: pointer; transition: border-color 140ms ease; }
.icon:hover, .icon[aria-expanded="true"] { border-color: var(--yellow); }

/* ── Cabecera ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(12, 12, 13, .96); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: var(--header); }
.logo { font: 900 28px/1 var(--font); font-stretch: 125%; letter-spacing: -.02em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; flex: none; margin: 0; }
.logo i { width: 14px; height: 14px; background: var(--yellow); display: block; }
.nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; font: 600 14.5px var(--font); color: var(--text-2); white-space: nowrap; padding: 23px 0 21px; border-bottom: 3px solid transparent; transition: color 140ms ease, border-color 140ms ease; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-color: var(--yellow); }
.tools { display: flex; gap: 10px; align-items: center; flex: none; margin-left: auto; }
.m-nav { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 8px; padding: 14px 0; }
.search-panel input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 400 17px var(--font); }
.search-panel input::placeholder { color: var(--text-3); }
.search-panel input:focus-visible { border-color: var(--yellow); outline-offset: 0; }
.search-panel .btn { height: 48px; }

/* ── Banner principal: primera plana nocturna ─────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-stage { position: relative; min-height: clamp(560px, calc(100vh - var(--header) - 1px), 760px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -1; animation: unveil 1.1s var(--ease) both; }
.hero-media img { transition: transform 1.4s var(--ease); }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 12, 13, .84) 0%, rgba(12, 12, 13, .88) 30%, rgba(12, 12, 13, .84) 46%, rgba(12, 12, 13, .42) 60%, rgba(12, 12, 13, .08) 74%, rgba(12, 12, 13, 0) 84%),
    linear-gradient(0deg, rgba(12, 12, 13, .9) 0%, rgba(12, 12, 13, 0) 34%); }
.crop { position: absolute; z-index: 2; width: 26px; height: 26px; border: 0 solid var(--yellow); opacity: .9; }
.crop.tl { top: 22px; left: 50%; border-top-width: 2px; border-left-width: 2px; }
.crop.tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.crop.br { bottom: 132px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }
.credit { position: absolute; z-index: 2; right: 8px; top: 50%; transform: translate(50%, -50%) rotate(90deg); font: 600 10.5px var(--font); letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 239, 232, .62); white-space: nowrap; }
.hero-copy { position: relative; width: min(760px, 60%); padding: 44px 0 140px; }
.stamp { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font: 800 12px var(--font); font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.stamp::before { content: ""; width: 34px; height: 3px; background: var(--yellow); flex: none; }
.hero h1 { font-size: clamp(42px, 5.3vw, 86px); line-height: .92; font-stretch: 66%; font-weight: 900; letter-spacing: -.028em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
.hero h1 .line:nth-child(4) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(n+5) > span { animation-delay: .32s; }
.hero mark { color: #0c0c0d; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 82% no-repeat; padding: 0 .08em; margin-left: .02em; animation: marker .7s .75s var(--ease) forwards; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .deck { margin: 26px 0 0; max-width: 46ch; font-size: 20px; line-height: 1.5; color: #d9d5cc; animation: fade .8s .45s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; animation: fade .8s .55s var(--ease) both; }
.hero-actions .meta { margin: 0; }
.read { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; background: var(--yellow); color: #000; font: 800 14px var(--font); letter-spacing: .06em; text-transform: uppercase; transition: background-color 160ms ease, transform 140ms ease; }
.read svg { transition: transform 220ms var(--ease); }
.read:hover { background: #ffe14d; }
.read:hover svg { transform: translateX(4px); }
.read:active { transform: scale(.97); }
.hero-related { list-style: none; margin: 26px 0 0; padding: 0; max-width: 520px; animation: fade .8s .65s var(--ease) both; }
.hero-related a { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(242, 239, 232, .16); font: 600 16px/1.3 var(--font); color: var(--text-2); }
.hero-related a::before { content: "→"; color: var(--yellow); }
.hero-related a:hover { color: var(--text); }
.hero-stage:hover .hero-media img { transform: scale(1.03); }
.also { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(12, 12, 13, .92); border-top: 1px solid var(--line); }
.also .wrap { display: grid; grid-template-columns: 150px repeat(3, 1fr); }
.also .lbl { display: flex; align-items: center; font: 900 13px var(--font); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.also a { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 22px; border-left: 1px solid var(--line); }
.also .n { font: 900 38px/.8 var(--font); font-stretch: 62%; color: var(--yellow); }
.also b { display: block; font: 700 11.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.also .t { font: 700 17px/1.25 var(--font); font-stretch: 90%; }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes marker { to { background-size: 100% 82%; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Bloque bajo el banner ────────────────────────────────── */
.front { display: grid; grid-template-columns: 1fr 1fr 1fr 340px; gap: var(--g); padding: 40px 0; border-bottom: 1px solid var(--line); }
.card { display: block; }
.card .ph { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.card h2, .card h3 { font-size: 26px; }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 16px; }
.latest { border-left: 1px solid var(--line); padding-left: var(--g); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.head h2 { font: 900 15px var(--font); font-stretch: 110%; letter-spacing: .08em; text-transform: uppercase; }
.head a { font: 600 13px var(--font); color: var(--yellow); white-space: nowrap; }
.head a:hover { text-decoration: underline; text-underline-offset: .2em; }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); }
.latest time { font: 800 15px var(--font); color: var(--yellow); font-variant-numeric: tabular-nums; }
.latest a { font: 600 16px/1.3 var(--font); }

.ad { display: grid; place-items: center; border: 1px dashed var(--line); color: var(--text-3); font: 600 11px var(--font); letter-spacing: .16em; text-transform: uppercase; }
.ad.leader { height: 90px; margin: 36px 0; }
.ad.box { height: 250px; margin-top: 20px; }

/* Opinión: franja amarilla */
.opinion { background: var(--yellow); color: #0c0c0d; }
.opinion .wrap { padding-top: 40px; padding-bottom: 44px; }
.opinion .head a { color: #0c0c0d; text-decoration: underline; text-underline-offset: .2em; }
.opinion .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); margin-top: 16px; }
.opinion h3 { font-size: 28px; font-stretch: 75%; line-height: 1.02; }
.opinion .who { display: block; margin-top: 12px; font: 700 13px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.opinion a:hover .hl, .opinion a:focus-visible .hl { text-decoration-color: #0c0c0d; }
.opinion :focus-visible { outline-color: #0c0c0d; }

/* Secciones en filas */
.row { display: grid; grid-template-columns: 250px 1.4fr 1fr 1fr; gap: var(--g); padding: 36px 0; border-bottom: 1px solid var(--line); }
.row > h2 { font-size: clamp(26px, 2.3vw, 34px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; }
.row > h2 a { display: block; margin-top: 12px; font: 600 13px var(--font); font-stretch: 100%; letter-spacing: .04em; text-transform: none; color: var(--yellow); }
.row > h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.row .card h3 { font-size: 21px; }
.row .card.main h3 { font-size: 26px; }
.row .card .ph { aspect-ratio: 16 / 10; }
.row .empty-row { grid-column: 2 / -1; color: var(--text-3); margin: 0; }

.ranked-row { display: grid; grid-template-columns: 250px 1fr; gap: var(--g); padding: 36px 0; border-bottom: 1px solid var(--line); }
.ranked-row > h2 { font-size: clamp(30px, 2.6vw, 38px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; color: var(--yellow); }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--g); }
.ranked li { counter-increment: r; border-top: 1px solid var(--line); padding-top: 14px; }
.ranked li::before { content: counter(r); display: block; font: 900 56px/.85 var(--font); font-stretch: 62%; color: var(--yellow); margin-bottom: 10px; }
.ranked a { font: 700 17px/1.25 var(--font); font-stretch: 90%; }

/* ── Boletín ──────────────────────────────────────────────── */
.newsletter { margin: 48px 0; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px; }
.newsletter h2 { font-size: clamp(34px, 4vw, 56px); font-stretch: 70%; font-weight: 900; line-height: .95; }
.newsletter h2 em { font-style: normal; color: var(--yellow); }
.newsletter p { margin: 12px 0 0; color: var(--text-2); }
.newsletter label { display: block; font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.newsletter .row-f { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 400 17px var(--font); }
.newsletter input::placeholder { color: var(--text-3); }
.newsletter input:focus-visible { border-color: var(--yellow); outline-offset: 0; }
.newsletter input[aria-invalid="true"] { border-color: #ff8a7a; }
.newsletter .btn { height: 52px; }
.newsletter .msg { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; }
.newsletter .msg.err { color: #ff8a7a; }
.newsletter .msg.ok { color: var(--yellow); font-weight: 600; }
.newsletter small { display: block; color: var(--text-3); font-size: 14px; }

/* ── Pie ──────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.site-footer .logo { font-size: 20px; color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a:hover { color: var(--text); }

/* ── Página de sección ────────────────────────────────────── */
.sec-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head h1 { font-size: clamp(56px, 9vw, 132px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .85; letter-spacing: -.01em; }
.sec-head h1::after { content: "."; color: var(--yellow); }
.sec-head p { margin: 0; color: var(--text-2); font-size: 18px; max-width: 34ch; }
.sec-lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: end; padding: 36px 0; border-bottom: 1px solid var(--line); }
.sec-lead.no-img { grid-template-columns: 1fr; }
.sec-lead h2 { font-size: clamp(32px, 3.6vw, 54px); font-stretch: 70%; font-weight: 900; line-height: .95; margin-bottom: 14px; }
.sec-lead p { margin: 0; color: var(--text-2); font-size: 18px; max-width: 52ch; }
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-list li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sec-list li.no-img { grid-template-columns: 1fr; }
.sec-list h2 { font-size: 26px; margin-bottom: 6px; }
.sec-list p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 70ch; }
.empty { padding: 56px 0; text-align: center; color: var(--text-2); }
.empty a { color: var(--yellow); text-decoration: underline; text-underline-offset: .2em; }

/* ── Página de noticia ────────────────────────────────────── */
.article { max-width: 820px; margin: 0 auto; padding: 44px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 12px; font: 800 12px var(--font); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; }
.crumbs::before { content: ""; width: 34px; height: 3px; background: var(--yellow); }
.crumbs a { color: var(--yellow); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }
.article h1 { font-size: clamp(40px, 5.6vw, 72px); font-stretch: 68%; font-weight: 900; line-height: .95; letter-spacing: -.025em; margin: 18px 0 18px; }
.article .deck { font-size: 21px; line-height: 1.5; color: #d9d5cc; margin: 0 0 22px; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline .who { font: 700 15px var(--font); }
.byline time { display: block; font-size: 14px; color: var(--text-3); }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: none; font: 700 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text); cursor: pointer; transition: border-color 140ms ease; }
.share a:hover, .share button:hover { border-color: var(--yellow); }
.article figure { margin: 26px 0 0; }
.article figcaption { font-size: 14px; color: var(--text-3); padding-top: 10px; }
.prose { font-size: 19px; line-height: 1.7; margin-top: 26px; max-width: 68ch; color: #e6e2da; }
.prose > p:first-of-type::first-letter { float: left; font: 900 84px/.78 var(--font); font-stretch: 62%; padding: 6px 10px 0 0; color: var(--yellow); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 30px; font-stretch: 75%; margin: 1.4em 0 .5em; color: var(--text); }
.prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: .18em; }
.prose strong { color: var(--text); }
.related-block { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }
.related-block .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 14px; }
.related-block .ph { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.related-block h3 { font-size: 20px; }

/* ── Búsqueda ─────────────────────────────────────────────── */
.search-page { max-width: 860px; margin: 0 auto; padding: 44px 0 24px; }
.search-page h1 { font-size: clamp(44px, 6vw, 84px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; }
.search-page form { display: flex; gap: 8px; margin: 24px 0 8px; }
.search-page input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 400 19px var(--font); }
.search-page input::placeholder { color: var(--text-3); }
.search-page input:focus-visible { border-color: var(--yellow); outline-offset: 0; }
.search-page .btn { height: 56px; padding: 0 24px; }
.search-page .count { color: var(--text-3); font-size: 15px; margin: 8px 0 0; min-height: 1.4em; }

/* ── Movimiento reducido ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero h1 .line > span, .hero .deck, .hero-actions, .hero-related { animation: none; }
  .hero mark { animation: none; background-size: 100% 82%; }
  .hero-media img, .read, .read svg, .btn, .skip, .nav a, .share a, .share button, .icon { transition: none; }
}

/* ── Escritorio con línea larga: el titular no se corta ───── */
@media (min-width: 721px) {
  .hero h1 .line { white-space: nowrap; }
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav a { font-size: 13.5px; }
  .nav ul { gap: 16px; }
}
@media (max-width: 1100px) {
  .bar { gap: 18px; }
  .hero-media::before { background:
    linear-gradient(90deg, rgba(12, 12, 13, .84) 0%, rgba(12, 12, 13, .9) 40%, rgba(12, 12, 13, .86) 66%, rgba(12, 12, 13, .4) 80%, rgba(12, 12, 13, 0) 92%),
    linear-gradient(0deg, rgba(12, 12, 13, .9) 0%, rgba(12, 12, 13, 0) 34%); }
  .hero-copy { width: 70%; }
  .also .wrap { grid-template-columns: repeat(3, 1fr); }
  .also .lbl { display: none; }
  .also a:first-of-type { border-left: 0; padding-left: 0; }
  .front { grid-template-columns: 1fr 1fr; }
  .latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .row { grid-template-columns: 1fr 1fr; }
  .row > h2 { grid-column: 1 / -1; font-size: 36px; }
  .row .card.main { grid-column: 1 / -1; }
  .ranked-row { grid-template-columns: 1fr; }
  .ranked { grid-template-columns: repeat(3, 1fr); }
  .opinion .grid { grid-template-columns: 1fr 1fr; }
  .related-block .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) {
  .site-header .nav { display: none; }
  .m-nav { display: block; border-top: 1px solid var(--line); }
  .m-nav ul { list-style: none; margin: 0 auto; max-width: var(--maxw); padding: 0 var(--g); display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .m-nav ul::-webkit-scrollbar { display: none; }
  .m-nav a { display: block; padding: 12px 0 10px; white-space: nowrap; font: 600 14.5px var(--font); color: var(--text-2); border-bottom: 3px solid transparent; }
  .m-nav a[aria-current="page"] { color: var(--text); border-color: var(--yellow); }
  .hero-stage { min-height: clamp(560px, calc(100vh - var(--header) - 46px), 760px); }
}

/* ── Móvil ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --g: 16px; --header: 58px; }
  .bar { gap: 12px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo i { width: 11px; height: 11px; }
  .btn .lg { display: none; }
  .btn .sm { display: inline; }
  .tools .btn { padding: 0 12px; }
  .hero-stage { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 4 / 3.4; z-index: 0; }
  .hero-media::before { background: linear-gradient(0deg, var(--bg) 2%, rgba(12, 12, 13, .5) 32%, rgba(12, 12, 13, 0) 60%); }
  .crop.tl { left: 16px; top: 16px; }
  .crop.tr { right: 16px; top: 16px; }
  .crop.br, .credit { display: none; }
  .hero-copy { width: auto; padding: 0 0 28px; margin-top: -84px; z-index: 2; }
  .stamp { margin-bottom: 16px; font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero .deck { font-size: 17px; margin-top: 18px; }
  .read { height: 48px; }
  .hero-related { display: none; }
  .also { position: static; }
  .also .wrap { grid-template-columns: 1fr; }
  .also a { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .also a:first-of-type { border-top: 0; }
  .front, .row, .opinion .grid, .related-block .grid { grid-template-columns: 1fr; }
  .ranked { grid-template-columns: 1fr; gap: 0; }
  .ranked li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 14px 0; }
  .ranked li::before { font-size: 40px; margin: 0; }
  .ranked-row > h2, .row > h2 { font-size: 32px; }
  .newsletter { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .newsletter .row-f { flex-direction: column; }
  .ad.leader { height: 100px; }
  .sec-head { display: block; padding: 28px 0 20px; }
  .sec-head h1 { font-size: clamp(48px, 16vw, 72px); }
  .sec-head p { margin-top: 10px; font-size: 16px; }
  .sec-lead { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .sec-list li { grid-template-columns: 112px 1fr; gap: 14px; padding: 18px 0; }
  .sec-list h2 { font-size: 19px; }
  .sec-list p { display: none; }
  .article { padding-top: 26px; }
  .article .deck { font-size: 18px; }
  .article figure { margin-left: calc(var(--g) * -1); margin-right: calc(var(--g) * -1); }
  .article figcaption { padding-left: var(--g); padding-right: var(--g); }
  .prose { font-size: 18px; }
  .search-page form { flex-direction: column; }
}

/* ── Ajustes propios de WordPress ─────────────────────────── */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
.prose img { height: auto; max-width: 100%; }
.prose figure, .prose .wp-block-image { margin: 1.6em 0; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { font-size: 14px; color: var(--text-3); padding-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose iframe, .prose embed, .prose video { max-width: 100%; }
.prose .wp-block-embed { margin: 1.6em 0; }
.prose .wp-block-pullquote { border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); padding: 1em 0; }
.ad-slot { margin: 36px 0; display: flex; justify-content: center; }
.ad-slot.box { margin: 20px 0 0; }
.pagination { padding: 30px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 700; }
.pagination .page-numbers.current { background: var(--yellow); color: #000; border-color: var(--yellow); }
.pagination a.page-numbers:hover { border-color: var(--yellow); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* Titular del banner principal (h2 en la portada) */
.hero-title { font-size: clamp(42px, 5.3vw, 86px); line-height: .92; font-stretch: 66%; font-weight: 900; letter-spacing: -.028em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .line:nth-child(3) > span { animation-delay: .16s; }
.hero-title .line:nth-child(4) > span { animation-delay: .24s; }
.hero-title .line:nth-child(n+5) > span { animation-delay: .32s; }
@media (min-width: 721px) { .hero-title .line { white-space: nowrap; } }
@media (max-width: 720px) { .hero-title { font-size: clamp(38px, 11vw, 54px); } }
@media (prefers-reduced-motion: reduce) { .hero-title .line > span { animation: none; } }

/* Palabras clave resaltadas dentro de la noticia */
.article h1 mark { color: #0c0c0d; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 82% no-repeat; padding: 0 .08em; animation: marker .7s .3s var(--ease) forwards; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose mark, .prose .has-inline-color.has-background { color: #0c0c0d; background: var(--yellow); padding: 0 .15em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-reduced-motion: reduce) { .article h1 mark { animation: none; background-size: 100% 82%; } }

/* Logo: la R en amarillo */
.logo .r { color: var(--yellow); }

/* ── Modo claro de lectura (página de la noticia) ─────────────
   Se activa con html[data-lectura="clara"]; la elección se guarda en el navegador. */
html[data-lectura="clara"] {
  color-scheme: light;
  --bg: #faf8f3;
  --surface: #f0ece3;
  --line: #ddd6c8;
  --text: #161512;     /* 17:1 */
  --text-2: #45413a;   /* 9.6:1 */
  --text-3: #625d54;   /* 6.2:1 */
  --accent-ink: #7a5600; /* amarillo oscuro para texto: 6.3:1 */
}
html[data-lectura="clara"] body { background: var(--bg); }
html[data-lectura="clara"] .site-header { background: rgba(250, 248, 243, .96); }
html[data-lectura="clara"] .article .deck,
html[data-lectura="clara"] .prose { color: var(--text-2); }
html[data-lectura="clara"] .prose strong,
html[data-lectura="clara"] .prose h2,
html[data-lectura="clara"] .prose blockquote { color: var(--text); }
html[data-lectura="clara"] .crumbs a,
html[data-lectura="clara"] .prose a,
html[data-lectura="clara"] .meta b,
html[data-lectura="clara"] .head a,
html[data-lectura="clara"] .newsletter h2 em,
html[data-lectura="clara"] .newsletter .msg.ok,
html[data-lectura="clara"] .logo .r,
html[data-lectura="clara"] .prose > p:first-of-type::first-letter,
html[data-lectura="clara"] .prose blockquote::before { color: var(--accent-ink); }
html[data-lectura="clara"] .prose blockquote { border-color: var(--accent-ink); }
html[data-lectura="clara"] .nav a[aria-current="page"],
html[data-lectura="clara"] .m-nav a[aria-current="page"] { border-color: var(--accent-ink); }
html[data-lectura="clara"] :focus-visible { outline-color: var(--accent-ink); }
html[data-lectura="clara"] ::selection { background: var(--yellow); color: #000; }
html[data-lectura="clara"] a:hover .hl, html[data-lectura="clara"] a:focus-visible .hl { text-decoration-color: var(--accent-ink); }
html[data-lectura="clara"] .newsletter input { background: #fff; }
html[data-lectura="clara"] .newsletter .msg.err { color: #a3161d; }
html[data-lectura="clara"] .newsletter input[aria-invalid="true"] { border-color: #a3161d; }

/* Botón de modo de lectura */
.modo { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: none; font: 700 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text); cursor: pointer; transition: border-color 140ms ease; }
.modo:hover { border-color: var(--yellow); }
html[data-lectura="clara"] .modo:hover { border-color: var(--accent-ink); }
.modo .luna { display: none; }
html[data-lectura="clara"] .modo .luna { display: block; }
html[data-lectura="clara"] .modo .sol { display: none; }
.byline-tools { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Subtítulos y citas destacadas ──────────────────────────── */
.prose h2 { position: relative; padding-top: 18px; margin-top: 1.6em; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px; background: var(--yellow); }
.prose h3 { font-size: 23px; font-stretch: 80%; margin: 1.3em 0 .4em; color: var(--text); }
.prose blockquote { position: relative; margin: 1.8em 0; padding: 18px 0 18px 26px; border-left: 3px solid var(--yellow); font-size: clamp(22px, 2.4vw, 28px); font-stretch: 80%; font-weight: 800; line-height: 1.22; color: var(--text); }
.prose blockquote::before { content: "“"; position: absolute; left: 22px; top: -24px; font: 900 84px/1 var(--font); color: var(--yellow); }
.prose blockquote p { margin: 0; padding-top: 18px; }
.prose blockquote p + p, .prose blockquote cite, .prose blockquote footer { display: block; margin-top: 12px; padding-top: 0; font: 600 13px/1.4 var(--font); font-stretch: 100%; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.prose .wp-block-pullquote blockquote { border-left: 0; padding-left: 0; text-align: left; }
@media (max-width: 720px) {
  .prose blockquote { padding-left: 18px; }
  .prose blockquote::before { left: 14px; font-size: 68px; top: -18px; }
}
