/*
Theme Name: MQTVSTREAM
Theme URI: https://mqtvstream.com
Author: MQTVSTREAM
Author URI: https://mqtvstream.com
Description: Tema para el canal de streaming MQTVSTREAM. Reproductor compacto con forma de televisor, hora de Argentina y pronóstico a 7 días al lado, titulares y noticias RSS nacionales e internacionales, tapas de los principales diarios en carrusel desplazable y una paleta inspirada en la bandera argentina. Se configura desde Apariencia → Personalizar.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mqtvstream
Tags: news, entertainment, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, custom-colors
*/

/* =========================================================================
   1. Variables y base
   ========================================================================= */
:root {
	--celeste: #75aadb;
	--celeste-600: #2f76b8;
	--celeste-200: #cfe5f7;
	--celeste-100: #e4f0fa;
	--celeste-50: #f3f8fd;
	--sol: #f6b40e;
	--sol-200: #ffe29a;
	--azul: #0a3fb5;
	--azul-900: #0a2a75;
	--verde: #0bb31c;
	--verde-700: #0a8f1a;
	--rojo: #e5383b;
	--ink: #10203d;
	--muted: #55657f;
	--line: #d3e2f1;
	--white: #fff;

	--f-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

	--wrap: 1240px;
	--header-h: 76px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--celeste-50);
	color: var(--ink);
	font: 400 1rem/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
iframe,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--azul);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--azul-900);
}

h1,
h2,
h3,
h4 {
	font-family: var(--f-head);
	line-height: 1.15;
	color: var(--ink);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--azul);
	outline-offset: 2px;
}

.tv :focus-visible,
.ticker :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible,
.clock-card :focus-visible {
	outline-color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	padding: 12px 18px;
	background: var(--azul);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}

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

.wrap-narrow {
	max-width: 860px;
}

[hidden] {
	display: none !important;
}

/* =========================================================================
   2. Cabecera
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	box-shadow: 0 6px 22px -14px rgba(10, 42, 117, 0.45);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
}

.brand-logo {
	display: block;
	width: auto;
	height: 54px;
}

.main-nav {
	flex: 1;
}

.main-nav .menu,
.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 9px 15px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
	background: var(--celeste-100);
	color: var(--azul);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	background: var(--azul);
	color: #fff;
}

.main-nav .menu-item-has-children {
	position: relative;
}

.main-nav .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 5;
	min-width: 200px;
	margin: 6px 0 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 18px 30px -18px rgba(10, 42, 117, 0.5);
	display: none;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.btn-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 14px;
	border-radius: 999px;
	background: var(--rojo);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.btn-live:hover {
	background: #c92b2e;
	color: #fff;
}

.btn-live i,
.live-pill i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
	}
	70%,
	100% {
		box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
	}
}

.search-toggle,
.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 2px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.search-toggle:hover,
.nav-toggle:hover {
	border-color: var(--celeste);
	color: var(--azul);
}

.nav-toggle {
	display: none;
	margin-left: auto;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2.5px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars {
	position: relative;
}

.nav-toggle-bars::before {
	position: absolute;
	top: -6px;
}

.nav-toggle-bars::after {
	position: absolute;
	top: 6px;
}

.nav-open .nav-toggle-bars {
	background: transparent;
}

.nav-open .nav-toggle-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.header-search {
	padding: 12px 0;
	background: var(--celeste-100);
	border-top: 1px solid var(--line);
}

/* Franja con los colores de la bandera y el Sol de Mayo */
.flag-stripe {
	position: relative;
	height: 16px;
	background: linear-gradient(to bottom, var(--celeste) 0 33.34%, #fff 33.34% 66.66%, var(--celeste) 66.66% 100%);
}

.flag-stripe::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, var(--sol) 0 52%, var(--sol-200) 54% 100%);
	box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--sol);
}

/* =========================================================================
   3. Portada: televisor + panel de hora y clima
   ========================================================================= */
