/*
Theme Name: Nina Radio FM
Theme URI: https://ninaradiofm.com
Author: Nina Radio FM
Description: Tema para portal de noticias de radio. Layout 70/30 noticias/anuncios. Compatible con el editor de bloques de WordPress. Sin dependencias de Elementor.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: nina-radio
Tags: news, radio, dark, editorial, gutenberg
*/

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --rojo:       #cc1a1a;
  --rojo-dark:  #a01212;
  --rojo-light: #e63b2e;
  --negro:      #111111;
  --negro-soft: #1a1a1a;
  --gris-dark:  #242424;
  --gris-mid:   #3a3a3a;
  --gris:       #888888;
  --gris-light: #cccccc;
  --blanco:     #f5f5f5;
  --fondo:      #f0f0f0;
  --borde:      #e0e0e0;

  --font-titulo: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:   'Source Sans 3', 'Helvetica Neue', sans-serif;

  --radio:      3px;
  --radio-lg:   6px;
  --trans:      0.18s ease;

  --header-h:   88px;
  --nav-h:      44px;
  --sticky-h:   132px;
  --anuncio-w:  300px;
  --contenido:  1440px;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--fondo);
  color: #222;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rojo); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--rojo-dark); }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-titulo);
  line-height: 1.2;
  color: var(--negro);
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT CONTENEDOR
   ============================================================ */
.wrap {
  max-width: var(--contenido);
  margin: 0 auto;
  padding: 0 24px;
}

/* Layout principal 70/30 */
.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--anuncio-w);
  gap: 20px;
  padding: 20px 0;
  align-items: start;
}

.main-layout .content-area { min-width: 0; }
.main-layout .sidebar-area { min-width: 0; }

/* ============================================================
   BARRA SUPERIOR (fecha / redes)
   ============================================================ */
