/*
Theme Name: Alerta Magdalena
Theme URI: https://alertamagdalena.com
Author: DevMerk
Author URI: https://devmerk.com
Description: Tema a medida para Alerta Magdalena, medio de noticias de Santa Marta y el Magdalena. Mobile first, rápido y pensado para SEO de noticias.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: alerta
*/

/* ==========================================================================
   Identidad
   - Rojo de alerta como único color de marca; cada sección tiene su propio color (--c).
   - El globo del logo se repite como forma: etiquetas y marcadores con la esquina inferior izquierda recta.
   - Paneles en "noche" (casi negro azulado) para lo que se lee rápido: Más leídas, pie.
   ========================================================================== */
:root {
	--red: #b91d20;
	--red-ink: #8e1316;
	--red-soft: #fbeaea;
	--ink: #121316;
	--ink-2: #34363b;
	--muted: #5d6068;
	--line: #e6e3df;
	--paper: #ffffff;
	--paper-2: #f5f3f0;
	--night: #15171c;
	--night-2: #1f2229;
	--night-line: rgba(255,255,255,.1);
	--focus: #1d4ed8;

	--f-head: "Archivo", "Arial Narrow", Arial, sans-serif;
	--f-body: "Newsreader", Georgia, "Times New Roman", serif;

	--gutter: 16px;
	--max: 1398px; /* 1350 px de contenido + márgenes */
	--radius: 12px;
	--radius-sm: 8px;
	--bubble: 7px 7px 7px 0;
	--shadow: 0 1px 2px rgba(18,19,22,.06), 0 8px 24px -12px rgba(18,19,22,.18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-head);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-family: var(--f-head); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--sm .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-ink); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--paper-2); color: var(--red-ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.icon-btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-width: 44px; min-height: 44px; padding: 0 10px; margin: 0 -10px;
	background: none; border: 0; border-radius: var(--radius-sm);
	font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
}
.icon-btn:hover { color: var(--red); }
.icon-btn__label { display: none; }

