/*
Theme Name: Radio Nueva Era
Theme URI: https://radionuevaera.cl
Author: Radio Nueva Era
Author URI: https://radionuevaera.cl
Description: Tema oficial de Radio Nueva Era — optimizado para noticias y Elementor. Hero de última noticia, archivo de noticias tipo calendario, y sistema visual basado en el Manual de Marca 2026: cuatro tintas planas, tipografía Archivo, fondo blanco dominante y fotografía de prensa en blanco y negro.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radio-nueva-era
Tags: news, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens de marca (Manual de Marca — sección 10, Diseño web)
   ========================================================================== */
:root {
	--rne-bg: #ffffff;
	--rne-text: #201e1d;
	--rne-rojo: #D9584A;
	--rne-amarillo: #E7B02E;
	--rne-verde: #8FB93E;
	--rne-azul: #7CB3D8;
	/* Tintas oscurecidas para texto sobre blanco (contraste AA) */
	--rne-rojo-700: #A63A2E;
	--rne-amarillo-700: #8A6510;
	--rne-verde-700: #57771F;
	--rne-azul-700: #2F678F;
	/* Neutros */
	--rne-gris-100: #F6F5F3;
	--rne-gris-300: #E5E3E0;
	--rne-gris-500: #9B9793;
	--rne-gris-700: #5E5A56;
	--rne-divider: #201e1d;
	--rne-font: 'Archivo', system-ui, -apple-system, sans-serif;
	--rne-radius: 0px;
	--rne-max: 1200px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--rne-bg);
	color: var(--rne-text);
	font-family: var(--rne-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--rne-azul-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rne-rojo-700); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rne-font);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

/* Accesibilidad: foco visible en acento, 2px (manual sección 10) */
:focus-visible {
	outline: 2px solid var(--rne-azul-700);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}

body.rne-no-scroll { overflow: hidden; }

/* ==========================================================================
   3. Utilidades de marca
   ========================================================================== */
.rne-container { max-width: var(--rne-max); margin: 0 auto; padding: 0 24px; }

.rne-section { padding: 64px 0; }

/* Kicker — etiqueta superior en mayúsculas */
.rne-kicker {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.rne-kicker--rojo    { color: var(--rne-rojo-700); }
.rne-kicker--amarillo{ color: var(--rne-amarillo-700); }
.rne-kicker--verde   { color: var(--rne-verde-700); }
.rne-kicker--azul    { color: var(--rne-azul-700); }

/* Separador de sección — regla de 2px (manual) */
.rne-divider {
	height: 2px;
	background: var(--rne-divider);
	border: none;
	margin: 24px 0;
}

/* Punto de frecuencia — marcador de sección */
.rne-dot {
	display: inline-block;
	width: 14px; height: 14px;
	border-radius: 50%;
	flex: none;
}
.rne-dot--rojo    { background: var(--rne-rojo); }
.rne-dot--amarillo{ background: var(--rne-amarillo); }
.rne-dot--verde   { background: var(--rne-verde); }
.rne-dot--azul    { background: var(--rne-azul); }

/* Tag de categoría — tinta plana, sin radio */
.rne-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	padding: 4px 10px;
	text-decoration: none;
	border-radius: var(--rne-radius);
}
a.rne-tag:hover { color: #fff; opacity: 0.85; }
.rne-tag--rojo    { background: var(--rne-rojo); }
.rne-tag--amarillo{ background: var(--rne-amarillo); }
.rne-tag--verde   { background: var(--rne-verde); }
.rne-tag--azul    { background: var(--rne-azul); }

/* Badge con borde — estilo "Al aire" */
.rne-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rne-rojo-700);
	border: 2px solid var(--rne-rojo);
	padding: 4px 10px;
	background: #fff;
}
.rne-badge::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--rne-rojo);
}