.hero {
	position: relative;
	overflow: hidden;
	padding: 36px 0 42px;
	background:
		radial-gradient(900px 380px at 50% 0, rgba(246, 180, 14, 0.2), transparent 70%),
		linear-gradient(180deg, var(--celeste-200) 0%, var(--celeste-50) 100%);
}

.hero::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -760px;
	width: 1520px;
	height: 1520px;
	transform: translateX(-50%);
	background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.6) 0 3.5deg, transparent 3.5deg 10deg);
	-webkit-mask: radial-gradient(circle, #000 0 28%, transparent 50%);
	mask: radial-gradient(circle, #000 0 28%, transparent 50%);
	pointer-events: none;
}

.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* --- Televisor (guiño al logo: marco negro grueso + bloques de color) --- */
.tv-wrap {
	width: 100%;
}

.tv {
	padding: 12px 14px 14px;
	background: #0b0b0d;
	border-radius: 30px;
	box-shadow: 0 22px 40px -22px rgba(10, 42, 117, 0.7);
}

.tv-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 4px 12px;
	color: #fff;
}

.live-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: var(--rojo);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.live-pill.is-off {
	background: #3b3d45;
}

.live-pill.is-off i {
	animation: none;
	opacity: 0.55;
}

.tv-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tv-share {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.tv-share:hover {
	background: rgba(255, 255, 255, 0.14);
}

.tv-screen {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: #000;
}

.player-frame {
	position: absolute;
	inset: 0;
}

.player-frame video,
.player-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	background: #000;
}

.player-msg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(6, 12, 30, 0.88);
	color: #fff;
	text-align: center;
	font-weight: 600;
}

.player-empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 20px;
	background: linear-gradient(135deg, #fff 0%, var(--celeste-100) 100%);
	text-align: center;
}

.player-empty img {
	width: min(220px, 46%);
	height: auto;
	margin-bottom: 6px;
}

.player-empty-title {
	margin: 0;
	font: 800 1.35rem/1.2 var(--f-head);
}

.player-empty-text {
	margin: 0;
	color: var(--muted);
}

.player-empty-admin {
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--azul);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.tv-base {
	display: flex;
	align-items: stretch;
	height: 40px;
	margin-top: 10px;
}

.tv-base .blk {
	display: block;
}

.blk-a {
	flex: 0 0 14%;
	background: var(--azul);
}

.blk-b {
	flex: 0 0 8.5%;
	background: var(--verde);
}

.blk-c {
	flex: 0 0 12.5%;
	background: var(--azul);
}

.tv-brand {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0b0b0d;
	font: 500 1.3rem/1 var(--f-serif);
	letter-spacing: 0.05em;
	white-space: nowrap;
}

/* --- Panel: hora + clima --- */
.panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.clock-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px 20px;
	align-items: center;
	overflow: hidden;
	padding: 20px 24px;
	border-radius: 22px;
	background: linear-gradient(120deg, var(--azul-900) 0%, var(--azul) 48%, #2f76d0 100%);
	color: #fff;
}

.clock-card::after {
	content: "";
	position: absolute;
	right: -46px;
	top: -58px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(246, 180, 14, 0.95) 0 40%, rgba(246, 180, 14, 0.25) 41% 62%, transparent 63%);
	pointer-events: none;
}

.clock-main,
.now {
	position: relative;
	z-index: 1;
}

.clock-label {
	margin: 0;
	color: var(--celeste-200);
	font-size: 0.9rem;
	font-weight: 600;
}

