/*
Theme Name: COSAS
Theme URI: https://revistacosas.mx/
Author: Felipe Rodriguez
Author URI: https://revistacosas.mx/
Description: Tema editorial de Revista COSAS. Portada con cinta de titulares, columna "Hoy en COSAS", COSAS TV con el último video y los reels del canal de YouTube, modo oscuro y claro, y notas pensadas para leerse bonito.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosas
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--accent: #e3121b;
	--accent-hover: #ff2a33;
	--accent-ink: #ffffff;
	--accent-soft: rgba(227, 18, 27, .14);

	--bg: #070b16;
	--bg-2: #0d1322;
	--bg-3: #151c2f;
	--line: rgba(255, 255, 255, .09);
	--line-strong: rgba(255, 255, 255, .18);
	--text: #a8aec0;
	--text-soft: #7d8499;
	--head: #f5f6f9;

	--panel-bg: #ffffff;
	--panel-head: #0b0f1a;
	--panel-text: #4b5162;
	--panel-line: #e7e8ee;

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

	--wrap: 1320px;
	--gutter: clamp(16px, 3.2vw, 40px);
	--radius: 14px;
	--radius-sm: 9px;
	--radius-lg: 22px;
	--shadow: 0 18px 50px -20px rgba(0, 0, 0, .55);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 74px;
}

:root[data-mode="light"] {
	--accent: #cc0100;
	--accent-hover: #e3121b;
	--accent-soft: rgba(204, 1, 0, .08);

	--bg: #ffffff;
	--bg-2: #f5f5f7;
	--bg-3: #ececf1;
	--line: rgba(10, 14, 26, .09);
	--line-strong: rgba(10, 14, 26, .18);
	--text: #4a4f5d;
	--text-soft: #6f7483;
	--head: #0a0e1a;

	--panel-bg: #0b1020;
	--panel-head: #ffffff;
	--panel-text: #a8aec0;
	--panel-line: rgba(255, 255, 255, .1);
	--shadow: 0 18px 50px -24px rgba(10, 14, 26, .35);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
body.no-scroll { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--head); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--head); font-family: var(--font); margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.wrap--wide { max-width: calc(1180px + var(--gutter) * 2); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ==========================================================================
   Piezas
   ========================================================================== */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent);
}
.eyebrow--live { color: var(--head); }
.live-dot {
	width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
	box-shadow: 0 0 0 0 rgba(227, 18, 27, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(227, 18, 27, .55); }
	70% { box-shadow: 0 0 0 10px rgba(227, 18, 27, 0); }
	100% { box-shadow: 0 0 0 0 rgba(227, 18, 27, 0); }
}

.pill {
	display: inline-flex; align-items: center;
	padding: 4px 10px; border-radius: 999px;
	background: var(--accent); color: var(--accent-ink) !important;
	font-size: 11.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: var(--accent-hover); }