/* Botones */
.rne-btn,
.rne-btn-secondary {
	display: inline-block;
	font-family: var(--rne-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 26px;
	border-radius: var(--rne-radius);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rne-btn {
	background: var(--rne-text);
	color: #fff;
	border: 2px solid var(--rne-text);
}
.rne-btn:hover { background: var(--rne-rojo); border-color: var(--rne-rojo); color: #fff; }
.rne-btn-secondary {
	background: transparent;
	color: var(--rne-text);
	border: 2px solid var(--rne-text);
}
.rne-btn-secondary:hover { background: var(--rne-text); color: #fff; }

/* Fotografía de prensa en blanco y negro (manual: color reservado a UI) */
.rne-grayscale img { filter: grayscale(1); transition: filter 0.3s ease; }

/* Barras de ecualizador — elemento gráfico de marca */
.rne-bars {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 120px;
}
.rne-bars span {
	flex: none;
	width: 14px;
	border-radius: 7px;
}
.rne-bars--rojo     { background: var(--rne-rojo); }
.rne-bars--amarillo { background: var(--rne-amarillo); }
.rne-bars--verde    { background: var(--rne-verde); }
.rne-bars--azul     { background: var(--rne-azul); }

/* ==========================================================================
   4. Cabecera / navegación
   ========================================================================== */
.rne-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--rne-bg);
	border-bottom: 2px solid var(--rne-divider);
}
.rne-header__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 76px;
}
.rne-header__logo { flex: none; display: flex; align-items: center; }
.rne-header__logo img { height: 46px; width: auto; }
.rne-header__logo a { display: flex; }

.rne-nav ul {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rne-nav a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--rne-text);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.rne-nav li:nth-child(4n+1) > a:hover, .rne-nav li:nth-child(4n+1).current-menu-item > a { color: var(--rne-rojo-700);     border-bottom-color: var(--rne-rojo); }
.rne-nav li:nth-child(4n+2) > a:hover, .rne-nav li:nth-child(4n+2).current-menu-item > a { color: var(--rne-amarillo-700); border-bottom-color: var(--rne-amarillo); }
.rne-nav li:nth-child(4n+3) > a:hover, .rne-nav li:nth-child(4n+3).current-menu-item > a { color: var(--rne-verde-700);    border-bottom-color: var(--rne-verde); }
.rne-nav li:nth-child(4n+4) > a:hover, .rne-nav li:nth-child(4n+4).current-menu-item > a { color: var(--rne-azul-700);     border-bottom-color: var(--rne-azul); }

.rne-header__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.rne-search-toggle,
.rne-menu-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	color: var(--rne-text);
}
.rne-menu-toggle { display: none; flex-direction: column; gap: 4px; }
.rne-menu-toggle span { width: 24px; height: 3px; border-radius: 2px; display: block; }
.rne-menu-toggle span:nth-child(1) { background: var(--rne-rojo); }
.rne-menu-toggle span:nth-child(2) { background: var(--rne-verde); width: 18px; }
.rne-menu-toggle span:nth-child(3) { background: var(--rne-azul); }

/* Barra de búsqueda desplegable */
.rne-searchbar {
	display: none;
	border-top: 2px solid var(--rne-gris-300);
	padding: 20px 0;
}
.rne-searchbar.is-open { display: block; }