.clock-time {
	margin: 2px 0 0;
	font: 800 clamp(2.4rem, 4.2vw, 3.5rem) / 1 var(--f-head);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.clock-sec {
	font-size: 0.55em;
	font-weight: 700;
	color: var(--sol-200);
}

.clock-date {
	margin: 6px 0 0;
	font-weight: 600;
}

.clock-local {
	margin: 2px 0 0;
	color: var(--celeste-200);
	font-size: 0.85rem;
}

.now {
	display: grid;
	justify-items: end;
	gap: 0;
	text-align: right;
	padding-right: 4px;
}

.now-ico {
	font-size: 2.3rem;
	line-height: 1;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.now-temp {
	margin-top: 4px;
	font: 800 2rem/1 var(--f-head);
}

.now-desc {
	font-size: 0.9rem;
	font-weight: 600;
}

.now-extra {
	color: var(--celeste-200);
	font-size: 0.8rem;
}

.forecast-card {
	flex: 1;
	padding: 16px 20px 14px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 16px 30px -24px rgba(10, 42, 117, 0.5);
}

.forecast-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.forecast-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
}

.city-select {
	max-width: 190px;
	padding: 6px 30px 6px 12px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--celeste-50);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.forecast {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-row {
	display: grid;
	grid-template-columns: 64px 34px minmax(50px, 1fr) 78px auto;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px dashed var(--line);
}

.fc-row:first-child {
	border-top: 0;
}

.fc-day {
	font-weight: 700;
	font-size: 0.93rem;
	text-transform: capitalize;
}

.fc-row.is-today .fc-day {
	color: var(--azul);
}

.fc-ico {
	font-size: 1.35rem;
	line-height: 1;
	text-align: center;
}

.fc-bar {
	position: relative;
	height: 8px;
	border-radius: 99px;
	background: var(--celeste-100);
}

.fc-bar i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--l, 0%);
	width: var(--w, 100%);
	min-width: 8px;
	border-radius: 99px;
	background: linear-gradient(90deg, #4fa3e8, var(--sol) 60%, #f0742a);
}

.fc-temps {
	font-variant-numeric: tabular-nums;
	font-size: 0.93rem;
	text-align: right;
	white-space: nowrap;
}

.fc-temps b {
	font-weight: 800;
}

.fc-temps span {
	color: var(--muted);
}

.fc-rain {
	justify-self: end;
	padding: 2px 8px;
	border-radius: 99px;
	background: var(--celeste-50);
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.fc-rain.rain-1 {
	background: var(--celeste-100);
	color: var(--celeste-600);
}

.fc-rain.rain-2 {
	background: var(--azul);
	color: #fff;
}

.forecast-note {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.75rem;
}

/* =========================================================================
   4. Titulares en movimiento
   ========================================================================= */
.ticker {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background: var(--azul);
	color: #fff;
}

.ticker-label {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	flex: none;
	padding: 0 20px;
	background: var(--sol);
	color: #1c1400;
	font: 800 0.98rem/1 var(--f-head);
	box-shadow: 8px 0 14px -6px rgba(0, 0, 0, 0.35);
}

.ticker-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ticker-track {
	display: inline-flex;
	white-space: nowrap;
	animation: ticker var(--ticker-time, 120s) linear infinite;
}

.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
	animation-play-state: paused;
}

.ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0 12px 28px;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.ticker-item:hover {
	color: var(--sol-200);
	text-decoration: underline;
}

.ticker-item b {
	color: var(--sol);
	font-weight: 700;
}

.ticker-item::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: 28px;
	background: var(--celeste);
}

.ticker-item:nth-child(3n + 2)::after {
	background: var(--verde);
}

.ticker-item:nth-child(3n)::after {
	background: var(--sol);
}

@keyframes ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* =========================================================================
   5. Secciones y noticias
   ========================================================================= */
.section {
	padding: 52px 0 12px;
}

