/*
Theme Name: Letras Prohibidas
Theme URI: https://letrasprohibidas.com
Author: Clemente Zapata
Author URI: https://letrasprohibidas.com
Description: Tema profesional para portal de noticias. Estética editorial limpia: fondo claro, acento azul, tipografía Atkinson Hyperlegible. Portada con carrusel destacado y secciones por categoría, vistas de noticia, archivos de categoría/autor, búsqueda y 404. Optimizado para Core Web Vitals y compatible con Gutenberg. Traducido desde el diseño original en Astro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letras-prohibidas
Tags: news, blog, custom-colors, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* =========================================================================
   Tipografía local — Atkinson Hyperlegible (mismas fuentes del diseño Astro)
   ========================================================================= */
@font-face {
	font-family: 'Atkinson Hyperlegible';
	src: url('assets/fonts/atkinson-regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Atkinson Hyperlegible';
	src: url('assets/fonts/atkinson-bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
   Tokens de diseño
   ========================================================================= */
:root {
	--font-atkinson: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;

	--accent: #2337ff;
	--accent-dark: #000d8a;
	--black: 15, 18, 25;
	--gray: 96, 115, 159;
	--gray-light: 229, 233, 240;
	--gray-dark: 34, 41, 57;
	--gray-gradient: rgba(var(--gray-light), 50%), #fff;
	--box-shadow:
		0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%),
		0 16px 32px rgba(var(--gray), 33%);

	/* Ancho máximo del contenido centrado en todo el sitio */
	--content-max: 1340px;
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: var(--font-atkinson);
	margin: 0;
	padding: 0;
	text-align: left;
	background: linear-gradient(var(--gray-gradient)) no-repeat;
	background-size: 100% 600px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	color: rgb(var(--gray-dark));
	font-size: 20px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5rem 0;
	color: rgb(var(--black));
	line-height: 1.2;
}
h1 { font-size: 3.052em; }
h2 { font-size: 2.441em; }
h3 { font-size: 1.953em; }
h4 { font-size: 1.563em; }
h5 { font-size: 1.25em; }

strong,
b { font-weight: 700; }

a { color: var(--accent); }
a:hover { color: var(--accent); }

p { margin-bottom: 1em; }

img {
	max-width: 100%;
	height: auto;
}

code {
	padding: 2px 5px;
	background-color: rgb(var(--gray-light));
	border-radius: 2px;
}
pre {
	padding: 1.5em;
	border-radius: 8px;
}
pre > code {
	all: unset;
}
blockquote {
	border-left: 4px solid var(--accent);
	padding: 0 0 0 20px;
	margin: 0;
	font-size: 1.333em;
}
hr {
	border: none;
	border-top: 1px solid rgb(var(--gray-light));
}

/* Accesibilidad: solo lectores de pantalla */
.sr-only,
.screen-reader-text {
	border: 0;
	padding: 0;
	margin: 0;
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: #fff;
	color: var(--accent);
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 8px 0;
	font-weight: 700;
}
.skip-link:focus {
	left: 0;
}

/* Foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	margin: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(var(--black), 5%);
}

/* ---- Barra superior: lema + redes | fecha ---- */
.header-topbar {
	border-bottom: 1px solid rgb(var(--gray-light));
}
.header-topbar-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.topbar-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.topbar-social {
	gap: 0.7rem;
}
.topbar-social a svg {
	width: 18px;
	height: 18px;
}
.topbar-date {
	font-size: 0.9rem;
	color: rgb(var(--gray-dark));
	white-space: nowrap;
}

/* ---- Logo centrado (protagonista) ---- */
.header-logo {
	text-align: center;
	padding: 1rem 1.25rem 0.75rem;
}
.header-logo .custom-logo,
.header-logo-img {
	display: inline-block;
	width: auto;
	height: auto;
	max-height: 190px;
	max-width: min(92%, 820px);
}

/* ---- Fila de navegación: categorías + buscador ---- */
.header-nav {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0.6rem 1.25rem 0.75rem;
	border-top: 1px solid rgb(var(--gray-light));
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.nav-primary {
	flex: 1 1 auto;
	min-width: 0;
}
.header-nav .search-form {
	flex: 0 0 clamp(170px, 22%, 260px);
	margin-left: auto;
}

/* Buscador del header */
.search-form {
	position: relative;
	margin-left: auto;
	flex: 1 1 440px;
	max-width: 500px;
	display: flex;
	align-items: center;
}
.search-form svg {
	display: block;
	color: rgb(var(--gray));
	pointer-events: none;
	transition: color 0.2s;
}
.search-form input[type='search'] {
	width: 100%;
	padding: 0.7rem 1.1rem 0.7rem 3rem;
	border: 1.5px solid rgb(var(--gray-light));
	border-radius: 999px;
	font-size: 0.95rem;
	font-family: inherit;
	background: rgba(var(--gray-light), 0.35);
	color: rgb(var(--gray-dark));
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-form input[type='search']::placeholder {
	color: rgb(var(--gray));
}
.search-form input[type='search']:hover {
	border-color: rgba(var(--gray), 0.5);
}
.search-form input[type='search']:focus {
	outline: none;
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(35, 55, 255, 0.12);
}
.search-form:focus-within svg {
	color: var(--accent);
}
.search-form button[type='submit'] {
	position: absolute;
	left: 0;
	top: 0;
	width: 3rem;
	height: 100%;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgb(var(--gray));
}
.search-form:focus-within button[type='submit'] {
	color: var(--accent);
}

/* Categorías como píldoras (dentro de la fila de navegación) */
.nav-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-categories li {
	display: flex;
	margin: 0;
	padding: 0;
}
.nav-categories .cat-link {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	border: 1.5px solid rgb(var(--gray-light));
	background: #fff;
	color: rgb(var(--gray-dark));
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s;
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
}
.nav-categories .cat-link:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.nav-categories .cat-link.active,
.nav-categories .current-menu-item > .cat-link,
.nav-categories .current-cat > .cat-link {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* =========================================================================
   Redes sociales (SVG con color de marca)
   ========================================================================= */
.social-links {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s, opacity 0.2s;
}
.social-links a:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}
.social-links .sl-facebook { color: #1877f2; }
.social-links .sl-x { color: #000; }
.social-links .sl-youtube { color: #ff0000; }
.social-links .sl-instagram { color: #d62976; }
.social-links .sl-instagram svg { fill: url(#ig-gradient); }
.social-links.on-dark .sl-x { color: #fff; }

/* =========================================================================
   Contenedores de página
   ========================================================================= */
.site-main {
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}
/* Archivos y búsqueda traen su propio hero: sin padding superior */
.lp-flush .site-main {
	padding-top: 0;
}
/* Layout de dos columnas: contenido + aside con banners */
.content-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: start;
}
.content-col {
	min-width: 0;
}

/* =========================================================================
   Hero de portada: Última hora + Las buenas noticias
   ========================================================================= */
.hero-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) 1px minmax(0, 1fr);
	column-gap: 2.25rem;
	align-items: stretch;
	margin-bottom: 3rem;
}
.hero-featured--single {
	grid-template-columns: 1fr;
}
.hero-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.hero-heading {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.1;
	color: rgb(var(--black));
	margin: 0 0 1rem;
}
.hero-heading--upper {
	text-transform: uppercase;
}

/* Línea separadora vertical entre las dos secciones */
.hero-divider {
	align-self: stretch;
	background: rgb(var(--gray-light));
}
.hero-featured--single .hero-divider {
	display: none;
}

/* Fader: fundido cronometrado entre noticias (contenido servido por PHP) */
.hero-fader {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.hero-fader--paired {
	gap: 1.5rem;
}
.fader-row {
	position: relative;
	flex: 1;
}
.hero-fader--main .fader-row {
	min-height: 520px;
}
.hero-fader--paired .fader-row {
	min-height: 220px;
}

/* Tarjeta destacada: imagen de fondo + degradado + texto superpuesto */
.feature-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	color: #fff;
	text-decoration: none;
	background: rgb(var(--gray-dark));
	box-shadow: 0 1px 4px rgba(var(--gray), 20%);
	transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
	box-shadow: 0 6px 24px rgba(var(--gray), 40%);
	transform: translateY(-2px);
	color: #fff; /* Evita el azul de a:hover, que hacía ilegible el texto. */
}
/* Al pasar el cursor, el texto se resalta en blanco más brillante */
.feature-card:hover .feature-title {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.feature-card:hover .feature-date,
.feature-card:hover .feature-excerpt {
	color: #fff;
	opacity: 1;
}
.feature-card .feature-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.feature-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(15, 18, 25, 0.9) 0%,
		rgba(15, 18, 25, 0.45) 42%,
		rgba(15, 18, 25, 0) 70%
	);
}
.feature-card--noimg::after {
	background: linear-gradient(135deg, var(--accent-dark), rgb(var(--gray-dark)));
}
.feature-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	background: var(--accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.3rem 0.75rem;
	border-radius: 4px;
}
.feature-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 1.25rem;
}
.feature-date {
	display: block;
	font-size: 0.82rem;
	opacity: 0.9;
	margin-bottom: 0.35rem;
}
.feature-title {
	color: #fff;
	margin: 0 0 0.4rem;
	line-height: 1.18;
	font-size: 1.3rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.feature-excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.9;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* La tarjeta principal (Última hora) es más grande */
.feature-card--main .feature-body {
	padding: 2rem;
}
.feature-card--main .feature-badge {
	top: 1.25rem;
	left: 1.25rem;
	font-size: 0.8rem;
	padding: 0.35rem 0.9rem;
}
.feature-card--main .feature-title {
	font-size: 2.1rem;
}
.feature-card--main .feature-excerpt {
	font-size: 1rem;
}

/* Estado de fundido de cada diapositiva (se aplica sobre .feature-card) */
.fader-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.fader-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
	transition: opacity 0.6s ease;
}

/* Botones anterior/siguiente del fader */
.fader-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: rgb(var(--black));
	box-shadow: 0 2px 10px rgba(var(--black), 20%);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 3;
}
.fader-btn:hover {
	background: #fff;
}
.fader-prev {
	left: 1rem;
}
.fader-next {
	right: 1rem;
}

@media (max-width: 900px) {
	.hero-featured {
		grid-template-columns: 1fr;
		row-gap: 2rem;
	}
	.hero-divider {
		height: 1px;
	}
	.hero-fader--main .fader-row {
		min-height: 340px;
	}
	.hero-heading {
		font-size: 2rem;
	}
	.feature-card--main .feature-title {
		font-size: 1.6rem;
	}
}
@media (max-width: 560px) {
	.hero-fader--main .fader-row,
	.hero-fader--paired .fader-row {
		min-height: 260px;
	}
	.hero-heading {
		font-size: 1.7rem;
	}
	.fader-btn {
		width: 36px;
		height: 36px;
	}
}

/* =========================================================================
   Separador de sección (portada)
   ========================================================================= */
.section-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2.5rem 0 1.5rem;
}
.section-header h2 {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
	margin: 0;
}
.section-header hr {
	flex: 1;
	border: none;
	border-top: 2px solid rgb(var(--gray-light));
	margin: 0;
}
.see-all {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }

/* =========================================================================
   Grid de tarjetas
   ========================================================================= */
.news-grid {
	display: grid;
	gap: 1.5rem;
}
.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.news-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.news-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Tarjeta de noticia — altura fija para que todas midan igual */
.news-card {
	position: relative;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(var(--gray), 20%);
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	height: 330px;
}
.news-card:hover {
	box-shadow: 0 4px 20px rgba(var(--gray), 35%);
	transform: translateY(-2px);
}
.card-image-link {
	display: block;
	flex: 0 0 150px;
	height: 150px;
	overflow: hidden;
}
.news-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
}
.card-no-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(var(--gray-light), 0.6), rgba(var(--gray-light), 0.25));
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(var(--gray), 0.6);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.75rem;
}
.card-body {
	padding: 0.75rem 1rem 0.9rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}
.card-badge {
	position: relative;
	z-index: 1;
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.5rem;
	text-decoration: none;
	width: fit-content;
}
.card-badge:hover { text-decoration: underline; }
.card-body h3 {
	font-size: 0.98rem;
	line-height: 1.3;
	margin: 0 0 0.35rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-title-link {
	color: rgb(var(--black));
	text-decoration: none;
}
/* La tarjeta entera es clickeable (stretched link) */
.card-title-link::after {
	content: '';
	position: absolute;
	inset: 0;
}
.news-card:hover .card-title-link {
	color: var(--accent);
}
.card-body p {
	font-size: 0.85rem;
	color: rgb(var(--gray));
	line-height: 1.45;
	margin: 0 0 0.6rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-meta {
	position: relative;
	font-size: 0.8rem;
	color: rgb(var(--gray));
	border-top: 1px solid rgb(var(--gray-light));
	padding-top: 0.6rem;
	margin-top: auto;
}

/* =========================================================================
   Aside con banners
   ========================================================================= */
.aside-banners {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

/* =========================================================================
   Portada: bloque dual (dos secciones + un flier lateral que abarca ambas)
   ========================================================================= */
.dual-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: stretch;
	margin-top: 2.5rem;
}
.dual-section__col {
	min-width: 0;
}
/* La primera sección del bloque alinea su cabecera con el tope del flier */
.dual-section__col > .cat-section:first-child .section-header {
	margin-top: 0;
}
.portada-flier {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.portada-flier .widget {
	width: 300px;
	max-width: 100%;
}
.portada-flier img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}
.portada-flier__ph {
	width: 300px;
	max-width: 100%;
	flex: 1;
	min-height: 520px;
	border-radius: 10px;
	border: 2px dashed rgb(var(--gray-light));
	background: rgba(var(--gray-light), 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem;
	color: rgb(var(--gray));
	font-size: 0.85rem;
	font-weight: 600;
}

/* Flier 1: "Te recomendamos" — fundido cronometrado entre grupos de 5
   (reutiliza .fader-row/.fader-slide del hero, ver assets/js/hero.js). */
.flier-recomendaciones-inner {
	width: 300px;
	max-width: 100%;
	border: 1px solid rgb(var(--gray-light));
	border-radius: 10px;
	padding: 1.5rem;
}
.flier-heading {
	font-size: 1.3rem;
	font-weight: 700;
	color: rgb(var(--black));
	margin: 0 0 1.25rem;
}
.flier-fader {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}
.flier-fader .fader-row {
	position: relative;
	min-height: 60px;
}
.flier-rec {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
}
.flier-rec-avatar {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: rgb(var(--gray-light));
}
.flier-rec-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.flier-rec-body {
	min-width: 0;
}
.flier-rec-name {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	color: rgb(var(--black));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.flier-rec:hover .flier-rec-name {
	color: var(--accent);
}
.flier-rec-url {
	display: block;
	font-size: 0.78rem;
	color: rgb(var(--gray));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Flier 2: CTA fija de "¿Quieres promocionarte?" */
.flier-promo {
	width: 300px;
	max-width: 100%;
}
.flier-promo-inner {
	min-height: 520px;
	width: 100%;
	border-radius: 10px;
	background: linear-gradient(150deg, var(--accent), var(--accent-dark));
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.9rem;
	padding: 2.5rem 2rem;
	text-align: left;
}
.flier-promo-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}
.flier-promo-title {
	font-size: 1.7rem;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	margin: 0;
}
.flier-promo-sub {
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}
.flier-promo-cta {
	margin: 0.5rem 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}
.flier-promo-email {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   Hero de archivo / búsqueda
   ========================================================================= */
.page-hero {
	padding: 2.5rem 0 2rem;
	border-bottom: 2px solid rgb(var(--gray-light));
	margin-bottom: 2rem;
}
.eyebrow {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.5rem;
}
.page-hero h1 {
	font-size: 2.6rem;
	margin: 0 0 0.25rem;
	color: rgb(var(--black));
	word-break: break-word;
}
.page-hero p {
	margin: 0;
	color: rgb(var(--gray));
	font-size: 0.95rem;
}
.page-hero .author-card {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1rem;
}
.page-hero .author-card .avatar,
.page-hero .author-card img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}
.page-hero .author-bio {
	margin: 0.75rem 0 0;
	max-width: 60ch;
}

/* =========================================================================
   Single — artículo
   ========================================================================= */
.article {
	min-width: 0;
}
.article-hero {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--box-shadow);
	display: block;
	margin-bottom: 1.5rem;
}
.article-cat {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	margin-bottom: 0.6rem;
}
.article-cat:hover { text-decoration: underline; }
.article > h1,
.article-title {
	font-size: 2.4rem;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	color: rgb(var(--black));
}
.article-meta {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	color: rgb(var(--gray));
	font-size: 0.9rem;
	border-bottom: 1px solid rgb(var(--gray-light));
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
}
.article-meta .by {
	font-weight: 600;
	color: rgb(var(--gray-dark));
	text-decoration: none;
}
.article-meta .by:hover { color: var(--accent); }
.article-meta .dot-sep::before {
	content: '·';
	margin-right: 1rem;
	color: rgb(var(--gray-light));
}

/* Tipografía del cuerpo (contenido de Gutenberg) */
.article-content {
	color: rgb(var(--gray-dark));
	font-size: 1.05rem;
	line-height: 1.75;
}
.article-content > *:first-child { margin-top: 0; }
.article-content h2 {
	font-size: 1.6rem;
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
	color: rgb(var(--black));
}
.article-content h3 {
	font-size: 1.3rem;
	line-height: 1.3;
	margin: 1.6rem 0 0.6rem;
	color: rgb(var(--black));
}
.article-content h4 {
	font-size: 1.1rem;
	margin: 1.4rem 0 0.5rem;
}
.article-content p { margin: 0 0 1.1rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.1rem 1.5rem; }
.article-content li { margin: 0.3rem 0; }
.article-content a {
	color: var(--accent);
	text-decoration: underline;
}
.article-content blockquote {
	margin: 0 0 1.1rem;
	padding: 0.5rem 0 0.5rem 1.2rem;
	border-left: 3px solid var(--accent);
	color: rgb(var(--gray-dark));
	font-style: italic;
	font-size: 1em;
}
.article-content code {
	background: rgb(var(--gray-light));
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	font-size: 0.9em;
}
.article-content pre {
	background: rgb(var(--gray-light));
	padding: 1rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 0 0 1.1rem;
}
.article-content pre code {
	background: none;
	padding: 0;
}
.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.article-content figure { margin: 0 0 1.1rem; }
.article-content figcaption {
	font-size: 0.85rem;
	color: rgb(var(--gray));
	text-align: center;
	margin-top: 0.5rem;
}
.article-content hr {
	border: none;
	border-top: 1px solid rgb(var(--gray-light));
	margin: 1.5rem 0;
}

/* Pie del artículo: etiquetas + compartir */
.article-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(var(--gray-light));
}
.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.article-tags .tag {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgb(var(--gray-dark));
	background: rgba(var(--gray-light), 0.5);
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	text-decoration: none;
	transition: all 0.18s;
}
.article-tags .tag:hover {
	color: var(--accent);
	background: rgba(35, 55, 255, 0.08);
}

/* Caja de autor al pie del artículo */
.author-box {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: rgba(var(--gray-light), 0.3);
	border-radius: 12px;
}
.author-box img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.author-box .author-box-name {
	font-size: 1.1rem;
	margin: 0 0 0.25rem;
	color: rgb(var(--black));
}
.author-box .author-box-name a {
	color: inherit;
	text-decoration: none;
}
.author-box .author-box-name a:hover { color: var(--accent); }
.author-box p {
	margin: 0;
	font-size: 0.9rem;
	color: rgb(var(--gray-dark));
	line-height: 1.6;
}

/* Noticias relacionadas */
.related {
	margin-top: 3.5rem;
}

/* =========================================================================
   Paginación (estilo píldoras)
   ========================================================================= */
.pagination {
	margin-top: 2.5rem;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: 999px;
	border: 1.5px solid rgb(var(--gray-light));
	background: #fff;
	color: rgb(var(--gray-dark));
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.18s;
}
.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	cursor: default;
}
.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
@media (max-width: 560px) {
	.pagination .page-numbers:not(.prev):not(.next):not(.current) {
		display: none;
	}
}

/* =========================================================================
   404 / estados vacíos
   ========================================================================= */
.empty-state,
.empty-home {
	text-align: center;
	padding: 3rem 1rem;
	color: rgb(var(--gray));
	font-size: 1.05rem;
}
.not-found-page {
	text-align: center;
	padding: 5rem 1rem;
}
.not-found-page .error-code {
	font-size: 6rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin: 0 0 0.5rem;
}
.not-found-page h1 {
	font-size: 2rem;
	margin: 0 0 0.5rem;
	color: rgb(var(--black));
}
.not-found-page p {
	color: rgb(var(--gray));
	margin: 0 auto 1.5rem;
	max-width: 50ch;
}
.btn-back {
	display: inline-block;
	color: #fff;
	background: var(--accent);
	font-weight: 600;
	text-decoration: none;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	transition: background 0.2s;
}
.btn-back:hover {
	background: var(--accent-dark);
	color: #fff;
}
.not-found-page .search-form {
	margin: 2rem auto 0;
	max-width: 420px;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
	background: rgb(var(--gray-dark));
	color: rgb(var(--gray-light));
	margin-top: 4rem;
}
.footer-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 3rem 1.25rem 2.5rem;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
}
.footer-brand h2 {
	color: #fff;
	font-size: 1.4rem;
	margin: 0 0 0.75rem;
}
.footer-brand p {
	color: rgba(var(--gray-light), 0.7);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0 0 1.25rem;
	max-width: 32ch;
}
.footer-col h3 {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.footer-col a {
	color: rgba(var(--gray-light), 0.75);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.contact-list li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.9rem;
	color: rgba(var(--gray-light), 0.85);
	margin-bottom: 0.6rem;
}
.contact-list a {
	color: rgba(var(--gray-light), 0.85);
	text-decoration: none;
}
.contact-list a:hover { color: #fff; }
.contact-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(var(--gray-light), 0.5);
}
.footer-bottom {
	border-top: 1px solid rgba(var(--gray-light), 0.15);
}
.footer-bottom p {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 1.25rem;
	text-align: center;
	font-size: 0.82rem;
	color: rgba(var(--gray-light), 0.6);
}

/* =========================================================================
   Página "Nosotros"
   ========================================================================= */
.about-hero {
	text-align: center;
	padding: 3.5rem 1.25rem 2.75rem;
	background: linear-gradient(180deg, rgba(var(--gray-light), 0.55), #fff);
	border-bottom: 1px solid rgb(var(--gray-light));
}
.about-hero-inner {
	max-width: 820px;
	margin: 0 auto;
}
.about-logo {
	display: block;
	height: auto;
	max-height: 150px;
	max-width: min(85%, 520px);
	margin: 0 auto 1.5rem;
}
.about-hero .eyebrow {
	margin-bottom: 0.5rem;
}
.about-title {
	font-size: 2.6rem;
	line-height: 1.15;
	margin: 0.25rem 0 0;
	color: rgb(var(--black));
}
.about-lead {
	font-size: 1.2rem;
	line-height: 1.6;
	color: rgb(var(--gray));
	max-width: 60ch;
	margin: 1rem auto 0;
}

/* La descripción reutiliza la tipografía de artículo (.article-content) */
.about-body {
	max-width: 760px;
	margin: 0 auto;
	padding: 2.75rem 1.25rem 1rem;
}

/* Bloque de contacto */
.about-cta {
	max-width: 820px;
	margin: 2rem auto 4rem;
	padding: 2.75rem 2rem;
	background: rgba(var(--gray-light), 0.4);
	border-radius: 16px;
	text-align: center;
}
.about-cta h2 {
	font-size: 1.8rem;
	margin: 0 0 0.5rem;
	color: rgb(var(--black));
}
.about-cta-lead {
	color: rgb(var(--gray-dark));
	margin: 0 auto 1.75rem;
	max-width: 48ch;
}
.about-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2rem;
	margin-bottom: 1.75rem;
}
.about-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgb(var(--gray-dark));
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}
.about-contact-item svg {
	color: var(--accent);
	flex: 0 0 auto;
}
a.about-contact-item:hover {
	color: var(--accent);
}
.about-social {
	justify-content: center;
}

@media (max-width: 560px) {
	.about-hero {
		padding: 2.5rem 1.25rem 2rem;
	}
	.about-title {
		font-size: 2rem;
	}
	.about-cta {
		padding: 2rem 1.25rem;
	}
}

/* =========================================================================
   Página genérica (page.php)
   ========================================================================= */
.page-single {
	max-width: 780px;
	margin: 0 auto;
}
.page-single-header {
	margin-bottom: 2rem;
}
.page-single-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--box-shadow);
	display: block;
	margin-bottom: 1.5rem;
}
.page-single-title {
	font-size: 2.6rem;
	line-height: 1.15;
	color: rgb(var(--black));
	margin: 0 0 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid rgb(var(--gray-light));
}
@media (max-width: 560px) {
	.page-single-title {
		font-size: 2rem;
	}
}