/* Panel móvil a pantalla completa (manual: ítems apilados) */
.rne-mobile-panel {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 300;
	background: var(--rne-bg);
	padding: 24px;
	overflow-y: auto;
}
.rne-mobile-panel.is-open { display: flex; flex-direction: column; }
.rne-mobile-panel__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.rne-mobile-panel__top img { height: 40px; width: auto; }
.rne-mobile-panel__close { background: none; border: 2px solid var(--rne-text); font-family: var(--rne-font); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.rne-mobile-panel nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rne-mobile-panel nav a {
	display: block;
	font-size: 28px;
	font-weight: 700;
	text-decoration: none;
	color: var(--rne-text);
	padding: 16px 0;
	border-bottom: 1px solid var(--rne-gris-300);
}
.rne-mobile-panel nav li:nth-child(4n+1) a:hover { color: var(--rne-rojo-700); }
.rne-mobile-panel nav li:nth-child(4n+2) a:hover { color: var(--rne-amarillo-700); }
.rne-mobile-panel nav li:nth-child(4n+3) a:hover { color: var(--rne-verde-700); }
.rne-mobile-panel nav li:nth-child(4n+4) a:hover { color: var(--rne-azul-700); }
.rne-mobile-panel .rne-bars { margin-top: auto; padding-top: 40px; height: 80px; }

/* ==========================================================================
   5. Hero — última noticia (ancho completo, imagen sangrada al borde)
   ========================================================================== */
.rne-hero {
	border-bottom: 2px solid var(--rne-divider);
	overflow: hidden;
	background: var(--rne-bg);
}
.rne-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: stretch;
}
.rne-hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 76px 64px 76px max(24px, calc((100vw - var(--rne-max)) / 2));
}
.rne-hero__title {
	font-size: clamp(34px, 3.9vw, 62px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.01em;
	margin: 20px 0 18px;
}
.rne-hero__title a { color: var(--rne-text); text-decoration: none; }
.rne-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--rne-rojo); }
.rne-hero__excerpt { font-size: 17px; line-height: 1.65; max-width: 54ch; margin: 0 0 22px; color: var(--rne-gris-700); }
.rne-hero__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rne-gris-700); margin-bottom: 26px; }
.rne-hero__meta .rne-dot { width: 8px; height: 8px; }
.rne-hero__actions { display: flex; align-items: flex-end; gap: 36px; flex-wrap: wrap; }
.rne-hero__actions .rne-bars { height: 46px; gap: 6px; }
.rne-hero__actions .rne-bars span { width: 8px; border-radius: 4px; }
.rne-hero__media {
	position: relative;
	min-height: 540px;
	border-left: 2px solid var(--rne-divider);
	background: var(--rne-gris-100);
}
.rne-hero__media > a { position: absolute; inset: 0; display: block; }
.rne-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.rne-hero__media:hover img { filter: grayscale(0); }
/* Franja de las 4 tintas al pie de la imagen */
.rne-hero__media::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 8px;
	background: linear-gradient(90deg,
		var(--rne-rojo) 0 25%,
		var(--rne-amarillo) 25% 50%,
		var(--rne-verde) 50% 75%,
		var(--rne-azul) 75% 100%);
}
/* Sin imagen destacada: barras centradas como motivo */
.rne-hero__nofoto {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   6. Tarjeta de noticia
   ========================================================================== */
.rne-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(3, 1fr);
}
.rne-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rne-grid--4 { grid-template-columns: repeat(4, 1fr); }

.rne-card {
	border: 2px solid var(--rne-gris-300);
	background: var(--rne-bg);
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.25s ease;
}
.rne-card:hover { transform: translateY(-4px); }
/* Al pasar el cursor, el borde toma la tinta de la categoría */
.rne-card--rojo:hover     { border-color: var(--rne-rojo); }
.rne-card--amarillo:hover { border-color: var(--rne-amarillo); }
.rne-card--verde:hover    { border-color: var(--rne-verde); }
.rne-card--azul:hover     { border-color: var(--rne-azul); }
.rne-card__media {
	position: relative;
	overflow: hidden;
	border-bottom: 2px solid var(--rne-gris-300);
}
.rne-card__media a { display: block; }
.rne-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.35s ease;
}
.rne-card:hover .rne-card__media img { transform: scale(1.05); filter: grayscale(0); }
.rne-card__media .rne-tag { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 6px 12px; }
.rne-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rne-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; }
.rne-card__title a {
	color: var(--rne-text);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease;
}
.rne-card:hover .rne-card__title a,
.rne-card__title a:focus-visible { background-size: 100% 2px; }
.rne-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--rne-gris-700); margin: 0; }
.rne-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rne-gris-700); margin-top: auto; }
.rne-card__meta .rne-dot { width: 7px; height: 7px; }

/* Lista compacta de noticias */
.rne-list { list-style: none; margin: 0; padding: 0; }
.rne-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rne-gris-300); align-items: baseline; }
.rne-list .rne-dot { width: 10px; height: 10px; position: relative; top: 1px; }
.rne-list__title { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0; }
.rne-list__title a { color: var(--rne-text); text-decoration: none; }
.rne-list__title a:hover { text-decoration: underline; }
.rne-list__date { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rne-gris-500); margin-top: 4px; }

