/*
Theme Name:        Diario
Theme URI:         https://fgjmultimedios.com/
Author:            FGJ Multimedios
Description:       Tema para periódico digital moderno y fácil de leer. Portada con últimas noticias, ranking de lo más leído (hoy, semana, mes) y bloques por categoría. Noticias con barra de progreso, tiempo de lectura, tamaño de letra ajustable, "Lee más", modo oscuro y cinta de última hora. Colores rojo, blanco y azul personalizables. Úsalo junto al plugin Diario Core.
Version:           1.4.0
Requires at least: 6.3
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:       diario
Tags:              news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--red: #EF3D1F;        /* rojo-naranja del logo (detalles, números, franjas) */
	--red-ink: #D1321A;    /* mismo tono, más oscuro: textos pequeños y fondos con letra blanca (contraste AA) */
	--blue: #004AAD;       /* azul del logo */
	--blue-deep: #002B66;  /* azul oscuro: barra superior, pie, "Lo más leído" */
	--white: #ffffff;

	--bg: #ffffff;
	--surface: #ffffff;
	--soft: #F2F5FA;
	--ink: #0F172A;
	--ink-2: #334155;
	--muted: #64748B;
	--line: #E2E8F0;
	--link: var(--blue);
	--kicker: var(--red-ink);
	--nav-bg: var(--blue);
	--footer-bg: var(--blue-deep);

	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 6px;
	--gap: 24px;
	--container: 1240px;
	--gutter: 16px;
	--article-scale: 1;
	--logo-h: 64px;
	--logo-h-m: 36px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0A1120;
	--surface: #0F1A2E;
	--soft: #111D33;
	--ink: #E8EDF5;
	--ink-2: #C3CCDA;
	--muted: #8C99AE;
	--line: #1F2D47;
	--link: #6FA3FF;
	--kicker: #FF6B55;
	--nav-bg: #0A2A5C;
	--footer-bg: #050C19;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0A1120;
		--surface: #0F1A2E;
		--soft: #111D33;
		--ink: #E8EDF5;
		--ink-2: #C3CCDA;
		--muted: #8C99AE;
		--line: #1F2D47;
		--link: #6FA3FF;
		--kicker: #FF6B55;
		--nav-bg: #0A2A5C;
		--footer-bg: #050C19;
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; background: var(--white); color: var(--blue); padding: 10px 16px; font-weight: 700; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--soft); }

.btn {
	display: inline-block; background: var(--red-ink); color: #fff; font-weight: 700;
	padding: 12px 22px; border-radius: var(--radius);
}
.btn:hover { background: var(--blue); text-decoration: none; }

.pulse {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: currentColor; margin-right: 8px; vertical-align: middle;
	animation: pulse 1.6s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,61,31,.55); } 70% { box-shadow: 0 0 0 8px rgba(239,61,31,0); } 100% { box-shadow: 0 0 0 0 rgba(239,61,31,0); } }

/* ==========================================================================
   3. Barra superior
   ========================================================================== */