/* =========================================================================
   WordPress: clases de utilidad y alineaciones de bloques
   ========================================================================= */
.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}
.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: 0.85rem;
	color: rgb(var(--gray));
	text-align: center;
	margin-top: 0.5rem;
}
.sticky,
.gallery-caption,
.bypostauthor { /* requeridas por el revisor de temas */ }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	/* El aside pasa debajo del contenido */
	.content-aside {
		grid-template-columns: 1fr;
	}
	.aside-banners {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.news-grid.cols-2 {
		grid-template-columns: repeat(3, 1fr);
	}
	/* El bloque dual se apila: el flier pasa debajo de sus secciones */
	.dual-section {
		grid-template-columns: 1fr;
	}
	.dual-section__col > .cat-section:first-child .section-header {
		margin-top: 2.5rem;
	}
	.portada-flier__ph {
		min-height: 300px;
	}
	.news-grid.cols-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.footer-inner {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	.footer-brand { grid-column: 1 / -1; }

	.news-grid.cols-4,
	.news-grid.cols-3,
	.news-grid.cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 720px) {
	body { font-size: 18px; }
	.header-nav {
		flex-wrap: wrap;
	}
	.header-nav .search-form {
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
		order: 3;
	}
	.header-logo .custom-logo,
	.header-logo-img {
		max-height: 120px;
	}
}
@media (max-width: 560px) {
	.news-grid.cols-4,
	.news-grid.cols-3,
	.news-grid.cols-2 {
		grid-template-columns: 1fr;
	}
	/* En una sola columna las tarjetas usan altura natural */
	.news-card {
		height: auto;
	}
	.card-image-link {
		flex-basis: 200px;
		height: 200px;
	}
	.page-hero h1 { font-size: 2rem; }
	.article > h1,
	.article-title { font-size: 1.8rem; }
}
@media (max-width: 520px) {
	.footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.topbar-social { display: none; }
	.topbar-date { font-size: 0.8rem; }
}