/* ---------- Etiqueta de sección (forma de globo) ---------- */
.chip {
	--c: var(--red);
	display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px 3px;
	border-radius: var(--bubble); background: var(--c); color: #fff;
	font-weight: 800; font-size: 11.5px; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase;
	font-stretch: 90%;
}
a.chip:hover { color: #fff; filter: brightness(.9); }
.kicker { display: inline-block; margin-bottom: 6px; font-weight: 800; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.time, .story__meta { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Punto "en vivo" */
.live-dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Barra superior (escritorio) ---------- */
.topbar { display: none; background: var(--night); color: #c9cbd1; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__link { font-weight: 700; color: #fff; }
.topbar__link:hover { color: #ff9ea0; }

/* ---------- Cabecera ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .masthead { top: 46px; }
.masthead__in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { margin: 0; justify-self: center; font-size: 0; }
.brand__link { display: block; }
.brand__img, .brand .logo { height: 40px; width: auto; }
.masthead__search, .masthead__ad { display: none; }
.masthead__end { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

.sections { border-top: 1px solid var(--line); }
.sections__list {
	display: flex; gap: 2px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
	list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
	mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.sections__list::-webkit-scrollbar { display: none; }
.sections__list li { scroll-snap-align: start; flex: none; }
.sections__list a {
	display: flex; align-items: center; min-height: 46px; padding: 0 10px;
	font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
	white-space: nowrap; color: var(--ink-2); border-bottom: 3px solid transparent;
}
.sections__list a:hover { color: var(--red); }
.sections__list .current-menu-item > a,
.sections__list .current-post-ancestor > a,
.sections__list .current-menu-parent > a { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Última hora ---------- */
.breaking { background: var(--red); color: #fff; }
.breaking__in { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.breaking__tag { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 4px 9px; border-radius: var(--bubble); background: #fff; color: var(--red); font-weight: 900; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.breaking__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.breaking__list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.breaking__list::-webkit-scrollbar { display: none; }
.breaking__list li { flex: none; max-width: 85vw; scroll-snap-align: start; }
.breaking__list a { display: block; padding: 10px 0; font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.breaking__list a:hover { color: #fff; text-decoration: underline; }

/* ---------- Panel (menú + búsqueda) ---------- */
.panel { margin: 0; padding: 0; border: 0; width: min(88vw, 380px); max-width: none; height: 100dvh; max-height: none; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.panel[open] { animation: slide-in .26s var(--ease); }
.panel::backdrop { background: rgba(18,19,22,.55); }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.panel__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 20px; border-bottom: 1px solid var(--line); }
.panel__title { font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--red); font-stretch: 80%; font-size: 18px; }
.panel .search-form { padding: 20px; border-bottom: 1px solid var(--line); }
.panel__menu { list-style: none; margin: 0; padding: 8px 0; }
.panel__menu a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; font-weight: 800; font-size: 20px; font-stretch: 85%; border-bottom: 1px solid var(--line); }
.panel__menu a:hover { background: var(--paper-2); }
.panel__ad { padding: 20px 20px 0; }
.panel__ad .btn { width: 100%; }
.panel__foot { padding: 24px 20px 32px; }
.panel__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }

/* ---------- Búsqueda ---------- */
.search-form__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.search-form__row { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }
.search-form .btn { min-width: 48px; padding: 0 14px; border-radius: var(--radius-sm); }
.search-form--inline { margin-top: 16px; max-width: 560px; }

/* ---------- Redes ---------- */
.social { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.social--top a { width: 32px; height: 32px; color: #c9cbd1; }
.social--top a:hover { color: #fff; }
.social--top .icon { width: 17px; height: 17px; }
.social--panel a { background: var(--paper-2); }
.social--panel a:hover { background: var(--red); color: #fff; }
.social--footer a { background: rgba(255,255,255,.08); color: #fff; }
.social--footer a:hover { background: var(--red); color: #fff; }

/* ---------- Tarjetas ---------- */
.story { position: relative; }
.story__media { display: block; position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; border-radius: var(--radius); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.story:hover .story__media img { transform: scale(1.04); }
.media__fallback { position: absolute; inset: 0; background: linear-gradient(135deg, var(--red) 0%, var(--red-ink) 100%); }
.media__fallback::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font: 900 48px/1 var(--f-head); }
.story__body .chip { margin-bottom: 8px; }
.story__title { font-weight: 800; letter-spacing: -.01em; font-stretch: 92%; text-wrap: pretty; }
.story__title a:hover { color: var(--red); }
.story__dek { margin-top: 8px; font-family: var(--f-body); font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.story__meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

.story--lead .story__media { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
.story--lead .story__body { padding-top: 14px; }
.story--lead .story__title { font-size: clamp(27px, 7vw, 44px); line-height: 1.06; font-weight: 900; font-stretch: 80%; letter-spacing: -.015em; }

.story--card .story__body { padding-top: 12px; }
.story--card .story__title { font-size: 19px; line-height: 1.18; }

.story--row { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: start; }
.story--row .story__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: var(--radius-sm); }
.story--row .story__body { grid-column: 1; grid-row: 1; }
.story--row .story__title { font-size: 17px; line-height: 1.22; }

.story--list .story__title { font-size: 16px; }

/* Mini: franja superior */
.story--mini { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; }
.story--mini .story__media { aspect-ratio: 1; border-radius: var(--radius-sm); }
.story--mini .story__title { font-size: 15px; line-height: 1.22; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story--mini .story__title a::after { content: ""; position: absolute; inset: 0; }
.story--mini .story__meta { margin-top: 4px; font-size: 12px; }
.story__sec { color: var(--c); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.story__sec::after { content: "·"; margin-left: 8px; color: var(--muted); }

/* Sobre la foto */
.story--over { border-radius: var(--radius); overflow: hidden; background: var(--night); min-height: 220px; isolation: isolate; }
.story--over .story__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.story--over .story__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,0) 25%, rgba(10,11,14,.55) 55%, rgba(10,11,14,.92) 100%); }
.story--over .story__body { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 100%; min-height: inherit; padding: 16px; color: #fff; }
.story--over .story__title { font-size: 19px; line-height: 1.18; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.story--over .story__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story--over .story__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.story--over .story__dek { color: rgba(255,255,255,.88); font-size: 16px; }
.story--over .story__meta, .story--over .time { color: rgba(255,255,255,.8); }
.story--over.story--big { min-height: 380px; }
.story--over.story--big .story__title { font-size: clamp(24px, 6vw, 30px); font-weight: 900; font-stretch: 82%; line-height: 1.06; }

/* ---------- Portada: franja ---------- */
.strip { padding-top: 16px; }
.strip__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
	margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip__list::-webkit-scrollbar { display: none; }
.strip__list > * { scroll-snap-align: start; }

/* ---------- Portada: carrusel + Más leídas ---------- */
.hero { display: grid; gap: 18px; padding-top: 16px; }
.hero__main { min-width: 0; margin: 0 calc(var(--gutter) * -1); }

.hero-slider { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.hero-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; color: #fff; }
.slide picture, .slide__media { position: absolute; inset: 0; z-index: -1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--news .slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,.05) 20%, rgba(10,11,14,.6) 52%, rgba(10,11,14,.95) 100%); }
.slide__body { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px var(--gutter) 64px; }
.slide__title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-weight: 900; font-size: clamp(25px, 7.4vw, 34px); line-height: 1.04; letter-spacing: -.01em; font-stretch: 80%; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.slide__title a::after { content: ""; position: absolute; inset: 0; }
.slide__title a:hover { color: #fff; }
.slide__dek { display: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--f-body); font-size: 18px; line-height: 1.4; color: rgba(255,255,255,.88); max-width: 620px; }
.slide__meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,.85); }
.slide__meta .time { color: inherit; }
.slide__cta { display: none; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.slide__cta .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.slide--news:hover .slide__cta .icon { transform: translateX(3px); }
.slide--banner { display: block; background: var(--night); }
.slide__ad { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 4px; background: rgba(18,19,22,.72); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hero-slider__ui { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter) 12px; pointer-events: none; }
.hero-slider__ui > * { pointer-events: auto; }
.hero-slider__dots { display: flex; align-items: center; gap: 2px; }
.hero-slider__dot { position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: none; }
.hero-slider__dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,255,255,.4); transition: background-color .2s var(--ease); }
.hero-slider__dot[aria-current="true"]::before { background: #fff; }
.hero-slider__dot[aria-current="true"]::after { content: ""; position: absolute; left: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--red); width: 0; animation: fill 6.5s linear forwards; }
.is-paused .hero-slider__dot::after { animation: none !important; width: 0 !important; }
@keyframes fill { to { width: calc(100% - 8px); } }
.hero-slider__btns { display: flex; gap: 6px; }
.hero-slider__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(18,19,22,.45); color: #fff; backdrop-filter: blur(6px); transition: background-color .2s var(--ease); }
.hero-slider__btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hero-slider__btn .icon { width: 20px; height: 20px; }
.js-prev, .js-next { display: none; }

/* Más leídas */
.top-read { background: var(--night); color: #fff; border-radius: var(--radius); padding: 18px 18px 6px; }
.top-read__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.top-read__title { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; text-transform: uppercase; font-stretch: 80%; letter-spacing: .01em; }
.top-read__title .icon { color: #ff5a5e; width: 20px; height: 20px; }
.top-read__sub { font-size: 12.5px; color: #a9acb5; }
.top-read__list { margin: 0; padding: 0; list-style: none; }
.top-read__item { position: relative; display: grid; grid-template-columns: 34px 1fr 64px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.top-read__item:last-child { border-bottom: 0; }
.top-read__n { font-weight: 900; font-size: 34px; line-height: 1; color: #ff5a5e; font-stretch: 75%; text-align: center; }
.top-read__link { font-weight: 700; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.top-read__link::after { content: ""; position: absolute; inset: 0; }
.top-read__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.top-read__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.top-read__meta .chip { min-height: 18px; padding: 2px 6px; font-size: 10px; }
.top-read__meta .time { color: #a9acb5; font-size: 12px; }
.top-read__img { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--night-2); }
.top-read__img img { width: 100%; height: 100%; object-fit: cover; }
.top-read__item:not(:has(.top-read__img)) { grid-template-columns: 34px 1fr; }

/* ---------- Bloques ---------- */
.block, .section { padding-block: 32px 8px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block__title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; font-stretch: 78%; }
.block__title::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px 4px 4px 0; background: var(--c, var(--red)); }
.latest-box .block__title::before { display: none; }
.block__title a:hover { color: var(--c, var(--red)); }
.block__more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; font-weight: 700; font-size: 14px; color: var(--c, var(--red)); white-space: nowrap; }
.block__more .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.block__more:hover { color: var(--ink); }
.block__more:hover .icon { transform: translateX(3px); }

.block--split { display: grid; gap: 28px; }
.block__main { min-width: 0; }
.mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mosaic > .story--big { grid-column: 1 / -1; }
.mosaic > .story--over:not(.story--big) { min-height: 200px; }
.mosaic > .story--over:not(.story--big) .story__title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story--over.story--big .story__title { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mosaic > .story--over:not(.story--big) .story__body { padding: 12px; }

/* Lo último: línea de tiempo */
.latest-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; background: #fff; box-shadow: var(--shadow); align-self: start; }
.latest-box .block__head { margin-bottom: 6px; }
.latest-box .block__title { font-size: 22px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item { position: relative; display: grid; gap: 3px; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline__item::after { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.timeline__item:first-child::before { top: 17px; }
.timeline__item .time { color: var(--red); font-weight: 700; font-size: 12.5px; }
.timeline__item a { font-weight: 700; font-size: 15.5px; line-height: 1.28; }

/* Secciones */
.section__grid { display: grid; gap: 18px; }
.section__grid .story--row { padding-top: 18px; border-top: 1px solid var(--line); }
.section .story--card .story__title { font-size: 22px; }
.grid-4 { display: grid; gap: 22px; }

/* Llamado a seguir */
.follow { padding-block: 36px 8px; }
.follow__in { position: relative; display: grid; gap: 18px; padding: 28px 22px; border-radius: var(--radius); background: var(--red); color: #fff; overflow: hidden; isolation: isolate; }
.follow__in::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 200px; border: 18px solid rgba(255,255,255,.1); border-radius: 36px 36px 36px 0; z-index: -1; }
.follow__title { font-weight: 900; font-size: 32px; text-transform: uppercase; font-stretch: 75%; }
.follow__text { margin-top: 6px; font-size: 17px; opacity: .92; }
.follow__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Franja de pauta */
.ad-cta { padding-block: 28px 8px; }
.ad-cta__in { display: grid; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.ad-cta__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px 14px 14px 0; background: var(--red); color: #fff; }
.ad-cta__icon .icon { width: 28px; height: 28px; }
.ad-cta__title { font-weight: 900; font-size: 24px; font-stretch: 82%; }
.ad-cta__text p { margin-top: 4px; color: var(--ink-2); }
.ad-cta .btn { justify-self: start; }

/* Publicidad */
.ad-slot { margin: 24px auto; text-align: center; }
.ad-slot__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot__inner img { margin-inline: auto; border-radius: var(--radius-sm); }

/* ---------- Noticia ---------- */
.article__head { max-width: 820px; padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { display: inline-block; padding: 4px 0; }
.crumbs a:hover { color: var(--red); }
.article__head .chip { margin-bottom: 12px; }
.article__title { font-weight: 900; font-size: clamp(29px, 7.6vw, 52px); line-height: 1.05; letter-spacing: -.015em; font-stretch: 80%; text-wrap: balance; }
.article__dek { margin-top: 14px; font-family: var(--f-body); font-size: 20px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.byline__avatar { border-radius: 50%; width: 44px; height: 44px; }
.byline__author { font-weight: 700; font-size: 15px; }
.byline__author a { color: var(--red); }
.byline__meta { font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.share__btn .icon { width: 19px; height: 19px; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn--wa { background: #1f7a4c; border-color: #1f7a4c; color: #fff; padding: 0 16px; }
.share__btn--wa:hover { background: #17603b; border-color: #17603b; color: #fff; }
.share__btn.is-copied { background: var(--ink); color: #fff; border-color: var(--ink); }

.article__figure { margin: 20px auto 0; max-width: 1200px; }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { padding-top: 8px; font-size: 13.5px; color: var(--muted); }
.article__layout { max-width: 760px; padding-top: 22px; padding-bottom: 12px; }

.prose { font-family: var(--f-body); font-size: 19px; line-height: 1.68; color: #1d1d1d; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.7em; font-size: 26px; font-weight: 800; font-stretch: 85%; line-height: 1.15; }
.prose h3 { margin-top: 1.5em; font-size: 21px; font-weight: 800; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-ink); }
.prose strong { font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--red); font-size: 22px; line-height: 1.4; font-style: italic; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 8px; font: 600 14px/1.3 var(--f-head); font-style: normal; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--radius-sm); }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font: 400 14px/1.4 var(--f-head); color: var(--muted); }
.prose iframe, .prose .wp-block-embed { max-width: 100%; }
.prose .wp-block-embed__wrapper { display: flex; justify-content: center; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--f-head); }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.article__body > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font: 900 64px/.82 var(--f-head); color: var(--red); font-stretch: 80%; }

.article__foot { margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); font-weight: 600; font-size: 14px; }
.tags a:hover { background: var(--red-soft); color: var(--red-ink); }
.share-end { padding: 18px 0; border-block: 1px solid var(--line); }
.share-end__label { font-weight: 800; font-size: 15px; }
.share-end .share { margin-top: 10px; }
.author-box { display: flex; gap: 14px; margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--paper-2); }
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-weight: 800; }
.author-box__bio { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.related { margin-top: 12px; }
.related .section__title, .section__title { font-weight: 900; font-size: 26px; text-transform: uppercase; font-stretch: 78%; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.page-single { max-width: 760px; padding-block: 28px 48px; }
.page-single .prose { margin-top: 20px; }

/* ---------- Página Paute aquí ---------- */
.ad-hero { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.ad-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 85% 20%, rgba(185,29,32,.55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(185,29,32,.25), transparent 70%); }
.ad-hero__in { display: grid; gap: 32px; padding-block: 44px 48px; }
.ad-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--bubble); background: var(--red); font-weight: 800; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.ad-hero__eyebrow .icon { width: 16px; height: 16px; }
.ad-hero__title { margin-top: 16px; font-weight: 900; font-size: clamp(38px, 10vw, 68px); line-height: .98; font-stretch: 75%; letter-spacing: -.01em; text-transform: uppercase; }
.ad-hero__lead { margin: 16px 0 26px; max-width: 560px; font-family: var(--f-body); font-size: 20px; line-height: 1.45; color: rgba(255,255,255,.88); }
.ad-hero__fact { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: #fff; }
.ad-hero__fact .icon { color: #ff7a7d; width: 20px; height: 20px; }
.ad-hero__devices { position: relative; height: 220px; max-width: 420px; }
.dev { position: absolute; display: block; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; background: var(--night-2); padding: 6px; }
.dev span { display: block; width: 100%; height: 100%; border-radius: 6px; background: linear-gradient(135deg, var(--red), #e2484b 60%, #ff8a8c); }
.dev--desk { left: 0; top: 0; width: 72%; aspect-ratio: 16/9; }
.dev--tab { left: 46%; top: 36%; width: 40%; aspect-ratio: 2/1; border-radius: 14px; }
.dev--cel { left: 82%; top: 22%; width: 18%; aspect-ratio: 9/18; border-radius: 16px; padding: 10px 4px; }
.dev--cel span { aspect-ratio: 1; height: auto; margin-top: 30%; }

.ad-block { padding-block: 40px 0; }
.ad-block__title { font-weight: 900; font-size: clamp(26px, 6vw, 36px); font-stretch: 80%; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ad-block__title::before { content: ""; width: 14px; height: 14px; border-radius: 4px 4px 4px 0; background: var(--red); flex: none; }
.ad-block__lead { margin-top: 10px; max-width: 680px; font-family: var(--f-body); font-size: 19px; color: var(--ink-2); }
.ad-block__note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.ad-places { display: grid; gap: 14px; margin-top: 20px; }
.ad-place { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.ad-place__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px 10px 10px 0; background: var(--red); color: #fff; font-weight: 900; }
.ad-place h3 { margin-top: 14px; font-size: 20px; font-weight: 800; font-stretch: 90%; }
.ad-place p { margin-top: 6px; color: var(--ink-2); }
.ad-sizes { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.ad-size { padding: 18px; border-radius: var(--radius); background: var(--paper-2); }
.ad-size__box { display: grid; place-items: center; width: 100%; max-height: 180px; margin-inline: auto; border: 2px dashed var(--red); border-radius: var(--radius-sm); background: #fff; color: var(--red); font-weight: 900; font-size: 20px; }
.ad-size:last-child .ad-size__box { width: 60%; }
.ad-size__name { margin-top: 14px; font-weight: 800; font-size: 18px; }
.ad-size__px { font-weight: 900; font-size: 26px; font-stretch: 80%; color: var(--red); }
.ad-size__desc { font-size: 14px; color: var(--muted); }
.ad-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.ad-steps li { position: relative; padding: 16px 16px 16px 64px; border-radius: var(--radius); background: var(--paper-2); counter-increment: paso; font-size: 17px; }
.ad-steps li::before { content: counter(paso); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 0; background: var(--ink); color: #fff; font-weight: 900; }
.ad-final { padding-block: 44px 16px; }
.ad-final__in { display: grid; justify-items: center; gap: 10px; padding: 36px 22px; border-radius: var(--radius); background: var(--red); color: #fff; text-align: center; }
.ad-final__in h2 { font-weight: 900; font-size: clamp(28px, 7vw, 40px); font-stretch: 78%; text-transform: uppercase; }
.ad-final__in p { opacity: .92; margin-bottom: 8px; }
.ad-final .btn--primary { background: #fff; color: var(--red); }
.ad-final .btn--primary:hover { background: var(--paper-2); color: var(--red-ink); }

/* ---------- Listados ---------- */
.listing-head { padding-top: 24px; padding-bottom: 8px; }
.listing-head__title { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: clamp(30px, 8vw, 48px); text-transform: uppercase; font-stretch: 75%; }
.listing-head__title::before { content: ""; width: 18px; height: 18px; border-radius: 5px 5px 5px 0; background: var(--c, var(--red)); flex: none; }
.listing-head__page { color: var(--muted); font-size: .6em; }
.listing-head__desc { margin-top: 8px; font-family: var(--f-body); font-size: 18px; color: var(--ink-2); max-width: 680px; }
.listing { padding-bottom: 40px; }
.listing__list { display: grid; gap: 18px; }
.listing__list .story--row { padding-top: 18px; border-top: 1px solid var(--line); }
.listing__list .story--lead { padding-bottom: 6px; }
.listing__aside:empty { display: none; }

.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers.dots { border: 0; }
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

.empty { padding-block: 56px; text-align: center; }
.empty h1, .empty h2 { font-weight: 900; font-size: 32px; font-stretch: 80%; }
.empty p { margin-top: 10px; color: var(--ink-2); }
.empty a:not(.btn) { color: var(--red); text-decoration: underline; }
.empty .search-form { margin: 22px auto; }
.empty--404 .btn { margin-top: 8px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 48px; background: var(--night); color: #c3c6cd; }
.site-footer__in { display: grid; gap: 32px; padding-block: 44px 30px; }
.site-footer__logo .logo { height: 48px; width: auto; }
.site-footer__brand p { margin: 16px 0 16px; max-width: 380px; font-size: 15px; }
.site-footer__h { margin-bottom: 10px; font-weight: 800; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__h--gap { margin-top: 26px; }
.site-footer__txt { margin-bottom: 14px; font-size: 15px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; font-size: 15px; color: #e4e5e9; }
.footer-menu a:hover { color: #ff9ea0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-block: 18px 26px; border-top: 1px solid var(--night-line); font-size: 13px; color: #9a9da6; }
.site-footer__legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Bloques de WordPress ---------- */
.alignwide { margin-inline: 0; }
.wp-block-image img { height: auto; }
.wp-block-pullquote { padding: 20px 0; border-block: 3px solid var(--ink); text-align: left; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }

/* Lo último sin notas */
.latest-empty { padding: 16px 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ========== Tablet (640+) ========== */
@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.icon-btn__label { display: inline; }
	.masthead__in { grid-template-columns: 120px 1fr 120px; }
	.brand__img, .brand .logo { height: 46px; }

	.strip__list { grid-auto-columns: calc(50% - 6px); }

	.hero__main { margin: 0; }
	.hero-slider { border-radius: var(--radius); }
	.slide { aspect-ratio: 2 / 1; }
	.slide__body { padding: 28px 28px 70px; max-width: 760px; }
	.slide__title { font-size: 34px; }
	.slide__cta { display: inline-flex; }
	.hero-slider__ui { padding: 0 20px 14px; }
	.js-prev, .js-next { display: inline-grid; }

	.top-read__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
	.top-read__item:nth-last-child(2) { border-bottom: 0; }

	.mosaic { grid-template-columns: repeat(2, 1fr); }
	.story--over.story--big { min-height: 420px; }

	.story--lead .story__media { margin: 0; border-radius: var(--radius); }
	.story--row { grid-template-columns: 1fr 160px; }
	.story--row .story__media { aspect-ratio: 16 / 10; }
	.story--row .story__title { font-size: 19px; }

	.section__grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
	.section__grid > .story--card { grid-row: span 3; }
	.section__grid .story--row { grid-template-columns: 1fr 120px; }
	.section__grid .story--row:nth-child(2) { border-top: 0; padding-top: 0; }

	.grid-4 { grid-template-columns: 1fr 1fr; }
	.follow__in { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
	.ad-cta__in { grid-template-columns: auto 1fr auto; padding: 22px 28px; }
	.ad-cta .btn { justify-self: end; }

	.ad-places { grid-template-columns: 1fr 1fr; }
	.ad-steps { grid-template-columns: 1fr 1fr; }

	.site-footer__in { grid-template-columns: 1.4fr 1fr; }
}

/* ========== Escritorio (1024+) ========== */
@media (min-width: 1024px) {
	:root { --header-h: 78px; }
	.topbar { display: block; }
	.admin-bar .masthead { top: 32px; }
	.masthead__in { grid-template-columns: auto auto 1fr auto; gap: 24px; }
	.brand { justify-self: start; }
	.brand__img, .brand .logo { height: 54px; }
	.masthead__search { display: flex; align-items: center; justify-self: center; width: 100%; max-width: 440px; height: 46px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--paper-2); border: 1px solid transparent; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
	.masthead__search:focus-within { background: #fff; border-color: var(--ink); }
	.masthead__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
	.masthead__search button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; }
	.masthead__search button:hover { background: var(--red); color: #fff; }
	.masthead__search .icon { width: 19px; height: 19px; }
	.masthead__ad { display: inline-flex; }
	.masthead__find { display: none; }

	.sections__list { justify-content: center; mask-image: none; }
	.sections__list a { padding: 0 16px; }

	.strip { padding-top: 22px; }
	.strip__list { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }

	.hero { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 20px; padding-top: 22px; align-items: stretch; }
	.slide { aspect-ratio: 16 / 9; }
	.slide__body { padding: 36px 36px 78px; }
	.slide__title { font-size: 38px; -webkit-line-clamp: 3; }
	.slide__dek { display: -webkit-box; }
	.hero-slider__ui { padding: 0 28px 18px; }
	.top-read { display: flex; flex-direction: column; padding: 20px 20px 4px; }
	.top-read__list { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
	.top-read__item { flex: 1; padding: 10px 0; }
	.top-read__item:nth-last-child(2) { border-bottom: 1px solid var(--night-line); }

	.block, .section { padding-block: 44px 8px; }
	.block__title { font-size: 30px; }
	.block--split { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 20px; }
	.mosaic { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 230px 230px; }
	.mosaic > .story--big { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
	.mosaic > .story--over:not(.story--big) { min-height: 0; }
	.latest-box { margin-top: 0; }

	.section__grid { grid-template-columns: 1.6fr 1fr; column-gap: 28px; }
	.section .story--card .story__title { font-size: 28px; }
	.section__grid .story--row { grid-template-columns: 1fr 150px; }

	.grid-4 { grid-template-columns: repeat(4, 1fr); }

	.article__head { padding-top: 30px; }
	.article__dek { font-size: 22px; }
	.prose { font-size: 20px; }

	.listing { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
	.listing__list { max-width: 820px; }
	.listing__list .story--row { grid-template-columns: 1fr 220px; }
	.listing__list .story--row .story__title { font-size: 22px; }
	.listing__aside:empty { display: block; }

	.ad-hero__in { grid-template-columns: 1.2fr 1fr; align-items: center; padding-block: 72px; }
	.ad-hero__devices { height: 300px; max-width: none; }
	.ad-places { grid-template-columns: repeat(4, 1fr); }
	.ad-steps { grid-template-columns: repeat(4, 1fr); }
	.ad-steps li { padding: 64px 18px 18px; }
	.ad-steps li::before { top: 18px; transform: none; left: 18px; }

	.site-footer__in { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
	.footer-menu { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
