/* ==========================================================================
   LPI Noticias 1.2 — estética oscura de diario premium, con modo claro.
   Sin líneas divisorias: las zonas se separan por espacio y por fondo.
   ========================================================================== */

@font-face { font-family: "Roboto Condensed"; src: url("../fonts/roboto-condensed.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: optional; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: optional; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: optional; }

:root,
[data-theme="dark"] {
	--bg: #16181d;
	--surface: #1f232b;
	--surface-2: #282d37;
	--text: #f3f5f8;
	--text-2: #c9d0da;
	--muted: #9aa4b2;
	--head: #121419;
	--head-text: #f3f5f8;
	--head-muted: #aab3c0;
	--red: #e23b40;
	--amber: #f4b43e;
	--link: #7fb6ff;
	--shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
	--ov: linear-gradient(180deg, rgba(10, 12, 16, 0) 22%, rgba(10, 12, 16, .62) 50%, rgba(10, 12, 16, .95) 100%);
	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #f4f5f7;
	--surface: #ffffff;
	--surface-2: #eceff3;
	--text: #12161d;
	--text-2: #3a4351;
	--muted: #5f6b7a;
	--link: #0b63ce;
	--amber: #9a5b00;
	--shadow: 0 18px 40px -26px rgba(18, 22, 29, .35);
	color-scheme: light;
}

:root {
	--serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
	--cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1320px;
	--gutter: clamp(16px, 3.4vw, 32px);
	--r: 10px;
	--r-s: 6px;
	--head-h: 86px;
	--sec: var(--red);
}

/* Colores de sección (títulos de módulos). */
.sec-brand { --sec: #4d9bff; }
.sec-ciencia { --sec: #5b8def; }
.sec-espacio { --sec: #8f93f2; }
.sec-ambiente { --sec: #3fb27f; }
.sec-historia { --sec: #d1a15a; }
.sec-tecnologia { --sec: #a084f5; }
.sec-innovacion { --sec: #f08c45; }
.sec-familia { --sec: #6f8cf6; }
.sec-salud { --sec: #2fc0a5; }
.sec-bienestar { --sec: #c08cf0; }
.sec-educacion { --sec: #e59a52; }
.sec-soluciones { --sec: #4ec46f; }
.sec-negocios { --sec: #d9b23f; }
.sec-finanzas { --sec: #3cc2b5; }
.sec-politica_int { --sec: #f0646a; }
.sec-politica_co { --sec: #aab3c0; }
.sec-cine { --sec: #f0628f; }
.sec-deportes { --sec: #3fb8e6; }
.sec-investigacion { --sec: #f0646a; }
.sec-people { --sec: #e07ab2; }

[data-theme="light"] .sec-brand { --sec: #0b63ce; }
[data-theme="light"] .sec-ciencia { --sec: #1d4c9c; }
[data-theme="light"] .sec-espacio { --sec: #3b3f9e; }
[data-theme="light"] .sec-ambiente { --sec: #177245; }
[data-theme="light"] .sec-historia { --sec: #8a6630; }
[data-theme="light"] .sec-tecnologia { --sec: #5a35c4; }
[data-theme="light"] .sec-innovacion { --sec: #b4520f; }
[data-theme="light"] .sec-familia { --sec: #2f4bc4; }
[data-theme="light"] .sec-salud { --sec: #0d7a68; }
[data-theme="light"] .sec-bienestar { --sec: #7b3fb8; }
[data-theme="light"] .sec-educacion { --sec: #a05414; }
[data-theme="light"] .sec-soluciones { --sec: #23843f; }
[data-theme="light"] .sec-negocios { --sec: #8a6a12; }
[data-theme="light"] .sec-finanzas { --sec: #0f746b; }
[data-theme="light"] .sec-politica_int { --sec: #a11d27; }
[data-theme="light"] .sec-politica_co { --sec: #4a5263; }
[data-theme="light"] .sec-cine { --sec: #a3184a; }
[data-theme="light"] .sec-deportes { --sec: #0b7aa0; }
[data-theme="light"] .sec-investigacion { --sec: #a11d27; }
[data-theme="light"] .sec-people { --sec: #9c3b6e; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--red); color: #ffffff; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-s); background: transparent; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

/* ---------- Barra superior ---------- */
.util { background: var(--head); color: var(--head-text); font-family: var(--cond); font-size: .98rem; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; }
.util-left, .util-right { display: flex; align-items: center; gap: 22px; }
.util-weather { display: flex; align-items: center; gap: 7px; }
.util-weather .icon { color: #f4b43e; }
.util-weather .w-city { margin-right: 4px; }
.util-live { white-space: nowrap; }
.util-fx { display: flex; align-items: baseline; gap: 8px; letter-spacing: .02em; }
.fx-label { text-transform: uppercase; color: var(--head-text); }
.fx-val { display: inline-flex; align-items: center; gap: 3px; color: #f4b43e; font-weight: 700; white-space: nowrap; }
.fx-val .icon { width: 15px; height: 15px; }
.fx-up { color: #5fd38d; }
.fx-down { color: #ff7a7f; }

.util-live {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 11px; border-radius: var(--r-s);
	background: #7c1418; color: #ffffff;
	text-transform: uppercase; letter-spacing: .03em; font-weight: 700;
	text-decoration: none;
}

.live-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff4d55; }

@media (prefers-reduced-motion: no-preference) {
	.live-dot { animation: lpi-pulse 2s ease-in-out infinite; }
}

@keyframes lpi-pulse {
	0%, 100% { box-shadow: 0 0 0 2px rgba(255, 77, 85, .35); }
	50% { box-shadow: 0 0 0 6px rgba(255, 77, 85, 0); }
}

.util-btn { color: var(--head-text); }
.theme-btn { background: rgba(255, 255, 255, .1); }
.theme-btn .icon-sun { display: none; }
[data-theme="light"] .theme-btn .icon-sun { display: block; }
[data-theme="light"] .theme-btn .icon-moon { display: none; }

@media (hover: hover) {
	.util-btn:hover { background: rgba(255, 255, 255, .14); }
}

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--head); color: var(--head-text); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .9); }
.head-in { display: flex; align-items: center; gap: 34px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 42px; width: auto; }
.foot-brand .brand-logo { height: 50px; }
.panel-top .brand-logo { height: 38px; }
.brand-text { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--head-text); }

.mainnav { flex: 1; display: none; }
.mainnav-list { display: flex; align-items: center; justify-content: flex-end; gap: 4px; list-style: none; }

.mainnav-btn,
.mainnav-link,
.mainnav-classic > li > a {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 11px;
	border: 0; border-radius: var(--r-s);
	background: transparent;
	color: var(--head-muted);
	font-family: var(--cond);
	font-size: 1.08rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em;
	text-decoration: none; white-space: nowrap;
	cursor: pointer;
}

.mainnav-btn .icon { width: 15px; height: 15px; opacity: .65; transition: transform .2s ease; }
.mainnav-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (hover: hover) {
	.mainnav-btn:hover, .mainnav-link:hover, .mainnav-classic > li > a:hover { color: #ffffff; }
}

.mainnav-classic { list-style: none; display: flex; }
.mainnav-classic .sub-menu { display: none; }

/* Megamenú */
.has-mega { position: static; }

.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	display: none;
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
}

.mega.is-open { display: block; }

@media (prefers-reduced-motion: no-preference) {
	.mega.is-open { animation: lpi-mega .18s ease-out; }
}

@keyframes lpi-mega {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

.mega-in { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 44px; padding-block: 28px 32px; align-items: start; }
.mega-nav { padding-right: 8px; }
.mega-title { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; margin-bottom: 14px; color: var(--text); }
.mega-cats { list-style: none; display: grid; gap: 2px; }

.mega-cats a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 12px 10px 18px;
	border-radius: var(--r-s);
	text-decoration: none;
	position: relative;
}

.mega-cats a::before { content: ""; position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--sec); transform: translateY(-50%); }
.mega-name { font-family: var(--cond); font-size: 1.12rem; font-weight: 700; color: var(--text); }
.mega-count { color: var(--muted); font-family: var(--cond); font-size: .92rem; white-space: nowrap; }

@media (hover: hover) {
	.mega-cats a:hover { background: var(--surface-2); }
	.mega-cats a:hover .mega-name { color: var(--sec); }
}

.mega-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mega-card { position: relative; display: grid; gap: 6px; align-content: start; }
.mega-card-img { display: block; overflow: hidden; border-radius: var(--r-s); aspect-ratio: 16 / 9; background: var(--surface-2); margin-bottom: 4px; }
.mega-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-card-kicker { color: var(--amber); font-family: var(--cond); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mega-card-title { font-family: var(--display); font-size: 1.08rem; font-weight: 700; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mega-card-title a { text-decoration: none; }
.mega-card-title a::after { content: ""; position: absolute; inset: 0; }
.mega-card-time { color: var(--muted); font-family: var(--cond); font-size: .88rem; }

@media (hover: hover) {
	.mega-card:hover .mega-card-title a { text-decoration: underline; }
	.mega-card-img img { transition: transform .6s ease; }
	.mega-card:hover .mega-card-img img { transform: scale(1.04); }
}

/* Botones del menú: indicador rojo bajo la sección abierta, foco discreto. */
.mainnav-btn, .mainnav-link { position: relative; }
.mainnav-btn[aria-expanded="true"] { background: transparent; color: #ffffff; }
.mainnav-btn[aria-expanded="true"]::after,
.mainnav-link[aria-current="page"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: calc((44px - var(--head-h)) / 2); height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.mainnav-btn:focus-visible, .mainnav-link:focus-visible { outline: 2px solid rgba(244, 180, 62, .8); outline-offset: -2px; border-radius: var(--r-s); }

/* Buscador */
.search-panel { padding-block: 14px 18px; background: var(--head); }
.search-form { display: flex; gap: 8px; max-width: 720px; padding: 5px; border-radius: var(--r); background: var(--surface-2); }
.search-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.search-form button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: var(--r-s); background: var(--red); color: #ffffff; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.search-form button .icon { width: 18px; height: 18px; }
.search-panel .search-form { background: #262b34; }
.search-panel .search-form input { color: #f3f5f8; }

/* Panel de secciones (celular) */
.panel { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: env(safe-area-inset-top, 0px) 0 calc(90px + env(safe-area-inset-bottom, 0px)); }
.panel-top { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--head); color: var(--head-text); }
.panel-top .icon-btn { color: var(--head-text); }
.panel-in > .search-form, .panel-group, .panel-extra { margin-inline: var(--gutter); }
.panel-in > .search-form { margin-block: 16px; }
.panel-group { margin-bottom: 20px; }
.panel-group h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; margin-bottom: 8px; }
.panel-group ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.panel-group a, .panel-extra a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: var(--r-s); background: var(--surface); color: var(--text); font-weight: 650; line-height: 1.25; text-decoration: none; }
.panel-group a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--sec); }
body.no-scroll { overflow: hidden; }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Publicidad ---------- */
.ad { display: grid; justify-items: center; gap: 6px; margin: 26px auto; max-width: var(--wrap); padding-inline: var(--gutter); }
.ad img { border-radius: var(--r-s); }
.ad-label { color: var(--muted); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--cond); }
.entry .ad { margin: 2em 0; padding: 0; }
.side-widgets .ad { margin: 0; padding: 0; }

/* ---------- Títulos de bloque, etiquetas ---------- */
.block-title { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; color: var(--text); }
.block-title a { text-decoration: none; }
.section-title { font-family: var(--cond); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; }

.badge {
	display: inline-block;
	padding: 4px 10px; border-radius: 4px;
	background: var(--red); color: #ffffff;
	font-family: var(--cond); font-size: .95rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em;
	text-decoration: none;
	position: relative; z-index: 1;
}

.kicker-amber, .badge-dark, .kicker {
	position: relative; z-index: 1;
	font-family: var(--cond); font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
	text-decoration: none;
}

.kicker-amber { color: #f4b43e; font-size: .95rem; }
.badge-dark { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: var(--r) 0 var(--r-s) 0; background: rgba(12, 14, 18, .88); color: #f4b43e; font-size: .9rem; }
.kicker { color: var(--sec); font-size: .85rem; }

@media (hover: hover) {
	a.kicker:hover, a.kicker-amber:hover { text-decoration: underline; }
}

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--surface); color: var(--sec); font-family: var(--cond); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--sec); }

/* ---------- Tarjetas ---------- */
.card { position: relative; min-width: 0; }
.card-title { font-family: var(--display); font-size: 1.2rem; font-weight: 750; line-height: 1.2; letter-spacing: -.012em; text-wrap: pretty; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-family: var(--cond); font-size: .95rem; }
.card-meta strong { color: var(--text); font-weight: 700; }

.media { display: block; overflow: hidden; border-radius: var(--r-s); background: var(--surface-2); aspect-ratio: 16 / 9; }
.media-img { width: 100%; height: 100%; object-fit: cover; }
.media-empty { display: grid; place-items: end start; padding: 12px 14px; background: var(--surface-2); color: var(--text); font-family: var(--display); font-size: 1.05rem; font-weight: 700; text-decoration: none; }

@media (hover: hover) {
	.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 1px; }
	.media-img, .ov-img { transition: transform .7s ease; }
	.card:hover .media-img, .card:hover .ov-img { transform: scale(1.03); }
}

/* Titular sobre la foto */
.card-overlay {
	display: grid; align-items: end;
	min-height: 320px;
	overflow: hidden;
	border-radius: var(--r);
	background: #0e1014;
	color: #ffffff;
	isolation: isolate;
}

.card-overlay .ov-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ov); }
.ov-body { display: grid; gap: 8px; justify-items: start; padding: 22px 24px 22px; }
.card-overlay .card-title { color: #ffffff; font-size: 1.45rem; line-height: 1.16; }
.card-overlay .card-excerpt { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 62ch; }
.card-overlay .card-meta { color: rgba(255, 255, 255, .72); }
.card-overlay .card-meta strong { color: #ffffff; }
.card-overlay.is-big { min-height: 560px; }
.card-overlay.is-big .ov-body { gap: 12px; padding: 30px 32px 30px; }
.card-overlay.is-big .card-title { font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3.1rem); line-height: 1.05; letter-spacing: -.028em; font-weight: 800; }

/* Destacada */
.card-feature { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--surface); }
.feat-media { position: relative; }
.card-feature .media { border-radius: var(--r-s); }
.card-feature .badge-dark { border-radius: var(--r-s) 0 var(--r-s) 0; }
.card-feature .card-title { font-size: 1.3rem; }

/* Línea de tiempo: punto y conector, no una línea divisoria entre secciones. */
.timeline-list { position: relative; }
.card-timeline { display: grid; grid-template-columns: 58px 22px 1fr; gap: 0 12px; padding-bottom: 20px; }
.card-timeline time { color: var(--muted); font-family: var(--cond); font-size: 1.12rem; padding-top: 1px; }
.card-timeline::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 13px; height: 13px; margin-top: 6px; border: 2px solid var(--muted); border-radius: 50%; background: var(--bg); position: relative; z-index: 1; }
.card-timeline::after { content: ""; position: absolute; left: calc(58px + 12px + 10px); top: 22px; bottom: -6px; width: 2px; background: var(--surface-2); }
.card-timeline:last-child::after { display: none; }
.card-timeline .card-title { grid-column: 3; font-family: var(--cond); font-size: 1.18rem; font-weight: 400; line-height: 1.3; }
.card-timeline:first-child::before { border-color: var(--red); background: var(--red); }

/* Opinión */
.card-opinion { display: grid; grid-template-columns: 150px 1fr; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.op-media .op-face { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.op-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px; }
.card-opinion .card-title { font-size: 1.3rem; }
.card-opinion .card-excerpt { font-size: .95rem; color: var(--muted); }
.op-author { font-family: var(--cond); font-weight: 700; font-size: 1.02rem; color: var(--text-2); }

/* Otras variantes */
.card-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.card-row .card-body { padding-top: 0; gap: 4px; display: grid; }
.card-row .card-title { font-size: 1.02rem; line-height: 1.25; }
.card-headline { display: grid; gap: 4px; justify-items: start; padding-bottom: 18px; }
.card-headline .card-title { font-size: 1.1rem; line-height: 1.25; }
.card-latest { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding-block: 10px; }
.card-latest time { color: var(--amber); font-family: var(--cond); font-weight: 700; }
.card-mini { padding: 10px 0 10px 16px; }
.card-mini::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 2px; background: var(--sec); }
.card-mini .card-title { font-size: 1.04rem; }
.card-latest .card-title, .card-headline .card-title, .card-mini .card-title, .card-row .card-title, .card-timeline .card-title { text-wrap: pretty; }

.card-card .card-body, .card-lead .card-body { display: grid; gap: 8px; justify-items: start; padding-top: 12px; }
.card-lead .media { aspect-ratio: 16 / 10; border-radius: var(--r); }
.card-lead .card-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.06; letter-spacing: -.02em; }
.card-lead .card-excerpt { font-size: 1.12rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 26px 22px; }

/* ---------- Portada ---------- */
.hero { display: grid; gap: 26px; padding-block: 30px 18px; }
.hero-side { display: grid; gap: 26px; }

.row-2 { display: grid; gap: 40px; padding-block: 34px 20px; }
.featured-grid { display: grid; gap: 22px 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.side-widgets { display: grid; gap: 20px; margin-top: 8px; }

.opinion { padding-block: 34px 10px; }
.opinion-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }


.module-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.module-links a { color: var(--muted); font-family: var(--cond); font-size: .95rem; text-decoration: none; }

@media (hover: hover) {
	.module-links a:hover { color: var(--text); text-decoration: underline; }
}



/* ---------- Archivo, búsqueda ---------- */
.archive-head { padding-block: 30px 30px; margin-bottom: 30px; background: var(--surface); }
.archive-head h1 { font-family: var(--cond); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); text-transform: uppercase; letter-spacing: .015em; color: var(--sec); margin-top: 8px; }
.archive-desc { max-width: 68ch; margin-top: 10px; color: var(--text-2); font-size: 1.08rem; }
.archive-desc p + p { margin-top: .6em; }
.archive-head .search-form { margin-top: 20px; }
.archive-top { display: grid; gap: 30px; margin-bottom: 44px; }
.archive-side { display: grid; gap: 20px; align-content: start; }
.empty { max-width: 60ch; color: var(--text-2); font-size: 1.08rem; margin-bottom: 60px; }
.terr-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.terr-cats-wide { margin-top: 18px; margin-bottom: 60px; }

.crumbs { color: var(--muted); font-family: var(--cond); font-size: .95rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin-inline: 4px; }
.crumbs > span, .crumbs p { margin: 0; }

.pager { margin-block: 48px 64px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 14px; border-radius: var(--r-s); background: var(--surface); font-family: var(--cond); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.pager .current { background: var(--red); color: #ffffff; }

/* ---------- Artículo ---------- */
.post-head { padding-block: 28px 22px; display: grid; gap: 12px; justify-items: start; }
.post-head .kicker { font-size: 1rem; color: var(--amber); }
.post-title { font-family: var(--display); font-size: clamp(2.1rem, 1.25rem + 2.8vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 24ch; }
.post-dek { font-family: var(--serif); font-size: clamp(1.18rem, 1.05rem + .5vw, 1.42rem); line-height: 1.45; color: var(--text-2); max-width: 60ch; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; max-width: 1000px; margin-top: 4px; }
.byline-text { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-family: var(--cond); font-size: 1rem; }
.byline-author { color: var(--text); font-weight: 700; }
.byline-author a { text-decoration: none; }
.post-hero { margin-block: 0 6px; }
.post-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.post-hero figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: var(--surface); color: var(--text); font-family: var(--cond); font-size: .98rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.share a { width: 40px; padding: 0; }
.share .icon { width: 19px; height: 19px; }
.share-whatsapp { background: #1f4d33 !important; color: #a6efc3 !important; }
[data-theme="light"] .share-whatsapp { background: #e3f6e9 !important; color: #0b6b33 !important; }
.share-copy.is-done span::after { content: ": copiado"; }

@media (hover: hover) {
	.share a:hover, .share button:hover { background: var(--surface-2); }
}

.post-layout { display: grid; gap: 40px; padding-block: 20px 40px; }
.post-main { min-width: 0; }
.entry { max-width: 70ch; font-family: var(--serif); font-size: clamp(1.13rem, 1.06rem + .25vw, 1.26rem); line-height: 1.75; color: var(--text); }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-family: var(--display); font-size: 1.45em; line-height: 1.2; margin-top: 1.9em; letter-spacing: -.02em; font-weight: 800; }
.entry h3 { font-family: var(--display); font-size: 1.18em; margin-top: 1.6em; letter-spacing: -.01em; }
.entry h2 + *, .entry h3 + * { margin-top: .55em; }
.entry a { color: var(--link); text-decoration: underline; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry img, .entry figure img { border-radius: var(--r-s); }
.entry figcaption { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 1.1em; box-shadow: inset 4px 0 0 var(--red); font-style: italic; color: var(--text-2); }
.entry iframe { width: 100%; border-radius: var(--r-s); }

/* Notas con diseño propio: hoja clara dentro de la página, en cualquier modo. */
.entry-paper {
	--text: #12161d;
	--text-2: #3a4351;
	--muted: #5f6b7a;
	--surface: #f4f5f7;
	--surface-2: #e9edf2;
	--link: #0b63ce;
	max-width: calc(70ch + 2 * clamp(20px, 4vw, 44px));
	padding: clamp(20px, 4vw, 44px);
	border-radius: var(--r);
	background: #ffffff;
	color: #12161d;
	color-scheme: light;
}

.entry-paper .ad-label { color: #5f6b7a; }

/* Bloques del plugin LPI Redacción IA adaptados al modo oscuro y claro */
.entry .lpi-entradilla { font-size: 1.12em; color: var(--text-2); }
.entry .lpi-credito-foto { margin-top: 0; color: var(--muted); }
.entry .lpi-clave, .entry .lpi-impacto, .entry .lpi-aprendizaje, .entry .lpi-nosesabe,
.entry .lpi-medios, .entry .lpi-relacionadas { font-family: var(--sans); font-size: .88em; line-height: 1.6; border-radius: var(--r); background: var(--surface); }
.entry .lpi-clave h2, .entry .lpi-impacto h2, .entry .lpi-aprendizaje h2, .entry .lpi-nosesabe h2,
.entry .lpi-medios h2, .entry .lpi-relacionadas h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .02em; font-size: 1.3em; margin-top: 0; }
.entry .lpi-fuentes a, .entry .lpi-relacionadas a { color: var(--text) !important; }
.entry .lpi-medio { background: var(--surface-2); box-shadow: none; }
.entry .lpi-tipo { background: var(--surface-2); color: var(--text-2); }
.entry .lpi-live { background: rgba(226, 59, 64, .16); color: #ff9fa2; }
[data-theme="light"] .entry .lpi-live { color: #8a1328; }
.entry .lpi-aviso { background: var(--surface); }
.entry .lpi-transparencia { font-family: var(--sans); font-size: .8em; color: var(--muted); }
.entry .lpi-crono time { color: var(--muted); }

/* Índice */
.toc h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; margin-bottom: 8px; }
.toc ul { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: var(--r-s); color: var(--muted); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.toc a.is-active { background: var(--surface); color: var(--text); font-weight: 700; }

@media (hover: hover) {
	.toc a:hover { color: var(--text); background: var(--surface); }
}

.toc-mobile { margin-bottom: 22px; padding: 4px 16px; border-radius: var(--r); background: var(--surface); }
.toc-mobile summary { padding-block: 12px; font-family: var(--cond); text-transform: uppercase; font-weight: 700; cursor: pointer; }
.toc-mobile ul { padding-bottom: 12px; }
.post-side { display: none; }

.post-foot { max-width: 70ch; margin-top: 40px; display: grid; gap: 26px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 13px; border-radius: var(--r-s); background: var(--surface); font-family: var(--cond); font-size: .98rem; text-decoration: none; }
.post-share-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.post-share-end p { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; }
.post-share-end .share a, .post-share-end .share button { background: var(--surface-2); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--r); background: var(--surface); }
.author-box img { border-radius: 50%; }
.author-name { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.author-name a { text-decoration: none; }
.more { padding-block: 26px 60px; }

/* Comentarios */
.comments-wrap { max-width: 860px; padding-bottom: 60px; }
.comment-list { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.comment-body { padding: 16px 18px; border-radius: var(--r); background: var(--surface); }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 650; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-s); background: var(--surface); color: var(--text); font: inherit; }
.comment-form .submit { padding: 12px 22px; border: 0; border-radius: var(--r-s); background: var(--red); color: #ffffff; font-family: var(--cond); font-weight: 700; text-transform: uppercase; cursor: pointer; }
.widget + .widget { margin-top: 20px; }
.widget-title { font-family: var(--cond); text-transform: uppercase; font-size: 1rem; margin-bottom: 10px; }

/* ---------- Pie ---------- */
.site-foot { padding-block: 60px 30px; background: var(--head); color: var(--head-text); }
.foot-grid { display: grid; gap: 36px; }
.foot-brand { max-width: 440px; display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--head-muted); line-height: 1.6; }
.site-foot h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .03em; font-size: 1.12rem; color: var(--head-muted); margin-bottom: 12px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a { color: var(--head-text); text-decoration: none; font-family: var(--cond); font-size: 1.05rem; }

@media (hover: hover) {
	.foot-col a:hover { text-decoration: underline; }
}

.social { list-style: none; display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: rgba(255, 255, 255, .08); color: var(--head-text); }
.foot-bottom { margin-top: 48px; color: var(--head-muted); font-size: .88rem; }

/* Navegación inferior del celular */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--head); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .8); }
.bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--head-muted); font-family: var(--cond); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.bottom-nav [aria-current="page"], .bottom-nav [aria-expanded="true"] { color: #ffffff; }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Celular ---------- */
@media (max-width: 719px) {
	:root { --head-h: 64px; }
	.util { font-size: .92rem; }
	.util-in { min-height: 46px; gap: 8px; }
	.util-date, .util-fx + .util-fx, .util-weather .w-city, .util .util-btn[data-open-search] { display: none; }
	.util-left, .util-right { gap: 10px; }
	.util-live { padding: 4px 9px; font-size: .85rem; }
	.fx-label { display: none; }
	.util-live { font-size: .8rem; letter-spacing: .02em; }
	/* La noticia principal en el celular: foto arriba y texto debajo, para que el titular siempre se lea. */
	.card-overlay.is-big { display: block; min-height: 0; background: var(--surface); color: var(--text); }
	.card-overlay.is-big::before { display: none; }
	.card-overlay.is-big .ov-img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; }
	.card-overlay.is-big .card-title { color: var(--text); font-size: 1.9rem; }
	.card-overlay.is-big .card-excerpt { color: var(--text-2); font-size: 1.04rem; }
	.card-overlay.is-big .card-meta { color: var(--muted); }
	.card-overlay.is-big .card-meta strong { color: var(--text); }
	.brand-logo { height: 32px; }
	.head-in { gap: 10px; }
	.card-overlay.is-big .ov-body { padding: 18px 18px 20px; }
	.card-overlay { min-height: 260px; }
	.card-opinion { grid-template-columns: 110px 1fr; }
	.single .crumbs { display: none; }
	.share-copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.share-copy { width: 40px; padding: 0; }
	.post-share-end .share-copy span { position: static; width: auto; height: auto; clip-path: none; }
	.post-share-end .share-copy { width: auto; padding: 0 12px; }
}

/* ---------- Tableta ---------- */
@media (min-width: 720px) {
	.card-row { grid-template-columns: 132px 1fr; }
	.archive-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
	.hero-side { grid-template-columns: 1fr 1fr; }
	.foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Computador ---------- */
@media (min-width: 1080px) {
	.menu-btn { display: none; }
	.mainnav { display: block; }
	.bottom-nav { display: none; }
	body { padding-bottom: 0; }

	.hero { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 30px; }
	.hero-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
	.hero-side .card-overlay { min-height: 0; }
	.row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr); gap: 56px; }

	.post-hero-img { aspect-ratio: 2 / 1; }
	.post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
	.post-layout-page { grid-template-columns: minmax(0, 1fr); }
	.post-side { display: block; }
	.post-side-in { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
	.toc-side { margin-bottom: 24px; }
	.toc-mobile { display: none; }
	.foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
}

@media (max-width: 1079px) {
	.mega { display: none !important; }
	.site-head { position: relative; }
	html { scroll-padding-top: 16px; }
}

@media (min-width: 1080px) {
	.head-in { gap: 20px; }
	.mainnav-list { gap: 0; }
	.mainnav-btn, .mainnav-link { font-size: 1rem; padding-inline: 8px; letter-spacing: .01em; }
	.mainnav-btn .icon { width: 13px; height: 13px; }
}

@media (min-width: 1080px) and (max-width: 1339px) {
	.brand-logo { height: 36px; }
	.mainnav-btn, .mainnav-link { font-size: .92rem; padding-inline: 6px; }
	.mainnav-btn .icon { display: none; }
}


/* ==========================================================================
   Portada 1.3: El día en 1 minuto, Lo último / Más leído, Investigación y módulos con ritmo
   ========================================================================== */

/* El día en 1 minuto */
.briefing { padding-block: 34px 8px; }
.briefing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.briefing-title { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.briefing-date { color: var(--muted); font-family: var(--cond); font-size: 1.05rem; }
.briefing-list {
	list-style: none; counter-reset: brief;
	display: flex; gap: 14px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.briefing-list::-webkit-scrollbar { display: none; }
.briefing-list:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.briefing-item { flex: 0 0 calc((100% - 2 * 14px) / 3); scroll-snap-align: start; }
.briefing-nav { display: flex; gap: 8px; margin-left: auto; }

.car-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px;
	border: 0; border-radius: 50%;
	background: var(--surface); color: var(--text);
	cursor: pointer;
}

.car-btn .icon { width: 20px; height: 20px; }

@media (hover: hover) {
	.car-btn:hover { background: var(--surface-2); }
}

.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }

.car-dots button {
	width: 9px; height: 9px; padding: 0;
	border: 0; border-radius: 999px;
	background: var(--surface-2);
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}

.car-dots button[aria-current="true"] { width: 26px; background: var(--red); }

.briefing-item {
	counter-increment: brief;
	position: relative;
	display: grid; gap: 6px; align-content: start;
	padding: 18px 18px 20px;
	border-radius: var(--r);
	background: var(--surface);
}

.briefing-item::before { content: counter(brief); font-family: var(--display); font-size: 2.6rem; font-weight: 900; line-height: .9; color: var(--red); letter-spacing: -.04em; margin-bottom: 6px; }
.briefing-kicker { color: var(--sec); font-family: var(--cond); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.briefing-headline { font-family: var(--display); font-size: 1.05rem; font-weight: 750; line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; }
.briefing-headline a { text-decoration: none; }
.briefing-headline a::after { content: ""; position: absolute; inset: 0; }
.briefing-summary { color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (hover: hover) {
	.briefing-item { transition: background-color .2s ease, transform .2s ease; }
	.briefing-item:hover { background: var(--surface-2); transform: translateY(-2px); }
}

/* Lo último / Más leído */
.row-side { display: grid; gap: 22px; align-content: start; }
.news-box { border-radius: var(--r); background: var(--surface); padding: 6px 0 8px; }
.news-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 20px 8px; }
.news-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }

.news-tabs button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 15px;
	border: 0; border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-family: var(--cond); font-size: 1.02rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em;
	cursor: pointer;
}

.news-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.news-tabs .live-dot { width: 7px; height: 7px; }
.news-updated { color: var(--muted); font-family: var(--cond); font-size: .9rem; }

.news-panel { padding: 4px 8px 0; }
.news-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px 12px; border-radius: var(--r-s); }
.news-item.has-img { grid-template-columns: 96px 1fr; align-items: start; }
.news-img { display: block; overflow: hidden; border-radius: var(--r-s); aspect-ratio: 4 / 3; background: var(--surface-2); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; font-family: var(--cond); font-size: .88rem; }
.news-meta time { color: var(--amber); font-weight: 700; }
.news-meta span { color: var(--sec); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.news-title { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.news-title a { text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) {
	.news-item:hover { background: var(--surface-2); }
}

.news-item.is-ranked { grid-template-columns: 44px 1fr; align-items: start; }
.news-rank { font-family: var(--display); font-size: 2.1rem; font-weight: 900; line-height: 1; color: var(--surface-2); -webkit-text-stroke: 1px var(--muted); letter-spacing: -.04em; }
.news-item.is-ranked:first-child .news-rank { color: var(--red); -webkit-text-stroke: 0; }

/* Investigación */
.invest {
	margin-block: 46px 10px;
	padding-block: 48px 52px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(226, 59, 64, .28), transparent 55%),
		linear-gradient(180deg, #2a1013, #1a0c0e);
	color: #f6eded;
}

.invest-in { display: grid; gap: 30px; }
.invest-kicker { color: #ff9a9e; font-family: var(--cond); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.invest-title { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin: 0 0 12px; overflow-wrap: anywhere; }
.invest-title a { text-decoration: none; color: #ffffff; }
.invest-desc { color: rgba(246, 237, 237, .78); max-width: 42ch; line-height: 1.55; }

.invest-more {
	display: inline-flex; margin-top: 18px;
	padding: 10px 16px; border-radius: var(--r-s);
	background: var(--red); color: #ffffff;
	font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	text-decoration: none;
}

@media (hover: hover) {
	.invest-more:hover { background: #c82f34; }
}

.invest-lead .card-overlay.is-big { min-height: 420px; }
.invest-lead .card-overlay.is-big .card-title { font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem); }
.invest-list { display: grid; gap: 6px; align-content: start; }
.invest-item { position: relative; padding: 14px 16px; border-radius: var(--r-s); background: rgba(255, 255, 255, .05); }
.invest-date { color: #ff9a9e; font-family: var(--cond); font-size: .88rem; margin-bottom: 4px; }
.invest-headline { font-family: var(--display); font-size: 1.05rem; font-weight: 750; line-height: 1.28; color: #ffffff; }
.invest-headline a { text-decoration: none; }
.invest-headline a::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) {
	.invest-item:hover { background: rgba(255, 255, 255, .1); }
}

/* Módulos de sección con tres formatos */
.modules { display: grid; gap: 56px; padding-block: 50px 76px; }
.module-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 22px; margin-bottom: 20px; }

.module-title {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
}

.module-title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--sec); }
.module-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

.module-links a {
	display: inline-block; padding: 6px 12px; border-radius: 999px;
	background: var(--surface);
	color: var(--text-2); font-family: var(--cond); font-size: .95rem; font-weight: 700;
	text-decoration: none;
}

@media (hover: hover) {
	.module-links a:hover { background: var(--surface-2); color: var(--sec); }
}

.m-split, .m-duo { display: grid; gap: 26px; }
.m-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.m-list { display: grid; gap: 4px; align-content: start; }
.m-head { position: relative; padding: 14px 16px; border-radius: var(--r-s); background: var(--surface); }
.m-kicker { color: var(--sec); font-family: var(--cond); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.m-title { font-family: var(--display); font-size: 1.05rem; font-weight: 750; line-height: 1.28; letter-spacing: -.008em; }
.m-title a { text-decoration: none; }
.m-title a::after { content: ""; position: absolute; inset: 0; }
.m-time { color: var(--muted); font-family: var(--cond); font-size: .88rem; margin-top: 6px; }

@media (hover: hover) {
	.m-head:hover { background: var(--surface-2); }
}

.m-lead .card-overlay { min-height: 420px; }
.m-lead .card-overlay .card-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.module .card-card .card-title { font-size: 1.12rem; }
.module .card-card .kicker { color: var(--amber); }

@media (min-width: 720px) and (max-width: 1079px) {
	.briefing-item { flex-basis: calc((100% - 14px) / 2); }
}

@media (min-width: 720px) {
	.m-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m-duo .m-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 1080px) {
	.m-split { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
	.m-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); }
	.m-duo .m-list { grid-column: auto; grid-template-columns: 1fr; gap: 4px; }
	.invest-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 719px) {
	.briefing-item { flex-basis: 82%; }
	.briefing-nav .car-btn { width: 38px; height: 38px; }
	.m-lead .card-overlay { min-height: 300px; }
	.invest-lead .card-overlay.is-big { display: block; min-height: 0; background: rgba(255, 255, 255, .06); color: #ffffff; }
	.invest-lead .card-overlay.is-big .card-title, .invest-lead .card-overlay.is-big .card-meta strong { color: #ffffff; }
	.invest-lead .card-overlay.is-big .card-excerpt, .invest-lead .card-overlay.is-big .card-meta { color: rgba(255, 255, 255, .78); }
}

[data-theme="light"] .briefing-item::before { color: #c42a2f; }
[data-theme="light"] .news-meta time { color: #9a5b00; }

/* Cabecera fija bajo la barra de administración de WordPress (solo la ven los usuarios conectados). */
@media (min-width: 1080px) {
	.admin-bar .site-head { top: 32px; }
}


/* ==========================================================================
   1.4: escuchar, lo siguiente, te puede interesar, seguir, para ti, continúa leyendo
   ========================================================================== */

.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.listen-btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 0 16px 0 12px;
	border: 0; border-radius: 999px;
	background: var(--red); color: #ffffff;
	font-family: var(--cond); font-size: 1rem; font-weight: 700;
	cursor: pointer;
}

.listen-btn .icon { width: 19px; height: 19px; }

@media (hover: hover) {
	.listen-btn:hover { background: #c82f34; }
}

/* Reproductor fijo */
.player {
	position: fixed; z-index: 55;
	left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	width: min(560px, calc(100% - 24px));
	transform: translateX(-50%);
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 40px; gap: 12px; align-items: center;
	padding: 10px 12px;
	border-radius: 16px;
	background: #0f1115;
	color: #ffffff;
	box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8);
}

.player-btn, .player-speed {
	display: inline-grid; place-items: center;
	height: 40px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #ffffff; cursor: pointer;
}

.player-btn { width: 40px; }
.player-btn:first-child { width: 44px; height: 44px; background: var(--red); }
.player-speed { min-width: 48px; padding: 0 10px; border-radius: 999px; font-family: var(--cond); font-weight: 700; }
.player .icon-play { display: block; }
.player .icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }
.player-title { font-family: var(--display); font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { height: 4px; margin-top: 7px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.player-bar span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease; }

/* Lo siguiente */
.next-read { max-width: 70ch; margin-top: 40px; }
.next-label { font-family: var(--cond); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 10px; }

.next-card {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--surface);
	text-decoration: none;
}

.next-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
.next-body { display: grid; gap: 8px; align-content: center; padding: 20px 22px 22px; }
.next-kicker { color: var(--amber); font-family: var(--cond); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.next-title { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: var(--text); }
.next-go { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.next-go .icon { width: 16px; height: 16px; transform: rotate(-90deg); }

@media (hover: hover) {
	.next-card .next-img img { transition: transform .6s ease; }
	.next-card:hover .next-img img { transform: scale(1.03); }
	.next-card:hover .next-title { text-decoration: underline; text-decoration-thickness: 1px; }
}

@media (min-width: 720px) {
	.next-card:has(.next-img) { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
	.next-img { aspect-ratio: auto; min-height: 210px; }
}

/* Te puede interesar */
.entry .inline-rec {
	position: relative;
	display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
	margin-block: 2em;
	padding: 12px;
	border-radius: var(--r);
	background: var(--surface);
	font-family: var(--sans);
}

.entry .inline-rec:not(:has(.inline-rec-img)) { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
.inline-rec-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-s); }
.inline-rec-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.inline-rec-body { display: grid; gap: 4px; }
.inline-rec-kicker { color: var(--amber); font-family: var(--cond); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.entry .inline-rec-title { color: var(--text); font-family: var(--display); font-size: 1.04rem; font-weight: 750; line-height: 1.3; text-decoration: none; }
.entry .inline-rec-title::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) {
	.entry .inline-rec:hover { background: var(--surface-2); }
	.entry .inline-rec:hover .inline-rec-title { text-decoration: underline; }
}

/* Seguir secciones */
.follow-btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 0 16px;
	border: 0; border-radius: 999px;
	background: var(--surface-2); color: var(--text);
	font-family: var(--cond); font-size: 1rem; font-weight: 700;
	cursor: pointer;
}

.follow-btn::before { content: "+"; font-size: 1.2em; line-height: 1; color: var(--red); }
.follow-btn .follow-off { display: none; }
.follow-btn[aria-pressed="true"] { background: var(--red); color: #ffffff; }
.follow-btn[aria-pressed="true"]::before { content: "✓"; color: #ffffff; }
.follow-btn[aria-pressed="true"] .follow-on { display: none; }
.follow-btn[aria-pressed="true"] .follow-off { display: inline; }
.archive-head .follow-btn { margin-top: 18px; background: var(--surface-2); }
.follow-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.follow-box p { color: var(--text-2); max-width: 46ch; }

/* Para ti y Continúa leyendo */
.foryou { padding-block: 34px 6px; }
.foryou-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.foryou-head .block-title { margin-bottom: 0; }
.foryou-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border: 0; border-radius: 999px;
	background: var(--surface); color: var(--text-2);
	font-family: var(--cond); font-size: .95rem; font-weight: 700; cursor: pointer;
}

.chip::after { content: "×"; color: var(--muted); font-size: 1.1em; line-height: 1; }

@media (hover: hover) {
	.chip:hover { background: var(--surface-2); color: var(--text); }
}

.resume { padding-block: 26px 0; }
.resume-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.resume-item {
	display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center;
	padding: 10px; border-radius: var(--r);
	background: var(--surface);
	text-decoration: none;
}

.resume-item img { width: 92px; height: 69px; object-fit: cover; border-radius: var(--r-s); }
.resume-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.resume-body { display: grid; gap: 4px; min-width: 0; }
.resume-title { font-family: var(--display); font-size: .98rem; font-weight: 750; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resume-meta { color: var(--muted); font-family: var(--cond); font-size: .88rem; }
.resume-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.resume-bar span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; }

@media (hover: hover) {
	.resume-item:hover { background: var(--surface-2); }
}

@media (max-width: 1079px) {
	.player { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

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

@media print {
	.util, .site-head, .bottom-nav, .site-foot, .share, .post-side, .ad, .progress, .comments-wrap, .more { display: none !important; }
	body { background: #ffffff; color: #000000; padding: 0; }
}