.section:last-of-type {
	padding-bottom: 64px;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-bottom: 22px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 auto 0 0;
	font-size: clamp(1.55rem, 2.6vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* Los bloques del logo, usados como marca de cada sección */
.blocks {
	display: inline-flex;
	gap: 3px;
	flex: none;
}

.blocks i {
	display: block;
	width: 12px;
	height: 28px;
	background: var(--azul);
}

.blocks i:nth-child(2) {
	background: var(--verde);
}

.blocks i:nth-child(3) {
	background: var(--azul);
}

.section-tapas .blocks i:nth-child(1) {
	background: var(--sol);
}

.section-tapas .blocks i:nth-child(2) {
	background: var(--celeste);
}

.section-tapas .blocks i:nth-child(3) {
	background: var(--verde);
}

.section-posts .blocks i:nth-child(1) {
	background: var(--celeste);
}

.section-posts .blocks i:nth-child(2) {
	background: var(--rojo);
}

.section-posts .blocks i:nth-child(3) {
	background: var(--sol);
}

.more-link {
	font-weight: 700;
}

.tabs {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
}

.tab {
	padding: 8px 20px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.tab:hover {
	color: var(--ink);
}

.tab[aria-selected="true"] {
	background: var(--azul);
	color: #fff;
}

#tab-internacional[aria-selected="true"] {
	background: var(--verde-700);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-top: 5px solid var(--c, var(--azul));
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.18s;
}

.news-card:hover {
	box-shadow: 0 16px 28px -20px rgba(10, 42, 117, 0.65);
}

.news-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

.news-img {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--celeste-100);
}

.news-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--c, var(--azul)) 0%, rgba(255, 255, 255, 0.4) 260%);
	color: #fff;
	font: 800 2.4rem/1 var(--f-head);
}

.news-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 14px 16px 16px;
}

.src-pill {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--c, var(--azul));
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
}

.news-body h3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
}

.news-link:hover h3 {
	color: var(--azul);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.news-meta {
	margin: auto 0 0;
	color: var(--muted);
	font-size: 0.82rem;
}

.news-error {
	grid-column: 1 / -1;
	padding: 30px;
	border: 2px dashed var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--muted);
	text-align: center;
}

.is-skeleton .news-img,
.is-skeleton .src-pill,
.is-skeleton h3,
.is-skeleton p,
.fc-row.is-skeleton span {
	border-radius: 6px;
	background: linear-gradient(90deg, #e5eef8 25%, #f4f9fd 50%, #e5eef8 75%);
	background-size: 200% 100%;
	color: transparent;
	animation: shimmer 1.4s linear infinite;
}

.is-skeleton .src-pill {
	width: 90px;
}

.fc-row.is-skeleton span {
	display: block;
	height: 16px;
}

.fc-row.is-skeleton .fc-bar {
	height: 8px;
}

.fc-row.is-skeleton .fc-bar i {
	display: none;
}

@keyframes shimmer {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

/* =========================================================================
   6. Tapas de los diarios
   ========================================================================= */
.section-tapas {
	margin-top: 40px;
	padding: 44px 0 40px;
	background: linear-gradient(180deg, var(--celeste-100), var(--celeste-200));
}

.section-tapas .section-head {
	margin-bottom: 14px;
}

.tapas-date {
	margin: 0;
	color: var(--muted);
	font-weight: 600;
}

.scroll-nav {
	display: flex;
	gap: 8px;
}

.scroll-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: var(--azul);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.scroll-btn:hover {
	background: var(--azul-900);
}

.scroll-btn:disabled {
	background: #9fb3d6;
	cursor: default;
}

.tapas-scroller {
	overflow-x: auto;
	padding: 10px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 22px;
	scroll-snap-type: x proximity;
	scroll-padding-inline: max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
	scrollbar-color: var(--azul) transparent;
	scrollbar-width: thin;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}

.tapas-scroller.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.tapas-track {
	display: flex;
	gap: 18px;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tapa {
	flex: 0 0 210px;
	scroll-snap-align: start;
}

.tapa-btn {
	display: block;
	width: 100%;
	padding: 8px 8px 10px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 16px 26px -16px rgba(10, 42, 117, 0.6);
	color: var(--ink);
	text-align: left;
	text-decoration: none;
	cursor: zoom-in;
}

a.tapa-btn {
	cursor: pointer;
}

.tapa-img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: top;
	background: var(--celeste-100);
	-webkit-user-drag: none;
	pointer-events: none;
}

.tapa-fallback {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 8px;
	width: 100%;
	aspect-ratio: 3 / 4;
	padding: 14px;
	background: repeating-linear-gradient(135deg, var(--celeste-100) 0 10px, #fff 10px 20px);
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}

.tapa-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 9px;
	font: 700 0.95rem/1.2 var(--f-head);
}

.tapa-name::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--c, var(--azul));
}