.topbar {
  background: var(--negro);
  color: var(--gris-light);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 2px solid var(--rojo);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__date { display: flex; align-items: center; gap: 10px; }
.topbar__time {
  background: var(--rojo);
  color: #fff;
  padding: 1px 7px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.topbar__socials { display: flex; gap: 4px; }
.topbar__socials a {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-dark);
  color: var(--blanco);
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  transition: background var(--trans);
}
.topbar__socials a:hover { background: var(--rojo); color: #fff; }

/* ============================================================
   CABECERA DEL SITIO
   ============================================================ */

/* Envuelve header + nav para que hagan sticky juntos */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header {
  background: var(--negro);
  padding: 10px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-branding__logo img {
  height: 52px;
  width: auto;
}

.site-branding__text { display: flex; flex-direction: column; }

.site-branding__name {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-branding__tagline {
  font-size: 11px;
  color: var(--gris);
  letter-spacing: 0.04em;
}

/* Banner/imagen de cabecera (lado derecho) */
.site-header__banner {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-header__banner img {
  max-height: 70px;
  max-width: 460px;
  object-fit: contain;
}

.site-header__banner-placeholder {
  height: 70px;
  max-width: 460px;
  width: 100%;
  background: var(--gris-dark);
  border: 1px dashed var(--gris-mid);
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gris);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   NAVEGACIÓN PRINCIPAL
   ============================================================ */
.main-nav {
  background: var(--rojo);
  position: relative;
  z-index: 190;
}

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul > li > a {
  display: block;
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  transition: background var(--trans);
}

.main-nav ul > li > a:hover,
.main-nav ul > li.current-menu-item > a,
.main-nav ul > li.current-menu-ancestor > a {
  background: var(--rojo-dark);
  color: #fff;
}

.main-nav ul > li:first-child > a {
  background: var(--rojo-dark);
  padding: 12px 14px;
}

/* Submenús */
.main-nav ul li { position: relative; }

.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--negro);
  min-width: 200px;
  z-index: 300;
  border-top: 2px solid var(--rojo);
  flex-direction: column;
}

.main-nav ul li:hover > ul { display: flex; }

.main-nav ul li ul li a {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--blanco);
  border-bottom: 1px solid var(--gris-dark);
  font-family: var(--font-titulo);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav ul li ul li a:hover { background: var(--rojo); color: #fff; }

/* Icono de inicio */
.main-nav__home-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo-dark);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

/* Búsqueda en el nav */
.main-nav__search-wrap {
  display: flex;
  align-items: center;
  padding: 0 10px;
  flex-shrink: 0;
}

.main-nav__search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav__search-input {
  height: 30px;
  width: 200px;
  padding: 0 30px 0 10px;
  border: none;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: width 0.2s ease;
}

.main-nav__search-input::placeholder { color: #999; }

.main-nav__search-input:focus { width: 240px; }

.main-nav__search-btn {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: color var(--trans);
}

.main-nav__search-btn:hover { color: var(--rojo); }

/* Menú móvil */
.nav-toggle {
  display: none;
  background: var(--rojo-dark);
  border: none;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 18px;
}

/* ============================================================
   TICKER DE NOTICIAS
   ============================================================ */
.news-ticker {
  background: var(--negro-soft);
  border-bottom: 1px solid var(--gris-dark);
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.news-ticker__label {
  background: var(--rojo);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.news-ticker__label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 10px solid var(--rojo);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.news-ticker__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.news-ticker__inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.news-ticker__inner:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--blanco);
  padding: 0 28px 0 16px;
}

.news-ticker__item a {
  color: var(--blanco);
  transition: color var(--trans);
}

.news-ticker__item a:hover { color: var(--rojo-light); }

.news-ticker__dot {
  width: 5px; height: 5px;
  background: var(--rojo);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TOP TAGS
   ============================================================ */
.top-tags {
  background: #fff;
  border-bottom: 1px solid var(--borde);
  padding: 7px 0;
}

.top-tags__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-tags__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gris);
  white-space: nowrap;
  flex-shrink: 0;
}

.top-tags__list {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-tags__list a {
  display: inline-block;
  font-size: 11px;
  color: var(--gris-dark);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--borde);
  background: var(--fondo);
  transition: all var(--trans);
  white-space: nowrap;
}

.top-tags__list a:hover {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

/* ============================================================
   HERO / PORTADA PRINCIPAL
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  margin-bottom: 20px;
}

/* Post destacado grande */
.hero-main {
  position: relative;
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--negro);
}

.hero-main__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-main__img { transform: scale(1.03); }

.hero-main__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88) 60%);
}

.hero-main__cat {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.hero-main__title {
  font-family: var(--font-titulo);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-main__title a { color: #fff; }
.hero-main__title a:hover { color: var(--rojo-light); }

.hero-main__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 10px;
}

/* Lista lateral del hero (Novedad / Popular / Tendencias) */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid var(--borde);
}

.hero-side__tabs {
  display: flex;
  border-bottom: 1px solid var(--borde);
}

.hero-side__tab {
  flex: 1;
  padding: 8px 4px;
  font-family: var(--font-titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gris);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font-titulo);
}

.hero-side__tab.active,
.hero-side__tab:hover {
  color: var(--rojo);
  border-bottom-color: var(--rojo);
}

.hero-side__list { flex: 1; overflow-y: auto; }

.side-post {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--borde);
  transition: background var(--trans);
}

.side-post:last-child { border-bottom: none; }
.side-post:hover { background: var(--fondo); }

.side-post__img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radio);
  background: var(--fondo);
  width: 80px;
}

.side-post__cat {
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rojo);
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.side-post__title {
  font-family: var(--font-titulo);
  font-size: 13px;
  color: var(--negro);
  line-height: 1.3;
}

.side-post__title a { color: inherit; }
.side-post__title a:hover { color: var(--rojo); }

/* ============================================================
   SECCIÓN DE NOTICIAS POR CATEGORÍA
   ============================================================ */
.category-section {
  margin-bottom: 28px;
}

.category-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--rojo);
}

.category-section__title {
  font-family: var(--font-titulo);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--negro);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--rojo);
  border-radius: 2px;
}

.category-section__more {
  font-size: 11px;
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rojo);
  border: 1px solid var(--rojo);
  padding: 3px 10px;
  border-radius: var(--radio);
  transition: all var(--trans);
}