/* Encabezado de sección */
.rne-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.rne-section-head__title { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 700; margin: 0; }
.rne-section-head__link { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--rne-text); border-bottom: 2px solid var(--rne-rojo); padding-bottom: 2px; }
.rne-section-head__link:hover { color: var(--rne-rojo-700); }
.rne-section-head + .rne-divider { margin-top: 0; }

/* ==========================================================================
   7. Archivo de noticias — calendario
   ========================================================================== */
.rne-cal { border: 2px solid var(--rne-divider); background: var(--rne-bg); }
.rne-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 24px;
	border-bottom: 2px solid var(--rne-divider);
	flex-wrap: wrap;
}
.rne-cal__label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.rne-cal__years { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rne-cal__nav {
	background: none;
	border: 2px solid var(--rne-text);
	width: 36px; height: 36px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	flex: none;
	display: flex; align-items: center; justify-content: center;
	color: var(--rne-text);
	transition: background 0.15s ease, color 0.15s ease;
}
.rne-cal__nav:hover:not(:disabled) { background: var(--rne-text); color: #fff; }
.rne-cal__nav:disabled { opacity: 0.25; cursor: default; }
.rne-cal__yearlist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.rne-cal__year {
	background: none;
	border: 2px solid transparent;
	font-family: var(--rne-font);
	font-size: 17px;
	font-weight: 700;
	color: var(--rne-gris-500);
	padding: 4px 12px;
	cursor: pointer;
	flex: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.rne-cal__year:hover { color: var(--rne-text); }
.rne-cal__year.is-active { color: var(--rne-text); border-color: var(--rne-text); }

.rne-cal__panel { display: none; }
.rne-cal__panel.is-active {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1px;
	background: var(--rne-gris-300);
}
.rne-cal__month {
	background: var(--rne-bg);
	padding: 18px 14px 14px;
	min-height: 86px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	color: var(--rne-text);
	position: relative;
	transition: background 0.15s ease, color 0.15s ease;
}
.rne-cal__month small { font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rne-gris-500); transition: color 0.15s ease; }
.rne-cal__month.is-empty { color: var(--rne-gris-300); cursor: default; }
.rne-cal__month.is-empty small { visibility: hidden; }
a.rne-cal__month::after {
	content: "";
	position: absolute;
	top: 12px; right: 12px;
	width: 10px; height: 10px;
	border-radius: 50%;
}
a.rne-cal__month.tint-rojo::after     { background: var(--rne-rojo); }
a.rne-cal__month.tint-amarillo::after { background: var(--rne-amarillo); }
a.rne-cal__month.tint-verde::after    { background: var(--rne-verde); }
a.rne-cal__month.tint-azul::after     { background: var(--rne-azul); }
a.rne-cal__month.tint-rojo:hover     { background: var(--rne-rojo); }
a.rne-cal__month.tint-amarillo:hover { background: var(--rne-amarillo); }
a.rne-cal__month.tint-verde:hover    { background: var(--rne-verde); }
a.rne-cal__month.tint-azul:hover     { background: var(--rne-azul); }
a.rne-cal__month:hover { color: #fff; }
a.rne-cal__month:hover small { color: rgba(255,255,255,0.85); }
a.rne-cal__month:hover::after { background: #fff; }
a.rne-cal__month.is-current { background: var(--rne-text); color: #fff; }
a.rne-cal__month.is-current small { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   8. Cabeceras de archivo / búsqueda
   ========================================================================== */
.rne-archive-head { padding: 56px 0 0; }
.rne-archive-head__title { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.05; margin: 0; }
.rne-archive-head__desc { max-width: 62ch; color: var(--rne-gris-700); font-size: 16px; margin: 14px 0 0; }
.rne-archive-head__count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rne-gris-700); margin-top: 14px; display: block; }
.rne-archive-head .rne-bars { height: 56px; margin-top: 28px; }
.rne-archive-head .rne-bars span { width: 10px; border-radius: 5px; }

/* Formulario de búsqueda */
.rne-searchform { display: flex; gap: 0; max-width: 640px; }
.rne-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	font-family: var(--rne-font);
	font-size: 16px;
	padding: 13px 16px;
	border: 2px solid var(--rne-divider);
	border-right: none;
	border-radius: var(--rne-radius);
	background: var(--rne-bg);
	color: var(--rne-text);
}
.rne-searchform input[type="search"]:focus { outline-offset: -2px; }
.rne-searchform button {
	font-family: var(--rne-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--rne-text);
	color: #fff;
	border: 2px solid var(--rne-text);
	padding: 0 24px;
	cursor: pointer;
}
.rne-searchform button:hover { background: var(--rne-rojo); border-color: var(--rne-rojo); }

/* Sin resultados */
.rne-noresults { padding: 24px 0 8px; max-width: 640px; }
.rne-noresults p { color: var(--rne-gris-700); }

/* ==========================================================================
   9. Artículo (single)
   ========================================================================== */
.rne-single { padding: 56px 0 64px; }
.rne-single__header { max-width: 820px; margin: 0 auto 32px; }
.rne-single__title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.08; margin: 16px 0 20px; }
.rne-single__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rne-gris-700); }
.rne-single__meta .rne-dot { width: 8px; height: 8px; }
.rne-single__media { max-width: 980px; margin: 0 auto 40px; }
.rne-single__media img { width: 100%; border: 2px solid var(--rne-divider); }
.rne-single__media figcaption { font-size: 12px; color: var(--rne-gris-700); padding-top: 10px; letter-spacing: 0.04em; }