.tapa:nth-child(4n + 2) .tapa-name::after {
	background: var(--verde);
}

.tapa:nth-child(4n + 3) .tapa-name::after {
	background: var(--sol);
}

.tapa:nth-child(4n) .tapa-name::after {
	background: var(--celeste);
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(6, 16, 40, 0.9);
}

.lightbox-fig {
	display: grid;
	gap: 10px;
	max-height: 100%;
	margin: 0;
	text-align: center;
}

.lightbox-fig img {
	max-height: calc(100vh - 110px);
	width: auto;
	margin-inline: auto;
	border-radius: 4px;
	background: #fff;
}

.lightbox-fig figcaption {
	color: #fff;
	font-weight: 600;
}

.lightbox-fig figcaption a {
	color: var(--sol-200);
}

.lightbox-close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

/* =========================================================================
   7. Entradas, páginas y comentarios
   ========================================================================= */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--celeste-100);
}

.post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-ph {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 0 0 0 24px;
	background: linear-gradient(135deg, var(--celeste-200), var(--celeste-100));
}

.post-card-ph i {
	display: block;
	width: 26px;
	height: 44px;
	background: var(--azul);
}

.post-card-ph i:nth-child(2) {
	background: var(--verde);
}

.post-card-ph i:nth-child(3) {
	background: var(--sol);
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 18px 20px 22px;
}

.post-card-meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.post-card-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
}

.post-card-title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--azul);
	text-decoration: underline;
}

.post-card-excerpt {
	margin: 0;
	color: var(--muted);
}

.page-hero {
	padding: 48px 0 30px;
	background: linear-gradient(180deg, var(--celeste-200), var(--celeste-50));
}

.page-title {
	margin: 0;
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	font-weight: 800;
	letter-spacing: -0.015em;
}

.page-desc {
	margin-top: 8px;
	color: var(--muted);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 8px;
	color: var(--muted);
	font-weight: 600;
}

.entry-thumb {
	margin: 0 0 28px;
}

.entry-thumb img {
	display: block;
	width: 100%;
	border-radius: 18px;
}