.category-section__more:hover {
  background: var(--rojo);
  color: #fff;
}

/* Grid de noticias */
.news-grid {
  display: grid;
  gap: 12px;
}

.news-grid--3 { grid-template-columns: repeat(3, 1fr); }
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-grid--4 { grid-template-columns: repeat(4, 1fr); }
.news-grid--featured { grid-template-columns: 1.6fr 1fr 1fr; }

/* Tarjeta de noticia */
.news-card {
  background: #fff;
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid var(--borde);
  transition: box-shadow var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.news-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: var(--fondo);
}

.news-card:hover .news-card__img { transform: scale(1.04); }

.news-card__cat {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}

.news-card__body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.news-card__title {
  font-family: var(--font-titulo);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 6px;
}

.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--rojo); }

.news-card__meta {
  font-size: 11px;
  color: var(--gris);
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--borde);
}

/* Tarjeta horizontal (lista) */
.news-card--horizontal {
  flex-direction: row;
}

.news-card--horizontal .news-card__img-wrap {
  width: 110px;
  flex-shrink: 0;
}

.news-card--horizontal .news-card__img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

.news-card--horizontal .news-card__cat {
  position: static;
  display: inline-block;
  margin-bottom: 5px;
}

.news-card--horizontal .news-card__body { padding: 10px 12px; }

/* ============================================================
   SIDEBAR DE ANUNCIOS
   ============================================================ */
.sidebar-area {
  position: sticky;
  top: calc(var(--sticky-h) + 12px);
}

.ad-widget {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.ad-widget__label {
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  text-align: center;
}

.ad-widget__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fondo);
  color: var(--gris);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px dashed var(--borde);
  border-radius: var(--radio);
  margin: 8px;
  cursor: pointer;
  transition: border-color var(--trans);
}

.ad-widget__slot:hover { border-color: var(--gris-mid); }

.ad-widget__slot--300x250 { width: 284px; height: 250px; }
.ad-widget__slot--300x600 { width: 284px; height: 600px; }
.ad-widget__slot--300x100 { width: 284px; height: 100px; }

.ad-widget__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Widget genérico de sidebar */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-widget__title {
  background: var(--negro);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-left: 3px solid var(--rojo);
}

.sidebar-widget__body { padding: 10px 12px; }

/* Mini post en sidebar */
.mini-post {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--borde);
}

.mini-post:last-child { border-bottom: none; }

.mini-post__img {
  width: 70px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radio);
  background: var(--fondo);
  flex-shrink: 0;
}

.mini-post__title {
  font-family: var(--font-titulo);
  font-size: 12.5px;
  color: var(--negro);
  line-height: 1.3;
}

.mini-post__title a { color: inherit; }
.mini-post__title a:hover { color: var(--rojo); }

.mini-post__date { font-size: 10px; color: var(--gris); margin-top: 3px; }

/* ============================================================
   PÁGINA DE ARCHIVO DE CATEGORÍA
   ============================================================ */
.archive-header {
  background: var(--negro);
  padding: 16px 0;
  margin-bottom: 20px;
}

.archive-header__inner { display: flex; align-items: center; gap: 12px; }

.archive-header__bar {
  width: 4px;
  height: 32px;
  background: var(--rojo);
  border-radius: 2px;
}

.archive-header__title {
  font-family: var(--font-titulo);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.archive-header__count {
  font-size: 11px;
  color: var(--gris);
  margin-left: auto;
}

/* Lista de entradas en archivo */
.archive-list { display: flex; flex-direction: column; gap: 14px; }

.archive-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}

.archive-post:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.archive-post__img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  background: var(--fondo);
}

.archive-post__body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
}

.archive-post__title {
  font-family: var(--font-titulo);
  font-size: 16px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 6px;
}

.archive-post__title a { color: inherit; }
.archive-post__title a:hover { color: var(--rojo); }

.archive-post__excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-post__meta {
  font-size: 11px;
  color: var(--gris);
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--borde);
}

/* ============================================================
   ENTRADA INDIVIDUAL
   ============================================================ */