.pill--light { background: #fff; color: var(--accent) !important; }
.pill--outline { background: transparent; color: var(--head) !important; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill--outline:hover { background: var(--bg-3); }
.pill--text { background: none; padding: 0; color: var(--accent) !important; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px; border: 0;
	font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(227, 18, 27, .8); }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--sm { padding: 9px 14px; font-size: 13px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px; border: 0;
	background: transparent; color: var(--head);
	transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn--round { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	font-size: 13px; color: var(--text-soft);
}
.byline { display: inline-flex; align-items: center; gap: 8px; }
.byline__avatar { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg); }
.byline__name a { color: var(--head); font-weight: 600; }
.byline__name a:hover { color: var(--accent); }

.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 22px;
}
.section-head__titles { display: grid; gap: 6px; }
.section-head__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.section-head__title--xl { font-size: clamp(32px, 4vw, 52px); }
.section-head__title a:hover { color: var(--accent); }
.section-head__more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--head);
	padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong);
	transition: all .2s var(--ease);
}
.section-head__more:hover { background: var(--accent); color: #fff; box-shadow: none; }
.section-head__more .icon { transition: transform .2s var(--ease); }
.section-head__more:hover .icon { transform: translateX(3px); }

.promo-bar {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 16px; margin-bottom: 22px; border-radius: 10px;
	background: var(--accent); color: #fff; font-size: 13.5px;
}
.promo-bar__label { font-weight: 800; }
.promo-bar__dot { opacity: .7; }
.promo-bar__text { opacity: .95; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-bar__link { color: #fff; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.promo-bar__link:hover { color: #fff; text-decoration: underline; }

.grid { display: grid; gap: clamp(20px, 2.2vw, 30px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   Barra superior y cabecera
   ========================================================================== */
.topbar { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__tagline { font-style: italic; font-family: var(--font-read); font-size: 14px; color: var(--text); }

.socials { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.socials a {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	color: var(--text); transition: all .2s var(--ease);
}
.socials a:hover { background: var(--accent); color: #fff; }
.socials--small a { width: 28px; height: 28px; }
.socials--small .icon { width: 15px; height: 15px; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease), background-color .3s;
}
.site-header.is-stuck { box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); }
.site-header__inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-stuck .site-header__inner { height: 62px; }
.site-header__burger { display: none; }

.logo { display: inline-flex; flex: none; }
.logo__img { height: 44px; width: auto; transition: height .3s var(--ease); }
.site-header.is-stuck .logo__img { height: 36px; }
.logo__img--on-light { display: none; }
:root[data-mode="light"] .logo__img--on-dark { display: none; }
:root[data-mode="light"] .logo__img--on-light { display: block; }

.main-nav { flex: 1; min-width: 0; }
.main-nav__list { display: flex; justify-content: center; flex-wrap: nowrap; gap: 0; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 12px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; color: var(--head);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a { background: var(--bg-3); }
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a { color: var(--accent); }
.main-nav__list > .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 3px; margin-top: -3px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); opacity: .55;
}
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
	list-style: none; margin: 0; padding: 8px;
	background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s var(--ease); z-index: 10;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 500; color: var(--text);
}
.main-nav .sub-menu a:hover { background: var(--bg-3); color: var(--head); }

.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mode-toggle .icon--moon { display: none; }
:root[data-mode="light"] .mode-toggle .icon--sun { display: none; }
:root[data-mode="light"] .mode-toggle .icon--moon { display: block; }
.site-header__tv { margin-left: 8px; }
.site-header__tv .icon { width: 14px; height: 14px; }

/* Menú móvil */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, .6); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
	position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw);
	display: flex; flex-direction: column; gap: 18px;
	padding: 18px 20px 28px; overflow-y: auto;
	background: var(--bg); border-right: 1px solid var(--line);
	transform: translateX(-100%); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__list, .drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { position: relative; border-bottom: 1px solid var(--line); }
.drawer__list > li > a { display: block; padding: 14px 44px 14px 2px; font-size: 18px; font-weight: 700; color: var(--head); }
.drawer__list .sub-menu { display: none; padding: 0 0 12px 12px; }
.drawer__list .is-open > .sub-menu { display: block; }
.drawer__list .sub-menu a { display: block; padding: 8px 0; color: var(--text); font-weight: 500; }
.submenu-toggle {
	position: absolute; right: 0; top: 8px; width: 38px; height: 38px;
	display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--bg-3); color: var(--head);
	transition: transform .2s var(--ease);
}
.is-open > .submenu-toggle { transform: rotate(180deg); }
.drawer__tv { align-self: flex-start; }

/* Búsqueda */
.search-overlay {
	position: fixed; inset: 0; z-index: 100;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	opacity: 0; transition: opacity .25s var(--ease);
}
.search-overlay.is-open { opacity: 1; }
.search-overlay__inner { position: relative; padding-top: 18vh; max-width: 860px; display: grid; gap: 18px; }
.search-overlay__close { position: absolute; top: 24px; right: var(--gutter); }
.search-overlay .search-form__input { font-size: clamp(22px, 3.4vw, 36px); padding: 22px 70px 22px 26px; }

.search-form { position: relative; }
.search-form__input {
	width: 100%; padding: 14px 54px 14px 18px; border-radius: 14px;
	border: 1.5px solid var(--line-strong); background: var(--bg-2); color: var(--head);
	font: 500 16px/1.3 var(--font); outline: none; transition: border-color .2s;
	-webkit-appearance: none; appearance: none;
}
.search-form__input:focus { border-color: var(--accent); }
.search-form__input::placeholder { color: var(--text-soft); }
.search-form__btn {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; display: grid; place-items: center;
	border: 0; border-radius: 10px; background: var(--accent); color: #fff;
}

/* ==========================================================================
   Cinta de titulares
   ========================================================================== */
.ticker {
	background: var(--accent); overflow: hidden; position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker { overflow-x: auto; }
}
.tcard {
	display: flex; align-items: center; gap: 12px;
	width: 380px; padding: 12px 22px 12px 14px;
	color: #fff; border-right: 1px solid rgba(255, 255, 255, .22);
}
.tcard:hover { color: #fff; background: rgba(0, 0, 0, .12); }
.tcard__media { flex: none; width: 66px; height: 50px; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .2); }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; }
.tcard__body { display: grid; gap: 5px; min-width: 0; justify-items: start; }
.tcard .pill { font-size: 10.5px; padding: 3px 8px; }
.tcard__title {
	font-weight: 700; font-size: 14.5px; line-height: 1.22; letter-spacing: -.01em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==========================================================================
   Tarjetas
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 3 / 2; background: var(--bg-3);
}
.card__media img, .media__fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.media__fallback { display: block; background: radial-gradient(120% 120% at 0 0, var(--accent-soft), transparent 60%), var(--bg-3); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.018em; }
.card__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
	transition: background-size .4s var(--ease), color .2s;
}
.card:hover .card__title a { background-size: 100% 1.5px; }
.card__excerpt { color: var(--text); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* lead: grande con título encima */
.card--lead, .card--overlay { gap: 0; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; }
.card--lead .card__media, .card--overlay .card__media { border-radius: 0; aspect-ratio: 16 / 9; }
.card--overlay .card__media { aspect-ratio: 4 / 3.4; height: 100%; }
.card--lead .card__media::after, .card--overlay .card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(4, 7, 15, 0) 30%, rgba(4, 7, 15, .55) 58%, rgba(4, 7, 15, .94) 100%);
}
.card--lead .card__body, .card--overlay .card__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: clamp(20px, 3vw, 38px); pointer-events: none;
}
.card--lead .card__body a, .card--overlay .card__body a { pointer-events: auto; }
.card--lead .card__title, .card--overlay .card__title { color: #fff; }
.card--lead .card__title { font-size: clamp(26px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 22ch; text-wrap: balance; }
.card--overlay .card__title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.card--lead .meta, .card--overlay .meta { color: rgba(255, 255, 255, .78); }
.card--lead .byline__name a, .card--overlay .byline__name a { color: #fff; }
.card--lead .card__title a:hover, .card--overlay .card__title a:hover { color: #fff; }

/* row: horizontal */
.card--row { flex-direction: row; align-items: center; gap: 16px; }
.card--row .card__media { flex: none; width: 42%; max-width: 200px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--row .card__title { font-size: 17px; }
.card--row .card__body { gap: 8px; }

/* wide: entrevistas y primera nota de sección */
.card--wide {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 52px);
	align-items: center; padding: clamp(14px, 1.6vw, 20px);
	background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
	margin-bottom: clamp(24px, 3vw, 40px);
}
.card--wide .card__media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.card--wide .card__title { font-size: clamp(26px, 3vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.card--wide .card__body { gap: 16px; padding-right: clamp(0px, 2vw, 24px); }
.card--wide .card__excerpt { font-family: var(--font-read); font-size: 18px; }

/* mini: lista lateral */
.card--mini { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.card--mini .card__media { flex: none; width: 84px; aspect-ratio: 1; border-radius: 10px; }
.card--mini .card__title { font-size: 15.5px; font-weight: 600; }
.card--mini .card__body { gap: 6px; }

/* number: lista numerada */
.ncard { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--panel-line, var(--line)); }
.ncard:first-child { border-top: 0; padding-top: 4px; }
.ncard__num {
	flex: none; font-size: 30px; font-weight: 900; line-height: .9; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.4px var(--accent);
	min-width: 38px;
}
.ncard__body { display: grid; gap: 6px; justify-items: start; }
.ncard__title { font-size: 16.5px; font-weight: 700; line-height: 1.22; color: inherit; }
.ncard__title a:hover { color: var(--accent); }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3vw, 40px);
	padding-block: clamp(28px, 4vw, 52px);
	align-items: start;
}
.hero__main { min-width: 0; }
.hero__trio { margin-top: clamp(24px, 2.6vw, 34px); }

.panel {
	background: var(--panel-bg); color: var(--panel-text);
	border-radius: var(--radius-lg); padding: 26px 24px 18px;
	box-shadow: var(--shadow);
	--line: var(--panel-line);
}
.panel .ncard__title, .panel .ncard__title a { color: var(--panel-head); }
.panel .meta { color: var(--panel-text); opacity: .85; }
.panel__title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; color: var(--panel-head); margin-bottom: 14px; }
.panel__title--sm { font-size: 20px; margin-bottom: 8px; }
.hero__aside { position: sticky; top: calc(var(--header-h) + 18px); }
.panel--soft { background: var(--bg-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); --line: var(--line); }
.panel--soft .ncard__title, .panel--soft .ncard__title a, .panel--soft .panel__title { color: var(--head); }

.block { padding-block: clamp(30px, 4.5vw, 64px); border-top: 1px solid var(--line); }
.tv + .block, .ad-slot--home + .block, .ticker + .block { border-top: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.feature__main .card--overlay { height: 100%; }
.feature__main .card--overlay .card__media { aspect-ratio: auto; min-height: 420px; }
.feature__list { display: grid; gap: 18px; align-content: space-between; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.duo__col { min-width: 0; }
.duo__col > .card { margin-bottom: 8px; }
.duo__list { display: grid; }

/* Mosaico de secciones */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 210px; padding: 20px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
	background: var(--bg-3); color: #fff;
}
.tile:nth-child(1), .tile:nth-child(6) { grid-column: span 2; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(4, 7, 15, .05) 20%, rgba(4, 7, 15, .85) 100%); transition: background .3s; }
.tile:hover { color: #fff; }
.tile:hover .tile__img { transform: scale(1.06); }
.tile:hover .tile__shade { background: linear-gradient(200deg, rgba(227, 18, 27, .25) 0%, rgba(4, 7, 15, .9) 100%); }
.tile__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tile__count { font-size: 13px; opacity: .8; margin-top: 6px; }

/* ==========================================================================
   COSAS TV
   ========================================================================== */
.tv {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(44px, 6vw, 88px);
	background: #05070e; color: #b9bfd0;
	--head: #ffffff; --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .22); --bg-3: rgba(255, 255, 255, .08);
}
.tv__glow {
	position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1;
	background:
		radial-gradient(40% 50% at 18% 30%, rgba(227, 18, 27, .38), transparent 70%),
		radial-gradient(35% 40% at 85% 10%, rgba(227, 18, 27, .18), transparent 70%),
		radial-gradient(60% 60% at 50% 110%, rgba(40, 60, 140, .25), transparent 70%);
	filter: blur(10px);
}
.tv::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 22px 22px;
}
.tv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.tv__title { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; letter-spacing: -.045em; margin-top: 10px; color: #fff; }
.tv__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.tv__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 2.6vw, 34px); align-items: start; }
.tv__stage { min-width: 0; }
.tv__player {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
	background: #000; box-shadow: 0 40px 90px -40px rgba(227, 18, 27, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.tv__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv__poster { position: absolute; inset: 0; padding: 0; border: 0; background: #000; display: block; width: 100%; }
.tv__poster-img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .8s var(--ease), opacity .3s; }
.tv__poster:hover .tv__poster-img { transform: scale(1.03); opacity: 1; }
.tv__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center; background: var(--accent); color: #fff;
	box-shadow: 0 0 0 10px rgba(227, 18, 27, .25), 0 20px 50px -10px rgba(0, 0, 0, .7);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tv__play .icon { width: 42%; height: 42%; margin-left: 6%; }
.tv__poster:hover .tv__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(227, 18, 27, .2), 0 20px 50px -10px rgba(0, 0, 0, .7); }
.tv__badge {
	position: absolute; right: 14px; bottom: 14px; padding: 5px 9px; border-radius: 7px;
	background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tv__badge--sm { right: 6px; bottom: 6px; font-size: 11px; padding: 3px 6px; border-radius: 5px; }
.tv__now { display: grid; gap: 10px; justify-items: start; margin-top: 20px; }
.tv__now-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.tv__now-meta { margin: 0; font-size: 14px; color: #8d93a6; }

.tv__side { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: 18px; }
.tv__side-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8d93a6; margin-bottom: 8px; }
.tv__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tv__item {
	display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
	padding: 8px; border: 0; border-radius: 12px; background: transparent; color: #fff;
	transition: background-color .2s var(--ease);
}
.tv__item:hover { background: rgba(255, 255, 255, .06); }
.tv__item.is-active { background: rgba(227, 18, 27, .16); box-shadow: inset 3px 0 0 var(--accent); }
.tv__item-media { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #111; }
.tv__item-media img { width: 100%; height: 100%; object-fit: cover; }
.tv__item-body { display: grid; gap: 4px; min-width: 0; }
.tv__item-title { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv__item-meta { font-size: 12px; color: #8d93a6; }

.reels { margin-top: clamp(40px, 5vw, 64px); }
.reels__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.reels__title { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: #fff; }
.reels__title .icon { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--accent); color: #fff; }
.reels__nav { display: flex; gap: 8px; }
.reels__nav .icon-btn { color: #fff; }
.reels__rail {
	list-style: none; margin: 0; padding: 4px 2px 14px;
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 17vw, 228px); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 2px;
	scrollbar-width: none;
}
.reels__rail::-webkit-scrollbar { display: none; }
.reels__rail > li { scroll-snap-align: start; }
.reel {
	position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
	border-radius: 18px; overflow: hidden; background: #111; color: #fff; text-align: left;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.reel:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--accent), 0 30px 50px -24px rgba(227, 18, 27, .7); color: #fff; }
.reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reel__img.is-fallback { object-position: center; transform: scale(1.8); }
.reel:hover .reel__img { transform: scale(1.06); }
.reel:hover .reel__img.is-fallback { transform: scale(1.9); }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 25%, transparent 50%, rgba(0, 0, 0, .88) 100%); }
.reel__play {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: background-color .2s;
}
.reel__play .icon { width: 14px; height: 14px; margin-left: 2px; }
.reel:hover .reel__play { background: var(--accent); }
.reel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: grid; gap: 6px; }
.reel__title { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.reel__views { font-size: 12px; opacity: .8; }
.reel--more {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: rgba(255, 255, 255, .04); font-weight: 700; text-align: center; padding: 20px;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.reel__more-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.reel__more-icon .icon { width: 30px; height: 30px; }
.tv__empty { text-align: center; }

/* Ventana de video */
.video-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .22s var(--ease); }
.video-modal.is-open { opacity: 1; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 4, 10, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-modal__box { position: relative; height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: 100%; }
.video-modal__frame { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -30px rgba(227, 18, 27, .6); transform: scale(.96); transition: transform .25s var(--ease); }
.video-modal.is-open .video-modal__frame { transform: none; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: -6px; right: -56px; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; }
.video-modal__close:hover { background: var(--accent); }

/* ==========================================================================
   Secciones / archivo
   ========================================================================== */
.archive-head {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 48px);
	border-bottom: 1px solid var(--line);
}
.archive-head__glow {
	position: absolute; inset: -60% -20% auto auto; width: 70%; height: 200%; z-index: -1;
	background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.archive-head__title { font-size: clamp(40px, 7vw, 96px); font-weight: 900; letter-spacing: -.055em; line-height: .95; margin-top: 12px; text-wrap: balance; }
.archive-head__desc { max-width: 720px; margin-top: 16px; font-family: var(--font-read); font-size: 19px; }
.archive-head__count { margin: 16px 0 0; color: var(--text-soft); font-size: 14px; }
.archive-head__search { max-width: 640px; margin-top: 22px; }
.archive-head--page { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.archive-head--page .archive-head__title { font-size: clamp(34px, 5vw, 64px); }
.chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
	color: var(--head); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: all .2s var(--ease);
}
.chip:hover { background: var(--bg-3); color: var(--head); }
.chip.is-active { background: var(--accent); color: #fff; box-shadow: none; }

.archive-body { padding-block: clamp(30px, 4vw, 56px); }
.archive-grid { row-gap: clamp(32px, 3.6vw, 48px); }

.pagination { margin-top: clamp(40px, 5vw, 64px); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--line-strong);
	transition: all .2s var(--ease);
}
.pagination a.page-numbers:hover { background: var(--bg-3); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; box-shadow: none; }
.pagination .page-numbers.dots { box-shadow: none; }

.empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; display: grid; gap: 10px; }
.empty__title { font-size: 26px; font-weight: 800; color: var(--head); }

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

.article__head { padding-top: clamp(30px, 5vw, 64px); text-align: center; }
.article__kicker { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.article__readtime { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); margin-left: 6px; }
.article__readtime .icon { width: 15px; height: 15px; }
.article__title {
	margin: 20px auto 0; max-width: 20ch;
	font-size: clamp(32px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
	text-wrap: balance;
}
.article__deck {
	margin: 22px auto 0; max-width: 680px;
	font-family: var(--font-read); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--text);
	text-wrap: pretty;
}
.article__meta {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 30px; padding-block: 16px; border-block: 1px solid var(--line); text-align: left;
}
.article__byline { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.article__byline .byline__name { font-size: 15px; }
.article__date { font-size: 14px; color: var(--text-soft); }

.share { display: flex; gap: 8px; }
.share__btn {
	position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: var(--bg-3); color: var(--head);
	transition: all .2s var(--ease);
}
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.share__btn--whatsapp:hover { background: #25d366; }
.share__toast {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
	padding: 5px 9px; border-radius: 6px; background: var(--head); color: var(--bg);
	font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s;
}
.share__btn.is-copied .share__toast { opacity: 1; transform: translate(-50%, 0); }

.article__hero { margin: clamp(26px, 4vw, 44px) auto 0; }
.article__hero-img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius-lg); }
.article__hero figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); text-align: center; }

.article__layout {
	display: grid; grid-template-columns: 60px minmax(0, 720px) 300px; justify-content: space-between; gap: 40px;
	padding-block: clamp(30px, 4vw, 54px);
}
.article__rail-sticky, .article__aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.article__rail-sticky { display: grid; justify-items: center; gap: 12px; }
.article__rail .share { flex-direction: column; }
.article__rail-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.article__aside-sticky { display: grid; gap: 20px; }

.article__foot { padding-bottom: clamp(30px, 4vw, 54px); display: grid; gap: 28px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bg-3); color: var(--head); }
.tags a:hover { background: var(--accent); color: #fff; }
.article__share-end {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 18px 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
	font-weight: 700; color: var(--head);
}
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.author-box__name { font-size: 20px; font-weight: 800; color: var(--head); margin: 4px 0 6px; }
.author-box__bio { margin: 0; font-size: 15px; }

/* Cuerpo de lectura */
.entry { font-family: var(--font-read); font-size: clamp(18px, 1.35vw, 20px); line-height: 1.72; color: var(--head); }
:root:not([data-mode="light"]) .entry { color: #d9dce6; }
.entry > * { margin-block: 0 1.15em; }
.entry > p:empty { display: none; }
.entry > p.has-dropcap::first-letter {
	float: left; font-family: var(--font); font-weight: 900; color: var(--accent);
	font-size: 4.1em; line-height: .82; margin: .06em .1em 0 0; letter-spacing: -.04em;
}
.entry a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.entry h2, .entry h3, .entry h4 { font-family: var(--font); margin-top: 1.8em; margin-bottom: .6em; }
.entry h2 { font-size: 1.6em; letter-spacing: -.03em; }
.entry h3 { font-size: 1.3em; }
.entry h4 { font-size: 1.1em; }
.entry strong, .entry b { color: var(--head); font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--accent); }
.entry blockquote, .entry .wp-block-quote {
	position: relative; margin: 1.8em 0; padding: .2em 0 .2em 1.2em;
	border-left: 4px solid var(--accent);
	font-size: 1.25em; line-height: 1.45; font-style: italic; color: var(--head);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .6em; font-size: .65em; font-style: normal; font-family: var(--font); color: var(--text-soft); }
.entry .wp-block-pullquote { border: 0; padding: 1em 0; text-align: center; }
.entry img { border-radius: var(--radius); }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-caption-text, .entry .wp-element-caption {
	margin-top: 8px; font-family: var(--font); font-size: 13.5px; line-height: 1.45; color: var(--text-soft); text-align: left;
}
.entry .wp-caption { max-width: 100%; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry .aligncenter { margin-inline: auto; }
.entry .alignwide, .entry .alignfull { width: auto; }
.entry iframe { border: 0; border-radius: var(--radius); }
.entry iframe[src*="youtube"], .entry iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry .instagram-media, .entry .twitter-tweet, .entry .tiktok-embed { margin-inline: auto !important; }
.entry hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .85em; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .wp-block-gallery { gap: 10px; }
.entry::after { content: ""; display: table; clear: both; }
.page-links { font-family: var(--font); display: flex; gap: 8px; }

.comments-wrap { padding-bottom: 50px; }

/* Publicidad */
.ad-slot { display: grid; place-items: center; gap: 6px; text-align: center; }
.ad-slot::before { content: "Publicidad"; font-family: var(--font); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.ad-slot--header { padding-block: 16px; }
.ad-slot--home { padding-block: 30px; }
.ad-slot--article { margin: 2em 0; padding: 18px 0; border-block: 1px solid var(--line); }

/* 404 */
.notfound { text-align: center; padding-block: clamp(50px, 8vw, 110px) 30px; display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.notfound__code { font-size: clamp(110px, 20vw, 230px); font-weight: 900; line-height: .8; letter-spacing: -.07em; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.notfound__title { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.04em; }
.notfound .search-form { width: 100%; max-width: 520px; }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(44px, 6vw, 80px); margin-top: clamp(20px, 3vw, 40px); }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: clamp(30px, 5vw, 80px); padding-bottom: 44px; }
.site-footer__logo .logo__img { height: 58px; }
.site-footer__claim { margin: 18px 0 18px; font-family: var(--font-read); font-size: 19px; font-style: italic; color: var(--text); max-width: 32ch; }
.site-footer__heading { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--head); margin-bottom: 16px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer__list li { break-inside: avoid; }
.site-footer__list a { display: inline-block; padding: 6px 0; font-weight: 500; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__tv p { font-size: 15px; }
.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-soft);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* ==========================================================================
   Animaciones de entrada
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1380px) {
	.main-nav__list > li > a { padding: 10px 8px; font-size: 14px; }
	.site-header__tv { display: none; }
}

@media (max-width: 1200px) {
	.main-nav { display: none; }
	.site-header__burger { display: inline-grid; }
	.site-header__inner { gap: 10px; position: relative; }
	.site-header__logo { position: absolute; left: 50%; transform: translateX(-50%); }
	.site-header__tv { display: inline-flex; }
}

@media (max-width: 1100px) {
	.hero { grid-template-columns: 1fr; }
	.hero__aside { position: static; }
	.hero__aside .panel__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.hero__aside .ncard:nth-child(2) { border-top: 0; padding-top: 4px; }
	.tv__grid { grid-template-columns: minmax(0, 1fr); }
	.tv__side { min-width: 0; }
	.tv__list { grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; scrollbar-width: none; }
	.tv__item { flex-direction: column; align-items: stretch; }
	.tv__item-media { width: 100%; }

	.article__layout { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--gutter) * 2); }
	.article__rail { display: none; }
	.article__aside-sticky { position: static; }

	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile:nth-child(6) { grid-column: auto; }
}

@media (max-width: 800px) {
	:root { --header-h: 62px; }
	.topbar__date, .topbar__tagline { display: none; }
	.topbar__inner { justify-content: center; }
	.logo__img { height: 36px; }
	.site-header.is-stuck .logo__img { height: 32px; }
	.site-header__tv { display: none; }

	.grid--3 { grid-template-columns: 1fr; }
	.hero__aside .panel__list { grid-template-columns: 1fr; }
	.hero__aside .ncard:nth-child(2) { border-top: 1px solid var(--line); padding-top: 16px; }
	.hero__trio .card, .archive-grid .card { flex-direction: row; align-items: flex-start; gap: 14px; }
	.hero__trio .card__media, .archive-grid .card__media { flex: none; width: 38%; aspect-ratio: 1; }
	.hero__trio .card__title, .archive-grid .card__title { font-size: 17px; }
	.hero__trio .meta .byline, .archive-grid .meta .byline { display: none; }

	.card--lead .card__media { aspect-ratio: 4 / 5; }
	.feature { grid-template-columns: 1fr; }
	.feature__main .card--overlay .card__media { min-height: 0; aspect-ratio: 4 / 5; }
	.card--row .card__media { width: 36%; }
	.card--wide { grid-template-columns: 1fr; padding: 12px; }
	.card--wide .card__body { padding: 4px 6px 10px; }
	.duo { grid-template-columns: 1fr; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.grid--4 .card__title { font-size: 16px; }
	.grid--4 .meta .byline { display: none; }

	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tile { min-height: 150px; padding: 14px; }
	.tile:nth-child(1) { grid-column: span 2; min-height: 190px; }

	.section-head { align-items: center; }
	.section-head__more { font-size: 0; padding: 10px; gap: 0; }
	.section-head__more .icon { width: 18px; height: 18px; }

	.tcard { width: 300px; }
	.tv__cta { width: 100%; }
	.tv__cta .btn { flex: 1; }
	.reels__nav { display: none; }
	.tv__list { grid-auto-columns: minmax(200px, 64%); }
	.reels__rail { grid-auto-columns: 46vw; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-left: var(--gutter); }
	.video-modal { padding: 0; }
	.video-modal__box { height: 100%; width: 100%; aspect-ratio: auto; }
	.video-modal__frame { border-radius: 0; }
	.video-modal__close { top: 12px; left: 12px; right: auto; z-index: 2; }

	.article__head { text-align: left; }
	.article__kicker { justify-content: flex-start; }
	.article__title { margin-left: 0; }
	.article__deck { margin-left: 0; }
	.article__meta { flex-direction: column; align-items: flex-start; }
	.article__hero { padding-inline: 0; }
	.article__hero-img { border-radius: 0; }
	.article__hero figcaption { padding-inline: var(--gutter); text-align: left; }
	.entry .alignleft, .entry .alignright { float: none; margin: 0 0 1em; max-width: 100%; }

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

@media (max-width: 420px) {
	.grid--4 { grid-template-columns: 1fr; }
	.grid--4 .card { flex-direction: row; align-items: flex-start; gap: 14px; }
	.grid--4 .card__media { flex: none; width: 38%; aspect-ratio: 1; }
	.card--row .card__title { font-size: 15.5px; }
}

/* Barra de admin de WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