.entry-content {
	max-width: 72ch;
	padding-bottom: 40px;
	font-size: 1.08rem;
	line-height: 1.75;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3 {
	margin: 1.8em 0 0.5em;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 20px;
	border-left: 6px solid var(--sol);
	color: var(--muted);
	font-size: 1.15rem;
}

.entry-content img {
	border-radius: 10px;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	color: var(--muted);
	font-size: 0.88rem;
}

.entry-tags {
	padding-bottom: 24px;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0 40px;
	font-weight: 700;
}

.pagination,
.navigation.pagination {
	margin-top: 36px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.nav-links .page-numbers.current {
	border-color: var(--azul);
	background: var(--azul);
	color: #fff;
}

.comments {
	max-width: 72ch;
	padding-bottom: 60px;
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
}

.comment-body {
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.comment-form .submit,
.btn-primary {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--azul);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.comment-form .submit:hover,
.btn-primary:hover {
	background: var(--azul-900);
	color: #fff;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 11px 18px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: #fff;
}

.search-submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--azul);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.empty-state {
	padding: 36px;
	border: 2px dashed var(--line);
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.empty-state .search-form {
	margin: 16px auto 0;
}

.not-found {
	padding: 70px 0 90px;
	text-align: center;
}

.not-found .search-form {
	margin: 22px auto;
}

.nf-code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 800 clamp(5rem, 16vw, 9rem) / 1 var(--f-head);
	color: var(--azul);
}

.nf-sun {
	display: inline-grid;
	place-items: center;
	width: 1.05em;
	height: 1.05em;
	border-radius: 50%;
	background: radial-gradient(circle, var(--sol) 0 55%, var(--sol-200) 57% 100%);
	color: var(--azul-900);
}

/* =========================================================================
   8. Pie de página
   ========================================================================= */
.site-footer {
	margin-top: 0;
	background: var(--azul-900);
	color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	padding-block: 44px 34px;
}

.footer-logo {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 14px;
	background: #fff;
}

.footer-logo .brand-logo {
	height: 46px;
}

.footer-brand p {
	margin: 14px 0 0;
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.social {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--celeste-600);
	color: #fff;
	font: 800 0.9rem/1 var(--f-head);
	text-decoration: none;
}

.social:hover {
	color: #fff;
	transform: translateY(-2px);
}

.social-facebook {
	background: #1877f2;
}

.social-instagram {
	background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4);
}

.social-x {
	background: #000;
}

.social-youtube {
	background: #ff0000;
}

.social-tiktok {
	background: #111;
	box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55;
}

.social-twitch {
	background: #9146ff;
}

.social-whatsapp {
	background: #1fae54;
}

.social-telegram {
	background: #229ed9;
}

.footer-nav .menu {
	flex-direction: column;
	gap: 8px;
}

.site-footer a {
	color: #fff;
}

.footer-nav a {
	text-decoration: none;
	font-weight: 600;
}

.footer-nav a:hover {
	color: var(--sol-200);
	text-decoration: underline;
}

.widget-title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 1.05rem;
}

.footer-widgets ul {
	margin: 0;
	padding-left: 18px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.86rem;
}

.footer-bottom .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 16px;
}

.footer-bottom p {
	margin: 0;
}

.footer-credits {
	color: rgba(255, 255, 255, 0.64);
}

/* =========================================================================
   9. Responsive
   ========================================================================= */
@media (max-width: 1100px) {
	.news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 66px;
	}

	.brand-logo {
		height: 44px;
	}

	.nav-toggle {
		display: inline-grid;
	}

	.main-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: 10px 20px 18px;
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 20px 24px -18px rgba(10, 42, 117, 0.5);
	}

	.nav-open .main-nav {
		display: block;
	}

	.main-nav .menu {
		flex-direction: column;
	}

	.main-nav a {
		padding: 12px 16px;
		border-radius: 12px;
	}

	.main-nav .sub-menu {
		position: static;
		display: block;
		margin: 0;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
	}

	.header-actions {
		margin-left: 0;
	}

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

@media (max-width: 720px) {
	.panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		padding: 24px 0 30px;
	}

	.tv {
		padding: 8px 9px 10px;
		border-radius: 22px;
	}

	.tv-head {
		padding-bottom: 8px;
	}

	.tv-share span {
		display: none;
	}

	.tv-share {
		padding: 8px;
	}

	.tv-screen {
		border-radius: 10px;
	}

	.tv-base {
		height: 30px;
	}

	.tv-brand {
		font-size: 1rem;
	}

	.btn-live span {
		display: none;
	}

	.section {
		padding-top: 40px;
	}

	.tapa {
		flex-basis: 170px;
	}

	.clock-card {
		padding: 18px 18px;
	}
}

@media (max-width: 560px) {
	.news-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.fc-row {
		grid-template-columns: 52px 28px minmax(30px, 1fr) 70px auto;
		gap: 8px;
	}

	.section-title {
		flex-basis: 100%;
	}

	.forecast-head {
		flex-wrap: wrap;
	}

	.ticker-label {
		padding: 0 12px;
		font-size: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn-live i,
	.live-pill i,
	.is-skeleton *,
	.fc-row.is-skeleton span {
		animation: none !important;
	}

	.ticker-viewport {
		overflow-x: auto;
	}

	.ticker-track {
		animation: none;
	}

	.social:hover {
		transform: none;
	}
}