.single-article { background: #fff; border-radius: var(--radio-lg); overflow: hidden; }

.single-article__header { padding: 24px 24px 0; }

.single-article__cat {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.single-article__title {
  font-family: var(--font-titulo);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--negro);
  line-height: 1.2;
  margin-bottom: 12px;
}

.single-article__meta {
  font-size: 12px;
  color: var(--gris);
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--borde);
  flex-wrap: wrap;
}

.single-article__author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--negro);
}

.single-article__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fondo);
  overflow: hidden;
}

.single-article__featured {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  margin: 16px 0;
}

.single-article__content {
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
  margin: 1.8rem 0 0.8rem;
}

.single-article__content p { margin-bottom: 1.2rem; }

.single-article__content img { border-radius: var(--radio); margin: 1rem 0; }

.single-article__content blockquote {
  border-left: 4px solid var(--rojo);
  padding: 10px 16px;
  background: var(--fondo);
  border-radius: 0 var(--radio) var(--radio) 0;
  margin: 1.5rem 0;
  font-size: 1.05em;
  font-style: italic;
  color: #555;
}

/* Tags del post */
.post-tags {
  padding: 14px 24px;
  border-top: 1px solid var(--borde);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tags__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-tags a {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--borde);
  border-radius: 100px;
  color: #555;
  background: var(--fondo);
  transition: all var(--trans);
}

.post-tags a:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }

/* ============================================================
   ETIQUETAS DE CATEGORÍA (colores por sección)
   ============================================================ */