.topbar { background: var(--blue-deep); color: #D6DEEB; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar__date { font-weight: 500; }
.topbar__data { display: inline-flex; gap: 16px; align-items: center; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.topbar__weather, .topbar__rate { white-space: nowrap; }
.topbar__rate { font-weight: 600; color: #fff; }
.topbar__nav, .topbar__social { margin-left: auto; }
.topbar__nav + .topbar__social { margin-left: 0; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.topbar a { color: #fff; }

/* ==========================================================================
   4. Cabecera (masthead)
   ========================================================================== */
.masthead { background: var(--surface); position: relative; z-index: 50; }
.masthead::after {
	/* Franja azul · blanco · rojo */
	content: ""; display: block; height: 4px;
	background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.masthead__inner {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
	padding-top: 12px; padding-bottom: 12px; gap: 28px;
}
.menu-toggle { display: none; }
.masthead__tools { justify-self: end; display: flex; gap: 4px; }

.brand { min-width: 0; }
.brand__title { font-size: inherit; margin: 0; line-height: 1; }
.brand__name {
	font-family: var(--serif); font-weight: 800; color: var(--blue);
	font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.02em;
	display: inline-block;
}
:root[data-theme="dark"] .brand__name { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__name { color: #fff; } }
.brand__name:hover { text-decoration: none; }
.brand__tagline { margin: 6px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* Logo con variantes */
.brand__logo { display: inline-flex; align-items: center; }
.brand__logo .logo { height: var(--logo-h); width: auto; max-width: min(360px, 40vw); object-fit: contain; }
.brand__logo .logo--mobile, .brand__logo .logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo.has-dark .logo--main,
:root[data-theme="dark"] .brand__logo.has-dark .logo--mobile { display: none !important; }
:root[data-theme="dark"] .brand__logo.has-dark .logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand__logo.has-dark .logo--main,
	:root:not([data-theme="light"]) .brand__logo.has-dark .logo--mobile { display: none !important; }
	:root:not([data-theme="light"]) .brand__logo.has-dark .logo--dark { display: block; }
}
.brand__logo--footer img { height: 48px; width: auto; }

/* Iconos de modo oscuro */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Buscador desplegable */
.searchbar { border-top: 1px solid var(--line); padding: 14px 0; background: var(--surface); }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form__input {
	flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px;
	border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.search-form__input:focus { border-color: var(--blue); outline: none; }
.search-form__btn { border: 0; border-radius: var(--radius); background: var(--blue); color: #fff; font-weight: 700; padding: 0 18px; }
.search-form__btn:hover { background: var(--red-ink); }

/* Secciones (en línea con el logo en computadora) */
.sections { min-width: 0; }
.sections .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0 2px; overflow-x: auto; scrollbar-width: none; }
.sections .menu::-webkit-scrollbar { display: none; }
.sections .menu > li { position: relative; }
.sections .menu > li > a {
	display: block; padding: 10px 9px; color: var(--ink); font-weight: 700; font-size: 14.5px;
	border-bottom: 3px solid transparent; white-space: nowrap;
}
.sections .menu > li > a:hover,
.sections .current-menu-item > a,
.sections .current-menu-ancestor > a,
.sections .current-post-ancestor > a { text-decoration: none; border-bottom-color: var(--red); color: var(--blue); }
:root[data-theme="dark"] .sections .menu > li > a:hover, :root[data-theme="dark"] .sections .current-menu-item > a { color: #fff; }
.sections .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px 0;
	background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.15); border-top: 3px solid var(--red); z-index: 60;
}
.sections .menu > li:hover > .sub-menu, .sections .menu > li:focus-within > .sub-menu { display: block; }
.sections .sub-menu a { display: block; padding: 8px 16px; color: var(--ink); font-weight: 500; }
.submenu-toggle { display: none; }
.drawer__head, .drawer__search { display: none; }

/* ==========================================================================
   5. Cinta de última hora
   ========================================================================== */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: stretch; overflow: hidden; }
.ticker__label {
	flex: none; display: flex; align-items: center; background: var(--red-ink); color: #fff;
	font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 14px; margin-right: 14px;
	position: relative;
}
.ticker__label .pulse { background: #fff; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; white-space: nowrap; width: max-content; }
.ticker__list li { padding: 11px 0; font-size: 14.5px; font-weight: 600; }
.ticker__list time { color: var(--kicker); font-weight: 700; margin-right: 6px; font-size: 13px; }
.ticker__list a { color: var(--ink); }
.ticker__list.is-animated { animation: ticker 40s linear infinite; }
.ticker__track:hover .ticker__list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   6. Encabezados de sección
   ========================================================================== */
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid var(--ink); margin: 44px 0 20px; padding-top: 14px;
}
.section-head__title {
	font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
	display: flex; align-items: center; gap: 10px;
}
.section-head__title::before { content: ""; width: 6px; height: 1.1em; background: var(--red); flex: none; }
.section-head__note { font-size: 14px; color: var(--muted); font-weight: 600; }
.section-head__title a { color: inherit; }
.section-head__live { font-size: 13px; color: var(--kicker); font-weight: 600; }
.section-head__more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ==========================================================================
   7. Tarjetas
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__body { min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue); text-decoration: none; }
:root[data-theme="dark"] .card__title a:hover { color: var(--link); }
.card__excerpt { color: var(--ink-2); font-size: 1rem; line-height: 1.5; margin: 8px 0 0; }
.card__meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }

.kicker {
	display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .09em; color: var(--kicker); margin-bottom: 6px;
}
a.kicker:hover { text-decoration: none; color: var(--blue); }
.kicker--breaking { background: var(--red-ink); color: #fff; padding: 3px 8px; border-radius: 3px; }
.kicker--custom { color: var(--blue); }
:root[data-theme="dark"] .kicker--custom { color: var(--link); }

.card--lead .card__body { padding-top: 14px; }
.card--lead .card__title { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.card--lead .card__excerpt { font-size: 1.08rem; }

.card--standard .card__body { padding-top: 12px; }
.card--standard .card__title { font-size: 1.12rem; line-height: 1.25; font-weight: 700; }

.card--row { display: grid; grid-template-columns: 1fr 128px; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card__media { order: 2; }
.card--row .card__media img { aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 1rem; line-height: 1.3; font-weight: 700; }
.card--row .card__excerpt { display: none; }

.card--compact { padding-top: 14px; border-top: 1px solid var(--line); }
.card--compact .card__title { font-size: 1rem; font-weight: 700; }

/* ==========================================================================
   8. Portada — 1. Últimas noticias
   ========================================================================== */
.home-latest { padding-top: 24px; }
.front {
	display: grid; gap: 0;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
	grid-template-areas: "left center right";
}
.front > * { padding: 0 22px; min-width: 0; }
.front__left { grid-area: left; padding-left: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.front__center { grid-area: center; }
.front__right { grid-area: right; padding-right: 0; border-left: 1px solid var(--line); }
.front__right .card--standard { margin-bottom: 8px; }
.front__right .card--row { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; }
.front__right .card--row .card__meta span:not(:first-child), .front__right .card--row .card__meta .dot { display: none; }
.front__right .card--row:first-of-type { border-top: 1px solid var(--line); padding-top: 14px; }

.headlines { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.headlines li { position: relative; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); }
.headlines li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.headlines a { color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.headlines a:hover { color: var(--blue); }
.headlines__time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.home-ad { margin-top: 36px; text-align: center; }

/* ==========================================================================
   9. Portada — 2. Lo más leído
   ========================================================================== */
.home-mostread { background: var(--blue-deep); color: #fff; margin-top: 52px; padding: 8px 0 36px; }
.home-mostread .section-head { border-top-color: rgba(255,255,255,.35); }
.home-mostread .section-head__title { color: #fff; }
.home-mostread .section-head__note { color: #AFC0DA; }
.home-mostread .mostread-item { border-bottom-color: rgba(255,255,255,.14); }
.home-mostread .mostread-item__title a { color: #fff; }
.home-mostread .mostread-item__views { color: #AFC0DA; }
.home-mostread .kicker { color: #FF7A63; }
.home-mostread .kicker--breaking { color: #fff; }

.mostread-grid {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mostread-item {
	display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
	padding: 18px 0; border-bottom: 1px solid var(--line);
}
.mostread-item__num {
	font-family: var(--serif); font-weight: 800; font-size: 3rem; line-height: .9;
	color: var(--red); min-width: 1.4ch; text-align: center;
}
.home-mostread .mostread-item:nth-child(n+4) .mostread-item__num { color: #fff; opacity: .55; }
.mostread-item .kicker { margin-bottom: 4px; }
.mostread-item__title { font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.mostread-item__title a { color: var(--ink); }
.mostread-item__views { display: inline-flex; gap: 5px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mostread-item__thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); }

/* Portada — Videos (franja oscura) */
.home-videos { background: #0B0F17; color: #fff; padding: 8px 0 40px; }
.home-mostread + .home-videos { padding-top: 0; }
.home-mostread + .home-videos .section-head { margin-top: 8px; }
.home-videos .section-head { border-top-color: rgba(255,255,255,.3); }
.home-videos .section-head__title { color: #fff; }
.videos-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; gap: var(--gap); }
.videos-grid .card--lead { grid-row: span 2; }
.videos-grid .card__title a { color: #fff; }
.videos-grid .card__title a:hover { color: #FFB3BC; }
.videos-grid .card__meta, .videos-grid .card__excerpt { color: #A9B4C6; }
.videos-grid .kicker { color: #FF7A63; }
.videos-grid .card--lead .card__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* Alerta (Última hora / En vivo) */
.alert { display: block; color: #fff; background: var(--red-ink); text-decoration: none !important; }
.alert--info { background: var(--blue); }
.alert__inner { display: flex; align-items: center; gap: 14px; padding-top: 11px; padding-bottom: 11px; }
.alert__label { flex: none; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; background: rgba(0,0,0,.2); padding: 5px 10px; border-radius: 3px; display: inline-flex; align-items: center; }
.alert__label .pulse { background: #fff; }
.alert__text { font-weight: 700; font-size: 16px; line-height: 1.3; }
.alert__go { margin-left: auto; font-size: 20px; }
a.alert:hover .alert__text { text-decoration: underline; text-underline-offset: 3px; }
.kicker--live { background: var(--red-ink); color: #fff; padding: 3px 8px 3px 6px; border-radius: 3px; display: inline-flex; align-items: center; }
.kicker--live .pulse { background: #fff; width: 7px; height: 7px; margin-right: 6px; }

/* ==========================================================================
   10. Portada — 3. Bloques por categoría
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); }
.cat-grid__lead .card__title { font-size: 1.5rem; }
.cat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.home-cat:last-of-type { margin-bottom: 56px; }

/* ==========================================================================
   11. Noticia individual
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 100; background: transparent; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); transform-origin: 0 50%; transform: scaleX(0); }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 28px; }
.article { max-width: 760px; min-width: 0; }
.article--page { margin: 32px auto 64px; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { opacity: .5; }

.article__title { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 14px; }
.article__dek { font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 20px; }

.article__byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.article__avatar { border-radius: 50%; }
.article__byline-text { display: flex; flex-direction: column; font-size: 14px; }
.article__author { font-weight: 700; }
.article__author a { color: var(--ink); }
.article__dates { color: var(--muted); font-size: 13px; }
.article__updated { display: block; }

.article__toolbar {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
	padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.article__stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.fontsize { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fontsize__btn { border: 0; background: transparent; color: var(--ink); font-weight: 700; padding: 6px 12px; font-size: 13px; }
.fontsize__btn + .fontsize__btn { border-left: 1px solid var(--line); }
.fontsize__btn:hover { background: var(--soft); }
.article__toolbar .share { margin-left: auto; }

.share { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border-radius: 50%; border: 0; background: var(--soft); color: var(--ink);
}
.share__btn:hover { color: #fff; text-decoration: none; }
.share__btn--whatsapp:hover { background: #25D366; }
.share__btn--facebook:hover { background: #1877F2; }
.share__btn--x:hover { background: #000; }
.share__btn--telegram:hover { background: #229ED9; }
.share__btn--email:hover, .share__btn--copy:hover { background: var(--blue); }
.share__btn.is-copied { background: var(--red-ink); color: #fff; }

.article__figure { margin: 0 0 28px; }
.article__figure img { width: 100%; border-radius: var(--radius); }
.article__figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }

/* Cuerpo del artículo: tipografía para leer cómodo */
.entry-content {
	font-family: var(--serif);
	font-size: calc(1.19rem * var(--article-scale));
	line-height: 1.75;
	color: var(--ink);
	max-width: 68ch;
	overflow-wrap: break-word;
}
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > p:first-of-type::first-letter {
	float: left; font-size: 3.6em; line-height: .85; font-weight: 800; color: var(--red);
	margin: .06em .1em 0 0;
}
.entry-content h2 { font-size: 1.55em; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.28em; margin-top: 1.6em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--red); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red);
	font-size: 1.2em; font-style: italic; color: var(--ink-2);
}
.entry-content blockquote cite { display: block; font-size: .7em; font-style: normal; color: var(--muted); margin-top: 8px; font-family: var(--sans); }
.entry-content .wp-block-pullquote { border-top: 4px solid var(--blue); border-bottom: 4px solid var(--blue); padding: 1.2em 0; text-align: center; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content img { border-radius: var(--radius); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .85em; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content iframe { width: 100%; }

/* Bloque "Lee también" insertado dentro del texto (Diario Core) */
.diario-inline-related {
	font-family: var(--sans); background: var(--soft); border-left: 4px solid var(--red);
	border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 2em 0 !important;
}
.diario-inline-related__label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--blue); margin-bottom: 10px; }
:root[data-theme="dark"] .diario-inline-related__label { color: var(--link); }
.diario-inline-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diario-inline-related li + li { margin-top: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.diario-inline-related a { display: flex; align-items: center; gap: 12px; color: var(--ink) !important; text-decoration: none !important; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.diario-inline-related a:hover span { color: var(--blue); }
.diario-inline-related img { width: 64px; height: 64px; object-fit: cover; flex: none; }

/* Comerciales (Diario Core) */
.ad-header .diario-ad { margin: 16px 0 0 !important; border: 0; padding: 0; }
.ad-home .diario-ad { margin: 32px 0 0 !important; }
.sidebar .diario-ad { margin: 0 0 32px !important; border-top: 0; padding-top: 0; }
.diario-ad--mobile_sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; margin: 0 !important; padding: 6px 0 !important;
	background: var(--surface); border: 0 !important; box-shadow: 0 -4px 16px rgba(0,0,0,.18); overflow: visible;
}
.diario-ad--mobile_sticky .diario-ad__label { display: none; }
.diario-ad--mobile_sticky .diario-ad__inner { min-height: 0; }
.diario-ad__close {
	position: absolute; top: -26px; right: 8px; width: 28px; height: 26px; border: 0; border-radius: 6px 6px 0 0;
	background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; box-shadow: 0 -3px 8px rgba(0,0,0,.12);
}
.diario-ad {
	font-family: var(--sans); text-align: center; clear: both; max-width: 100%; overflow: hidden;
	margin: 2em 0 !important; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.diario-ad--before { margin-top: 0 !important; }
.diario-ad__label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.diario-ad__inner { display: flex; justify-content: center; min-height: 50px; }
.diario-ad__inner img { max-width: 100%; height: auto; border-radius: 0; margin: 0 auto; }
.diario-ad__inner a { text-decoration: none !important; }
@media (max-width: 767px) { .diario-ad--desktop { display: none !important; } }
@media (min-width: 768px) { .diario-ad--mobile { display: none !important; } }
@media print { .diario-ad { display: none !important; } }

.article__footer { margin-top: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.tags__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.tags a { font-size: 13px; font-weight: 600; background: var(--soft); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.tags a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.article__share-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; background: var(--soft); border-radius: var(--radius); font-weight: 700; }
.author-box { display: flex; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

/* Lee más (relacionadas) */
.readmore { margin-top: 48px; padding-top: 4px; border-top: 2px solid var(--ink); }
.readmore .section-head__title { margin: 16px 0 20px; }
.readmore__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }

/* Comentarios */
.comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; margin: 16px 0; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-author img { float: left; margin-right: 10px; border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--ink);
}
.comment-form .submit { background: var(--red-ink); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 22px; font-weight: 700; }
.comment-form .submit:hover { background: var(--blue); }

/* ---- Diseño centrado (Personalizar > Diario > Noticia) ---- */
.single-layout--centered { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.single-layout--centered .article { max-width: 800px; width: 100%; margin: 0 auto; }
.single-layout--centered .entry-content { margin-left: auto; margin-right: auto; }
.single-layout--centered .article__figure { margin-left: auto; margin-right: auto; }
.single-layout--centered .readmore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-mostread { margin-top: 48px; padding-top: 16px; border-top: 2px solid var(--ink); }
.article-mostread .section-head__title { margin-bottom: 8px; }

/* Cabecera del artículo centrada */
.head-center .article__header { text-align: center; }
.head-center .breadcrumbs,
.head-center .article__byline,
.head-center .article__toolbar { justify-content: center; }
.head-center .article__byline-text { align-items: flex-start; text-align: left; }
.head-center .article__toolbar .share { margin-left: 0; }
.head-center .article__dek { margin-left: auto; margin-right: auto; max-width: 42em; }
.head-center .article__figure figcaption { text-align: center; }

/* Alineación del cuerpo del artículo */
.text-center .entry-content { text-align: center; }
.text-justify .entry-content { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.text-justify .entry-content h2, .text-justify .entry-content h3, .text-justify .entry-content figcaption,
.text-justify .entry-content blockquote cite { text-align: left; hyphens: manual; }
.text-justify .article__dek { text-align: justify; text-align-last: center; hyphens: auto; }
.text-left .entry-content { text-align: left; }
.text-center .entry-content ul, .text-center .entry-content ol { list-style-position: inside; padding-left: 0; }
.text-center .entry-content blockquote, .text-center .entry-content .wp-block-quote {
	border-left: 0; padding: 18px 0; border-top: 3px solid var(--red); border-bottom: 1px solid var(--line);
	max-width: 36em; margin-left: auto; margin-right: auto;
}
.text-center .entry-content > p:first-of-type::first-letter,
.no-dropcap .entry-content > p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; margin: 0; }
.text-center .entry-content table, .text-center .entry-content .diario-inline-related { text-align: left; }
.text-center .entry-content img, .text-center .entry-content figure { margin-left: auto; margin-right: auto; }
.text-center .tags, .text-center .article__share-bottom { justify-content: center; }
.text-center .article__share-bottom { flex-direction: column; align-items: center; }
.text-center .author-box { justify-content: center; text-align: left; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---- Video principal ---- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video, .video__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--embed { aspect-ratio: auto; background: transparent; }
.video__embed { display: flex; justify-content: center; }
.video__embed iframe { position: static; max-width: 100%; }
.video__facade { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: #000; cursor: pointer; width: 100%; height: 100%; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video__facade:hover img { opacity: 1; }
.video__play, .card__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: var(--red); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.video__play { width: 76px; height: 76px; transition: transform .2s; }
.video__play svg { margin-left: 4px; }
.video__facade:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.card__media { position: relative; }
.card__play { width: 44px; height: 44px; }
.card__play svg { width: 20px; height: 20px; margin-left: 3px; }
.card--lead .card__play { width: 68px; height: 68px; }
.card--lead .card__play svg { width: 30px; height: 30px; }
.card--row .card__play, .card--compact .card__play { width: 30px; height: 30px; }
.card--row .card__play svg { width: 14px; height: 14px; margin-left: 2px; }
.card__video-tag { display: inline-block; background: var(--red-ink); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
.article__figure--video { margin-bottom: 28px; }

/* ---- Redes sociales ---- */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.social--top { margin-left: auto; }
.social--top a { width: 28px; height: 28px; color: #D6DEEB; }
.social--top a:hover { color: #fff; background: rgba(255,255,255,.1); }
.social--top svg { width: 15px; height: 15px; }
.social--footer { margin-top: 16px; }
.social--footer a { background: rgba(255,255,255,.1); color: #fff; width: 38px; height: 38px; }
.social--footer a:hover { background: var(--red-ink); text-decoration: none; }

/* ---- Muy leídas: ícono de fuego ---- */
.hot { display: inline-flex; align-items: center; color: #F2541B; margin-right: .28em; vertical-align: -0.1em; }
.hot svg { width: .95em; height: .95em; filter: drop-shadow(0 0 1px rgba(242, 84, 27, .25)); }
.hot-badge { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 6px 8px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #FFF1EB; color: #B8350F; font-family: var(--sans); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }
.hot-badge .hot { margin-right: 4px; }
:root[data-theme="dark"] .hot-badge { background: rgba(242, 84, 27, .16); color: #FF9A73; }
.home-mostread .hot, .videos-grid .hot { color: #FF8A5C; }
@media (prefers-reduced-motion: no-preference) { .hot svg { animation: diarioFlicker 2.4s ease-in-out infinite; transform-origin: 50% 100%; } }
@keyframes diarioFlicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(-2deg); } }

/* ---- Suscripción ---- */
.subscribe { display: flex; gap: 18px; align-items: flex-start; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 24px; margin-top: 32px; text-align: left; }
.subscribe__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.subscribe__body { flex: 1; min-width: 0; }
.subscribe__title { color: #fff; font-size: 1.3rem; }
.subscribe__text { margin: 6px 0 14px; color: #C9D6EA; }
.subscribe__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.subscribe__form { display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; }
.subscribe__form input { flex: 1 1 0; width: 0; min-width: 0; padding: 11px 14px; border-radius: var(--radius); border: 0; font: inherit; font-size: 16px; }
.subscribe__form button { border: 0; border-radius: var(--radius); background: var(--red-ink); color: #fff; font-weight: 700; padding: 0 18px; }
.subscribe__form button:hover { background: #A82612; }
.subscribe__wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #06331a !important; font-weight: 700; padding: 11px 16px; border-radius: var(--radius); }
.subscribe__wa:hover { text-decoration: none; filter: brightness(1.05); }
.subscribe--footer { margin: 0 0 28px; background: rgba(255,255,255,.06); }
.site-footer__top + .subscribe--footer { margin-top: 0; }

/* ---- Página de autor ---- */
.author-head { display: flex; gap: 24px; align-items: center; padding: 36px 0 24px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.author-head__avatar { border-radius: 50%; width: 128px; height: 128px; object-fit: cover; flex: none; }
.author-head__name { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.author-head__bio { margin: 8px 0 10px; color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; }
.author-head__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.author-head__links a { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.author-head__links a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.author-head__count { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---- Visor de fotos ---- */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 20, .95); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 0 !important; }
.lightbox__fig figcaption { color: #D6DEEB; font-family: var(--sans); font-size: 14px; margin-top: 12px; text-align: center; max-width: 70ch; }
.lightbox__count { color: #fff; font-weight: 700; margin-right: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red-ink); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox { padding: 56px 8px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } .subscribe { flex-direction: column; padding: 20px; } .subscribe__form { flex-basis: 100%; } .subscribe__form button { padding: 0 14px; } .subscribe__wa { width: 100%; justify-content: center; } .subscribe__icon { display: none; } .author-head { flex-direction: column; align-items: flex-start; } .author-head__avatar { width: 96px; height: 96px; } }

/* ---- Aviso de cookies ---- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; max-width: 720px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie button { flex: none; border: 0; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: var(--radius); }
@media (max-width: 600px) { .cookie { flex-direction: column; align-items: stretch; } }
body:has(.diario-ad--mobile_sticky) .cookie { bottom: 84px; }

/* ==========================================================================
   12. Barra lateral y widgets / ranking
   ========================================================================== */
.sidebar { min-width: 0; }
.sidebar__sticky { position: sticky; top: 24px; }
.admin-bar .sidebar__sticky { top: 56px; }
.widget { margin-bottom: 36px; }
.widget-title {
	font-family: var(--display); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
	border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px;
	display: flex; align-items: center; gap: 10px;
}
.widget-title::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.widget ul { list-style: none; padding: 0; margin: 0; }

.diario-ranking__title { font-family: var(--sans); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px; }
.diario-ranking__list { list-style: none; margin: 0; padding: 0; }
.diario-ranking__item { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.diario-ranking__num { font-family: var(--serif); font-weight: 800; font-size: 2.1rem; line-height: .9; color: var(--red); text-align: center; }
.diario-ranking__item:nth-child(n+4) .diario-ranking__num { color: var(--muted); }
.diario-ranking__link { color: var(--ink); }
.diario-ranking__link:hover { text-decoration: none; }
.diario-ranking__link:hover .diario-ranking__headline { color: var(--blue); }
.diario-ranking__headline { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.diario-ranking__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.diario-ranking__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }

.diario-latest__list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.35; }
.diario-latest__list time { display: block; color: var(--kicker); font-size: 12px; font-weight: 700; }
.diario-latest__list a { color: var(--ink); }

/* ==========================================================================
   13. Archivos, búsqueda, 404
   ========================================================================== */
.archive-head { padding: 32px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.archive-head__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.archive-head__title span { color: var(--red); }
.archive-head__desc { color: var(--ink-2); margin-top: 8px; font-size: 1.05rem; max-width: 70ch; }
.archive-head__search { margin-top: 16px; }
.archive-head__search .search-form { margin: 0; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-bottom: 64px; }
.archive-list .card--lead { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.archive-list .card--row { grid-template-columns: 1fr 200px; }
.archive-list .card--row .card__title { font-size: 1.3rem; }
.archive-list .card--row .card__excerpt { display: block; font-size: 1rem; }
.archive-list .card--row:first-child { border-top: 1px solid var(--line); padding-top: 14px; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

.empty { padding: 40px 0; color: var(--ink-2); }
.notfound { text-align: center; padding: 64px var(--gutter) 96px; }
.notfound__code { font-family: var(--serif); font-size: 7rem; font-weight: 800; line-height: 1; color: var(--red); margin: 0; }
.notfound h1 { font-size: 2rem; margin: 12px 0; }
.notfound .search-form { margin: 24px auto; }

/* ==========================================================================
   14. Pie de página
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: #C9D3E3; padding-top: 48px; margin-top: 24px; font-size: 15px; }
.site-footer::before { content: ""; display: block; height: 4px; margin-top: -48px; margin-bottom: 48px; background: linear-gradient(90deg, var(--blue) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6% 100%); }
.site-footer a { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
.brand__name--footer { color: #fff !important; font-size: 2.2rem; }
.site-footer__text { margin-top: 12px; max-width: 42ch; }
.site-footer .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid rgba(255,255,255,.15); font-weight: 600; font-size: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

/* ==========================================================================
   15. Bloques de WordPress
   ========================================================================== */
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky .card__title::after { content: " ★"; color: var(--red); }
.bypostauthor > .comment-body .fn::after { content: " (autor)"; color: var(--muted); font-weight: 400; }

/* ==========================================================================
   16. Adaptable: tablet y móvil
   ========================================================================== */
@media (max-width: 1180px) {
	.front { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "center center" "left right"; row-gap: 28px; }
	.videos-grid { grid-template-columns: 1fr 1fr; }
	.videos-grid .card--lead { grid-column: span 2; grid-row: auto; }
	.front__center { padding: 0; }
	.front__left { padding-left: 0; border-right: 1px solid var(--line); }
	.front__right { border-left: 0; padding-right: 0; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 1024px) {
	.single-layout, .archive-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.article { margin: 0 auto; }
	.sidebar__sticky { position: static; }
	.sidebar { max-width: 760px; margin: 0 auto 48px; width: 100%; }
	.mostread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* --- Menú lateral (drawer) y cabecera compacta --- */
@media (max-width: 1100px) {
	.topbar__nav, .topbar__social { display: none; }
	.masthead { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line); }
	.admin-bar .masthead { top: 46px; }
	.masthead__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
	.menu-toggle { display: inline-flex; }
	.brand { text-align: center; }
	.brand__logo { justify-content: center; }
	.brand__tagline { display: none; }
	.brand__name { font-size: clamp(1.3rem, 6vw, 1.75rem); white-space: nowrap; }
	.brand__logo .logo { height: var(--logo-h-m); max-width: 60vw; }
	.brand__logo.has-mobile .logo--main { display: none; }
	.brand__logo.has-mobile .logo--mobile { display: block; }
	.brand__name--text { display: none; }

	.sections {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 200;
		width: min(86vw, 360px); overflow-y: auto; background: var(--surface);
		transform: translateX(-102%); transition: transform .28s ease; box-shadow: 8px 0 30px rgba(0,0,0,.2);
		visibility: hidden;
	}
	.admin-bar .sections { top: 46px; }
	.menu-open .sections { transform: none; visibility: visible; }
	.menu-open { overflow: hidden; }
	.drawer__head {
		display: flex; align-items: center; justify-content: space-between;
		background: var(--blue); color: #fff; padding: 8px 8px 8px 20px;
		font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
	}
	.drawer__head .icon-btn { color: #fff; }
	.drawer__head .icon-btn:hover { background: rgba(255,255,255,.12); }
	.drawer__search { display: block; padding: 16px 20px; border-bottom: 1px solid var(--line); }
	.drawer__search .search-form__btn { padding: 0 14px; }
	.sections .menu { display: block; }
	.sections .menu li { position: relative; border-bottom: 1px solid var(--line); }
	.sections .menu > li > a { color: var(--ink); padding: 15px 20px; font-size: 15px; border-bottom: 0; border-left: 4px solid transparent; }
	.sections .current-menu-item > a, .sections .menu > li > a:hover { border-left-color: var(--red); background: var(--soft); }
	.sections .sub-menu { position: static; display: none; box-shadow: none; border-top: 0; padding: 0 0 8px 20px; background: transparent; }
	.sections .menu > li:hover > .sub-menu { display: none; }
	.sections .menu li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: flex; align-items: center; justify-content: center; position: absolute; right: 8px; top: 6px;
		width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); border-radius: 50%;
	}
	.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 10, 30, .55); z-index: 150; }

	.cat-grid { grid-template-columns: minmax(0, 1fr); }
	.cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	body:has(.diario-ad--mobile_sticky) { padding-bottom: 72px; }
}

@media (max-width: 700px) {
	:root { --gap: 18px; }
	.topbar { display: none; }
	.section-head { margin: 28px 0 16px; }
	.section-head__live { display: none; }

	.home-latest { padding-top: 0; }
	.cat-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.front { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "left" "right"; row-gap: 0; }
	.front > * { padding: 0 !important; border: 0 !important; }
	.front__left, .front__right { gap: 0; border-top: 1px solid var(--line) !important; margin-top: 18px; }
	.front .card--standard, .cat-row .card--standard { display: grid; grid-template-columns: 1fr 108px; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
	.front .card--standard:first-child, .cat-row .card--standard:first-child { border-top: 0; }
	.front .card--standard .card__media, .cat-row .card--standard .card__media { order: 2; }
	.front .card--standard .card__media img, .cat-row .card--standard .card__media img { aspect-ratio: 4 / 3; }
	.front .card--standard .card__body, .cat-row .card--standard .card__body { padding-top: 0; }
	.front .card--standard .card__title, .cat-row .card--standard .card__title { font-size: 1.02rem; }
	.front .card--compact { padding: 14px 0; }
	.front .card--standard .card__meta span:not(:first-child), .front .card--standard .card__meta .dot { display: none; }
	.front__right .card--row:first-of-type { padding-top: 14px; }
	.card--lead .card__media { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
	.card--lead .card__title { font-size: 1.7rem; }
	.card--lead .card__excerpt { font-size: 1.05rem; }
	.card--row { grid-template-columns: 1fr 108px; }
	.card--row .card__title { font-size: 1.02rem; }

	.home-mostread { margin-top: 32px; padding-bottom: 24px; }
	.videos-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.videos-grid .card--standard { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
	.videos-grid .card--standard .card__media { order: 2; }
	.videos-grid .card--standard .card__body { padding-top: 0; }
	.videos-grid .card--lead { padding-bottom: 12px; }
	.alert__text { font-size: 14.5px; }
	.alert__inner { gap: 10px; }
	.section-head__title { font-size: 1.35rem; }
	.mostread-grid { grid-template-columns: minmax(0, 1fr); }
	.mostread-item__num { font-size: 2.4rem; }
	.mostread-item__thumb img { width: 72px; height: 72px; }

	.single-layout { padding-top: 16px; }
	.article__title { font-size: 1.9rem; }
	.article__dek { font-size: 1.12rem; }
	.article__toolbar .share { margin-left: 0; width: 100%; justify-content: space-between; }
	.article__toolbar .share .share__btn { width: 42px; height: 42px; }
	.article__figure { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
	.article__figure img { border-radius: 0; }
	.article__figure figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
	.entry-content { font-size: calc(1.1rem * var(--article-scale)); line-height: 1.72; }
	.readmore__grid, .single-layout--centered .readmore__grid { grid-template-columns: minmax(0, 1fr); }
	.video__play { width: 60px; height: 60px; }
	.article__figure--video .video { border-radius: 0; }
	.readmore__grid .card--standard { display: grid; grid-template-columns: 1fr 108px; gap: 14px; align-items: start; }
	.readmore__grid .card--standard .card__media { order: 2; }
	.readmore__grid .card--standard .card__media img { aspect-ratio: 4 / 3; }
	.readmore__grid .card--standard .card__body { padding-top: 0; }
	.readmore__grid .card--standard .card__title { font-size: 1.02rem; }
	.article__share-bottom { flex-direction: column; align-items: flex-start; }

	.archive-list .card--row { grid-template-columns: 1fr 108px; }
	.archive-list .card--row .card__title { font-size: 1.08rem; }
	.archive-list .card--row .card__excerpt { display: none; }

	.site-footer__top { grid-template-columns: minmax(0, 1fr); }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (max-width: 380px) {
	.card--row, .archive-list .card--row, .mostread-item { grid-template-columns: 1fr 88px; }
	.mostread-item { grid-template-columns: auto 1fr; }
	.mostread-item__thumb { display: none; }
}

/* ==========================================================================
   17. Impresión
   ========================================================================== */
@media print {
	.topbar, .masthead, .ticker, .sidebar, .article__toolbar, .article__share-bottom, .readmore, .comments, .site-footer, .progress, .diario-inline-related { display: none !important; }
	.single-layout { display: block; }
	body { background: #fff; color: #000; }
}