.rne-entry { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.rne-entry > * + * { margin-top: 1.2em; }
.rne-entry h2 { font-size: 28px; margin-top: 1.6em; }
.rne-entry h3 { font-size: 22px; margin-top: 1.5em; }
.rne-entry blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--rne-rojo);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
}
.rne-entry blockquote cite { display: block; font-size: 13px; font-weight: 400; color: var(--rne-gris-700); margin-top: 8px; font-style: normal; }
.rne-entry img { border: 2px solid var(--rne-gris-300); }
.rne-entry ul li::marker { color: var(--rne-rojo); }
.rne-entry a { text-decoration: underline; }

.rne-single__tags { max-width: 720px; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }

.rne-postnav { max-width: 720px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 2px solid var(--rne-divider); padding-top: 24px; }
.rne-postnav a { text-decoration: none; color: var(--rne-text); }
.rne-postnav a:hover .rne-postnav__title { text-decoration: underline; }
.rne-postnav__dir { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rne-gris-500); margin-bottom: 6px; }
.rne-postnav__title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.rne-postnav > div:last-child { text-align: right; }

.rne-related { padding: 56px 0 72px; border-top: 2px solid var(--rne-divider); }

/* ==========================================================================
   10. Paginación
   ========================================================================== */
.rne-pagination { margin: 48px 0 0; }
.rne-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rne-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid var(--rne-gris-300);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	color: var(--rne-text);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.rne-pagination a.page-numbers:hover { border-color: var(--rne-text); }
.rne-pagination .page-numbers.current { background: var(--rne-text); border-color: var(--rne-text); color: #fff; }
.rne-pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   11. Pie de página
   ========================================================================== */
.rne-footer { margin-top: 64px; }
.rne-footer__stripe { display: flex; height: 8px; }
.rne-footer__stripe span { flex: 1; }
.rne-footer__stripe span:nth-child(1) { background: var(--rne-rojo); }
.rne-footer__stripe span:nth-child(2) { background: var(--rne-amarillo); }
.rne-footer__stripe span:nth-child(3) { background: var(--rne-verde); }
.rne-footer__stripe span:nth-child(4) { background: var(--rne-azul); }
.rne-footer__main { background: var(--rne-text); color: #fff; padding: 56px 0 40px; }
.rne-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.rne-footer__logo img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.rne-footer__tagline { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.75); margin-top: 18px; max-width: 36ch; }
.rne-footer__heading { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 16px; }
.rne-footer__main nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rne-footer__main a { color: #fff; text-decoration: none; font-size: 14px; }
.rne-footer__main a:hover { text-decoration: underline; color: #fff; }
.rne-footer__data { display: grid; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.85); }
.rne-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }

/* ==========================================================================
   12. 404
   ========================================================================== */
.rne-404 { padding: 96px 0; text-align: left; }
.rne-404__code { font-size: clamp(80px, 14vw, 160px); font-weight: 800; line-height: 1; margin: 0; }
.rne-404 .rne-bars { height: 72px; margin: 32px 0; }

/* ==========================================================================
   13. Integración con Elementor
   ========================================================================== */
/* Página construida con Elementor: sin contenedor del tema */
.rne-content--elementor { max-width: none; padding: 0; }

/* Que los widgets hereden la tipografía de marca */
.elementor-widget-container { font-family: var(--rne-font); }

/* Widgets del tema dentro del editor */
.elementor-editor-active .rne-cal__panel.is-active { display: grid; }

/* Contenido de página estándar */
.rne-page-content { padding: 56px 0 64px; }

/* Blindaje de marca: los colores globales del kit de Elementor
   no deben pisar los componentes del tema */
body .rne-hero__title a,
body .rne-card__title a,
body .rne-list__title a,
body .rne-postnav a,
body .rne-section-head__link,
body .rne-cal__year,
body a.rne-cal__month { color: var(--rne-text); }
body .rne-btn,
body .rne-btn:hover,
body .rne-btn:focus { color: #fff; }
body .rne-btn-secondary { color: var(--rne-text); }
body .rne-btn-secondary:hover { color: #fff; }
body a.rne-tag,
body a.rne-tag:hover { color: #fff; }
body a.rne-cal__month:hover,
body a.rne-cal__month.is-current { color: #fff; }
body .rne-hero__title,
body .rne-card__title,
body .rne-section-head__title,
body .rne-archive-head__title { font-family: var(--rne-font); }

/* ==========================================================================
   13b. Animaciones (respetan prefers-reduced-motion)
   ========================================================================== */
/* Aparición al hacer scroll — la clase la agrega JS de forma progresiva */
.rne-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--rne-reveal-delay, 0s);
	will-change: opacity, transform;
}
.rne-reveal.is-visible { opacity: 1; transform: none; }

/* Barras de ecualizador "al aire" */
.rne-bars--live span {
	transform-origin: bottom;
	animation: rne-eq 1.3s ease-in-out infinite alternate;
}
.rne-bars--live span:nth-child(2n) { animation-duration: 1.05s; }
.rne-bars--live span:nth-child(3n) { animation-duration: 1.6s; }
.rne-bars--live span:nth-child(5n) { animation-duration: 0.85s; }
.rne-bars--live span:nth-child(7n) { animation-delay: 0.3s; }
@keyframes rne-eq {
	to { transform: scaleY(0.42); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	html { scroll-behavior: auto; }
	.rne-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.rne-grid, .rne-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.rne-hero__grid { grid-template-columns: 1fr; }
	.rne-hero__media {
		order: -1;
		min-height: 340px;
		border-left: none;
		border-bottom: 2px solid var(--rne-divider);
	}
	.rne-hero__text { padding: 48px 24px 56px; }
	.rne-cal__panel.is-active { grid-template-columns: repeat(4, 1fr); }
	.rne-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
	.rne-nav { display: none; }
	.rne-menu-toggle { display: flex; }
	.rne-header__inner { min-height: 64px; }
	.rne-header__logo img { height: 38px; }
}

@media (max-width: 640px) {
	.rne-section { padding: 44px 0; }
	.rne-grid, .rne-grid--2, .rne-grid--4 { grid-template-columns: 1fr; }
	.rne-cal__panel.is-active { grid-template-columns: repeat(3, 1fr); }
	.rne-cal__head { padding: 16px; }
	.rne-postnav { grid-template-columns: 1fr; }
	.rne-postnav > div:last-child { text-align: left; }
	.rne-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.rne-bars { gap: 7px; }
	.rne-bars span { width: 10px; }
}