.cat-analisis      { background: #2563eb !important; }
.cat-local         { background: #16a34a !important; }
.cat-amazonica     { background: #0891b2 !important; }
.cat-nacional      { background: #7c3aed !important; }
.cat-internacional { background: #db2777 !important; }
.cat-turismo       { background: #d97706 !important; }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-family: var(--font-titulo);
  font-weight: 700;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--negro);
  transition: all var(--trans);
}

.pagination a:hover,
.pagination .current {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
.site-footer {
  background: var(--negro);
  color: var(--gris-light);
  padding: 36px 0 20px;
  margin-top: 36px;
  border-top: 3px solid var(--rojo);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand__name {
  font-family: var(--font-titulo);
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}

.footer-brand__desc {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 6px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-dark);
  color: var(--blanco);
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  transition: background var(--trans);
}

.footer-social a:hover { background: var(--rojo); color: #fff; }

.footer-col__title {
  font-family: var(--font-titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gris-dark);
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li { margin-bottom: 6px; }

.footer-col a {
  font-size: 13px;
  color: var(--gris);
  transition: color var(--trans);
}

.footer-col a:hover { color: var(--rojo-light); }

.footer-bottom {
  border-top: 1px solid var(--gris-dark);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gris);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   BLOQUES GUTENBERG DENTRO DEL EDITOR
   ============================================================ */
.entry-content .wp-block-image img { border-radius: var(--radio); }
.entry-content .wp-block-separator { border-color: var(--borde); }
.entry-content .wp-block-quote {
  border-left: 4px solid var(--rojo);
  background: var(--fondo);
  padding: 10px 16px;
  border-radius: 0 var(--radio) var(--radio) 0;
}

.entry-content .wp-block-buttons .wp-block-button__link {
  background: var(--rojo);
  color: #fff;
  border-radius: var(--radio);
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.entry-content .wp-block-table th {
  background: var(--negro);
  color: #fff;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--negro);
  transition: border-color var(--trans);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rojo);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root { --anuncio-w: 280px; }

  .hero-grid { grid-template-columns: 1fr 240px; }
  .news-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid--featured { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-area { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .news-grid--3,
  .news-grid--featured,
  .news-grid--4 { grid-template-columns: 1fr 1fr; }
  .archive-post { grid-template-columns: 130px 1fr; }
  .archive-post__img { width: 130px; height: 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .main-nav ul.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--rojo); z-index: 300; }
  .main-nav ul.open li a { border-bottom: 1px solid var(--rojo-dark); padding: 11px 16px; }
}

@media (max-width: 480px) {
  .news-grid--3,
  .news-grid--2,
  .news-grid--featured,
  .news-grid--4 { grid-template-columns: 1fr; }
  .archive-post { grid-template-columns: 1fr; }
  .archive-post__img { width: 100%; height: 160px; }
  .topbar__date { display: none; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   WIDGET FLOTANTE — REPRODUCTOR
   ============================================================ */
#nina-player-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 360px;
  width: calc(100vw - 40px);
  background: var(--negro);
  border-radius: var(--radio-lg);
  border: 1px solid var(--gris-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  overflow: hidden;
}

#nina-player-toggle {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--gris);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  z-index: 2;
  transition: color var(--trans);
}

#nina-player-toggle:hover { color: var(--blanco); }

#nina-player-flotante.minimized {
  width: auto;
  max-width: none;
  border-radius: 50%;
  bottom: 20px;
  right: 20px;
  overflow: visible;
}

@media (max-width: 480px) {
  #nina-player-flotante {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    border-radius: var(--radio-lg) var(--radio-lg) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  #nina-player-toggle {
    top: 8px;
    right: 12px;
  }
}

/* ============================================================
   PLANTILLA 3 COLUMNAS (25% — 50% — 25%)
   ============================================================ */
.layout-3col {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px 0;
  align-items: start;
}

.layout-3col__left,
.layout-3col__right {
  position: sticky;
  top: calc(var(--sticky-h) + 12px);
}

.layout-3col__center {
  min-width: 0;
}

.page-article .post-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.page-article .post-content h2,
.page-article .post-content h3,
.page-article .post-content h4 {
  margin: 1.8rem 0 0.8rem;
}

.page-article .post-content p { margin-bottom: 1.2rem; }

.page-article .post-content img {
  border-radius: var(--radio);
  margin: 1rem 0;
}

@media (max-width: 1024px) {
  .layout-3col {
    grid-template-columns: 200px 1fr 200px;
  }
}

@media (max-width: 768px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }
  .layout-3col__left  { display: none; }
  .layout-3col__right { position: static; }
  .layout-3col__right { order: 3; }
}

/* ============================================================
   PLANTILLA EVENTOS
   ============================================================ */

/* Cabecera centrada */
.eventos-header {
  background: #fff;
  border-bottom: 1px solid var(--borde);
  padding: 2.5rem 0 0;
  margin-bottom: 0;
  text-align: center;
}

.eventos-header__title {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--negro);
  margin-bottom: 0.5rem;
}

.eventos-header__line {
  width: 40px;
  height: 4px;
  background: var(--rojo);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Filtros de categoría */
.eventos-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 1.5rem;
}

.eventos-filter-btn {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--borde);
  background: #fff;
  color: var(--negro);
  font-family: var(--font-titulo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--trans);
  white-space: nowrap;
}

.eventos-filter-btn:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.eventos-filter-btn.active {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

/* Wrapper general */
.eventos-wrap {
  padding: 2rem 0 3rem;
}

/* Post destacado */
.evento-featured {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--borde);
}

.evento-featured__text { min-width: 0; }

.evento-cat-badge {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.evento-cat-badge--img {
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin-bottom: 0;
}

.evento-featured__title {
  font-family: var(--font-titulo);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--negro);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.evento-featured__title a { color: inherit; }
.evento-featured__title a:hover { color: var(--rojo); }

.evento-featured__excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.evento-featured__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.evento-featured__img {
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.evento-featured__photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.evento-featured:hover .evento-featured__photo { transform: scale(1.02); }

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

.evento-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
}

.evento-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.evento-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.evento-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.evento-card:hover .evento-card__img { transform: scale(1.04); }

.evento-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.evento-card__title {
  font-family: var(--font-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.evento-card__title a { color: inherit; }
.evento-card__title a:hover { color: var(--rojo); }

.evento-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
}

.evento-card__meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--gris);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.75rem;
  border-top: 1px solid var(--borde);
}

/* Responsive */
@media (max-width: 900px) {
  .evento-featured { grid-template-columns: 1fr; }
  .evento-featured__img { order: -1; }
  .eventos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .eventos-grid { grid-template-columns: 1fr; }
  .eventos-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1rem; }
}
