/*
Theme Name: CoronelLotaInfo Next
Theme URI: https://coronellotainfo.cl
Author: coronellotainfo
Author URI: https://coronellotainfo.cl
Description: Tema de noticias futurista para Coronel Lota Info: estética digital oscura con neón, partículas interactivas, tarjetas 3D con tilt, glassmorphism, animaciones al scroll, ticker de último minuto, reloj en vivo y barra de lectura. Diseñado para el medio coronellotainfo.cl y la Región del Biobío.
Version: 1.0.3
Requires at least: 5.8
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: clinext
Tags: news, blog, one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* =====================================================================
   1. TOKENS Y BASE
   ===================================================================== */
:root {
	--nx-bg: #04060d;
	--nx-bg2: #090e1d;
	--nx-panel: rgba(13, 20, 42, 0.72);
	--nx-panel-solid: #0d152a;
	--nx-line: rgba(122, 162, 255, 0.16);
	--nx-cyan: #00e5ff;
	--nx-blue: #2979ff;
	--nx-violet: #a855f7;
	--nx-hot: #ff2d55;
	--nx-hot2: #ff7a3d;
	--nx-text: #eaf2ff;
	--nx-muted: #8fa3c8;
	--nx-grad: linear-gradient(135deg, var(--nx-cyan), var(--nx-blue) 50%, var(--nx-violet));
	--nx-grad-hot: linear-gradient(135deg, var(--nx-hot), var(--nx-hot2));
	--nx-radius: 18px;
	--nx-font-head: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
	--nx-font-body: "Inter", "Segoe UI", -apple-system, Roboto, Ubuntu, sans-serif;
	--nx-shadow: 0 30px 80px -30px rgba(0, 120, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background:
		radial-gradient(1100px 500px at 85% -5%, rgba(41, 121, 255, 0.14), transparent 60%),
		radial-gradient(900px 480px at -10% 30%, rgba(168, 85, 247, 0.10), transparent 60%),
		var(--nx-bg);
	color: var(--nx-text);
	font-family: var(--nx-font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--nx-cyan); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #fff; }

::selection { background: var(--nx-cyan); color: #031018; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #060a16; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--nx-cyan), var(--nx-violet));
	border-radius: 8px;
	border: 3px solid #060a16;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nx-font-head);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.12;
	color: #fff;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 4vw; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* =====================================================================
   2. PRELOADER
   ===================================================================== */
.nx-preloader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--nx-bg);
	display: grid;
	place-items: center;
	transition: opacity 0.55s ease, visibility 0.55s ease;
	/* Red de seguridad: aunque JavaScript falle, desaparece solo a los 4 s. */
	animation: nx-pre-auto 0.6s ease 4s forwards;
}
@keyframes nx-pre-auto {
	to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.nx-preloader.nx-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.nx-preloader__logo {
	font-family: var(--nx-font-head);
	font-size: clamp(28px, 5vw, 52px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: var(--nx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: nx-flicker 1.1s ease infinite alternate;
}
.nx-preloader__bar {
	margin-top: 18px;
	width: 180px;
	height: 3px;
	border-radius: 3px;
	background: rgba(122, 162, 255, 0.15);
	overflow: hidden;
}
.nx-preloader__bar i {
	display: block;
	height: 100%;
	width: 40%;
	border-radius: 3px;
	background: var(--nx-grad);
	animation: nx-loading 0.9s ease-in-out infinite;
}
@keyframes nx-flicker { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes nx-loading { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* =====================================================================
   3. CURSOR LUMINOSO (solo escritorio)
   ===================================================================== */
.nx-cursor {
	position: fixed;
	z-index: 99990;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(0, 229, 255, 0.10), rgba(41, 121, 255, 0.05) 40%, transparent 65%);
	transform: translate(-50%, -50%);
	mix-blend-mode: screen;
}
@media (pointer: coarse) { .nx-cursor { display: none; } }

/* =====================================================================
   4. TOPBAR
   ===================================================================== */
.nx-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 4vw;
	font-size: 12.5px;
	background: linear-gradient(90deg, #05070f, #0b1330 55%, #140b2e);
	border-bottom: 1px solid var(--nx-line);
	color: var(--nx-muted);
}
.nx-topbar strong { color: #fff; font-weight: 600; }
.nx-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	letter-spacing: 0.14em;
	font-size: 11px;
	color: #fff;
	background: var(--nx-grad-hot);
	padding: 4px 12px;
	border-radius: 999px;
	text-transform: uppercase;
}
.nx-live i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: nx-pulse 1.1s ease-in-out infinite;
}
@keyframes nx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.7); } }
.nx-clock {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--nx-cyan);
	letter-spacing: 0.08em;
}

/* =====================================================================
   5. HEADER + NAVEGACIÓN
   ===================================================================== */
.nx-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	background: rgba(5, 8, 18, 0.78);
	backdrop-filter: blur(18px) saturate(1.6);
	-webkit-backdrop-filter: blur(18px) saturate(1.6);
	border-bottom: 1px solid var(--nx-line);
	transition: box-shadow 0.35s ease, background 0.35s ease;
}
.nx-header.nx-scrolled {
	background: rgba(4, 6, 13, 0.92);
	box-shadow: 0 18px 50px -25px rgba(0, 120, 255, 0.45);
}
.nx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 4vw;
}
.nx-logo { display: flex; align-items: center; gap: 14px; }
.nx-logo img { max-height: 52px; width: auto; }
.nx-logo__text {
	font-family: var(--nx-font-head);
	font-size: clamp(21px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--nx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 34px rgba(0, 200, 255, 0.25);
	white-space: nowrap;
}
.nx-logo__text small {
	display: block;
	font-family: var(--nx-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.34em;
	color: var(--nx-muted);
	-webkit-text-fill-color: var(--nx-muted);
	margin-top: 5px;
}
.nx-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nx-nav a {
	position: relative;
	font-family: var(--nx-font-head);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c9d8f5;
	padding: 10px 14px;
	border-radius: 10px;
	transition: all 0.25s ease;
}
.nx-nav a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 5px;
	height: 2px;
	border-radius: 2px;
	background: var(--nx-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.nx-nav a:hover { color: #fff; text-shadow: 0 0 18px rgba(0, 220, 255, 0.65); }
.nx-nav a:hover::after { transform: scaleX(1); }
.nx-actions { display: flex; align-items: center; gap: 10px; }
.nx-search-btn {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: rgba(122, 162, 255, 0.06);
	color: var(--nx-text);
	font-size: 17px;
	cursor: pointer;
	transition: all 0.25s ease;
}
.nx-search-btn:hover {
	border-color: var(--nx-cyan);
	box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
	transform: translateY(-2px);
}

/* Menú móvil */
.nx-burger { display: none; }
@media (max-width: 900px) {
	.nx-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		background: rgba(5, 8, 18, 0.97);
		border-bottom: 1px solid var(--nx-line);
		padding: 12px 5vw 18px;
	}
	.nx-nav.nx-open { display: flex; }
	.nx-burger { display: grid; }
}

/* Overlay de búsqueda */
.nx-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9500;
	background: rgba(3, 5, 12, 0.82);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	display: grid;
	place-items: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.35s ease;
}
.nx-search-overlay.nx-open { opacity: 1; visibility: visible; }
.nx-search-overlay form { width: min(680px, 86vw); position: relative; }
.nx-search-overlay input {
	width: 100%;
	font-family: var(--nx-font-head);
	font-size: clamp(20px, 3.4vw, 34px);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--nx-line);
	padding: 14px 4px;
	outline: none;
	transition: border-color 0.3s ease;
}
.nx-search-overlay input:focus { border-color: var(--nx-cyan); }
.nx-search-overlay input::placeholder { color: rgba(143, 163, 200, 0.55); }
.nx-search-close {
	position: absolute;
	top: 24px; right: 24px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid var(--nx-line);
	background: transparent;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.25s ease;
}
.nx-search-close:hover { border-color: var(--nx-hot); transform: rotate(90deg); }

/* =====================================================================
   6. TICKER ÚLTIMO MINUTO
   ===================================================================== */
.nx-ticker {
	display: flex;
	align-items: stretch;
	background: #070b16;
	border-bottom: 1px solid var(--nx-line);
	font-size: 13.5px;
	line-height: 1.4;
}
.nx-ticker__label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--nx-grad-hot);
	color: #fff;
	font-family: var(--nx-font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.nx-ticker__label i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: nx-pulse 1s ease-in-out infinite;
}
.nx-ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.nx-ticker__move {
	display: inline-flex;
	white-space: nowrap;
	/* Duración calibrada por JS según el ancho real del texto (≈55 px/s).
	   El valor de respaldo es lento a propósito para que siempre sea legible. */
	animation: nx-marquee var(--nx-ticker-dur, 70s) linear infinite;
	will-change: transform;
}
.nx-ticker__move span { padding-right: 4rem; color: #d7e4ff; font-weight: 500; }
.nx-ticker:hover .nx-ticker__move { animation-play-state: paused; }
@keyframes nx-marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   7. HERO
   ===================================================================== */
.nx-hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-bottom: 1px solid var(--nx-line);
}
#nx-particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.nx-hero__watermark {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	display: flex;
	white-space: nowrap;
	font-family: var(--nx-font-head);
	font-size: clamp(90px, 16vw, 210px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(122, 162, 255, 0.13);
	animation: nx-marquee 95s linear infinite;
	pointer-events: none;
	user-select: none;
}
.nx-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 5vw;
	align-items: center;
	width: 100%;
	padding-top: 60px;
	padding-bottom: 60px;
}
.nx-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--nx-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nx-cyan);
	border: 1px solid rgba(0, 229, 255, 0.35);
	background: rgba(0, 229, 255, 0.07);
	padding: 8px 16px;
	border-radius: 999px;
	margin-bottom: 22px;
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.14) inset;
}
.nx-hero__title {
	font-size: clamp(30px, 4.6vw, 62px);
	font-weight: 700;
	margin-bottom: 20px;
	background: linear-gradient(120deg, #ffffff, #bfe3ff 40%, #d9c8ff 75%, #ffffff);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: nx-grad-move 7s ease infinite alternate;
	text-shadow: none;
}
@keyframes nx-grad-move { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.nx-hero__excerpt {
	color: var(--nx-muted);
	font-size: clamp(15px, 1.4vw, 17.5px);
	max-width: 54ch;
	margin-bottom: 26px;
}
.nx-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 12.5px;
	color: var(--nx-muted);
	margin-bottom: 30px;
}
.nx-hero__meta b { color: var(--nx-cyan); font-weight: 600; }

.nx-hero__visual { position: relative; min-height: 380px; }
.nx-float {
	position: absolute;
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: 16px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding: 18px 22px;
	box-shadow: 0 24px 60px -28px rgba(0, 120, 255, 0.5);
	animation: nx-float 7s ease-in-out infinite alternate;
	will-change: transform;
}
.nx-float b {
	display: block;
	font-family: var(--nx-font-head);
	font-size: 26px;
	background: var(--nx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nx-float span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nx-muted); }
.nx-float--1 { top: 6%; right: 8%; }
.nx-float--2 { bottom: 20%; left: 0; animation-delay: -2.4s; }
.nx-float--3 { bottom: 2%; right: 16%; animation-delay: -4.8s; }
@keyframes nx-float { from { transform: translateY(-10px); } to { transform: translateY(14px); } }

/* Marcos HUD */
.nx-hud { position: relative; }
.nx-hud::before, .nx-hud::after {
	content: "";
	position: absolute;
	width: 30px; height: 30px;
	border: 2px solid var(--nx-cyan);
	opacity: 0.6;
	pointer-events: none;
}
.nx-hud::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.nx-hud::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* =====================================================================
   8. BOTONES Y CHIPS
   ===================================================================== */
.nx-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	font-family: var(--nx-font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--nx-grad);
	padding: 14px 30px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 16px 40px -14px rgba(0, 140, 255, 0.65);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nx-btn::after {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 50%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
}
.nx-btn:hover { transform: translateY(-3px) scale(1.02); color: #fff; box-shadow: 0 22px 55px -14px rgba(0, 160, 255, 0.8); }
.nx-btn:hover::after { left: 130%; }
.nx-btn--ghost {
	background: transparent;
	border: 1px solid rgba(0, 229, 255, 0.4);
	box-shadow: none;
	color: var(--nx-cyan);
}
.nx-btn--ghost:hover { background: rgba(0, 229, 255, 0.08); box-shadow: 0 0 30px rgba(0, 229, 255, 0.25); }

.nx-chip {
	display: inline-block;
	font-family: var(--nx-font-head);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	background: var(--nx-grad);
	padding: 5px 12px;
	border-radius: 999px;
}
.nx-chip--hot { background: var(--nx-grad-hot); }
.nx-chip--violet { background: linear-gradient(135deg, #7c3aed, #c084fc); }

/* =====================================================================
   9. SECCIONES (encabezados HUD numerados)
   ===================================================================== */
.nx-section { padding: 64px 0 10px; }
.nx-sec-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 30px;
}
.nx-sec-head__num {
	font-family: var(--nx-font-head);
	font-size: 15px;
	font-weight: 700;
	color: var(--nx-cyan);
	border: 1px solid rgba(0, 229, 255, 0.35);
	border-radius: 10px;
	padding: 7px 12px;
	box-shadow: 0 0 18px rgba(0, 229, 255, 0.15);
}
.nx-sec-head h2 {
	font-size: clamp(21px, 2.6vw, 30px);
	letter-spacing: 0.05em;
}
.nx-sec-head__bar {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--nx-cyan), var(--nx-violet), transparent);
	opacity: 0.6;
}
.nx-sec-head__link {
	font-family: var(--nx-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nx-muted);
	white-space: nowrap;
	transition: all 0.25s ease;
}
.nx-sec-head__link:hover { color: var(--nx-cyan); letter-spacing: 0.2em; }

/* =====================================================================
   10. TARJETAS DE NOTICIAS (3D + glass + HUD)
   ===================================================================== */
.nx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}
.nx-card {
	position: relative;
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius);
	overflow: hidden;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transform-style: preserve-3d;
	transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.35s ease;
	will-change: transform;
}
.nx-card:hover {
	border-color: rgba(0, 229, 255, 0.45);
	box-shadow: 0 34px 70px -30px rgba(0, 140, 255, 0.55);
	z-index: 5;
}
.nx-card::before, .nx-card::after {
	content: "";
	position: absolute;
	width: 26px; height: 26px;
	border: 2px solid var(--nx-cyan);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 4;
}
.nx-card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.nx-card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.nx-card:hover::before, .nx-card:hover::after { opacity: 0.9; }

.nx-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a1122;
}
.nx-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.nx-card:hover .nx-card__thumb img { transform: scale(1.08); filter: saturate(1.2); }
.nx-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 16, 0.85));
	pointer-events: none;
}
.nx-card__chip { position: absolute; top: 12px; left: 12px; z-index: 3; }
.nx-card__time {
	position: absolute;
	right: 12px; bottom: 12px;
	z-index: 3;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: rgba(4, 8, 18, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid rgba(122, 162, 255, 0.25);
}
.nx-card__body { padding: 20px 22px 24px; }
.nx-card__title {
	font-size: 18px;
	letter-spacing: 0.01em;
	line-height: 1.25;
	margin-bottom: 10px;
	transition: all 0.25s ease;
}
.nx-card:hover .nx-card__title {
	background: linear-gradient(90deg, #fff, #9fd8ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nx-card__excerpt {
	font-size: 13.5px;
	color: var(--nx-muted);
	line-height: 1.6;
}
.nx-card__meta {
	display: flex;
	gap: 14px;
	margin-top: 14px;
	font-size: 11.5px;
	color: rgba(143, 163, 200, 0.8);
}
.nx-card__meta b { color: var(--nx-cyan); font-weight: 600; }

/* Brillo que sigue al mouse */
.nx-shine {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	background: radial-gradient(430px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.14), transparent 45%);
}
.nx-card:hover .nx-shine { opacity: 1; }

/* Tarjeta grande del hero-grid */
.nx-grid-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.nx-grid-featured .nx-card--big .nx-card__thumb { aspect-ratio: 16 / 8.4; }
.nx-grid-featured .nx-card--big .nx-card__title { font-size: clamp(21px, 2.3vw, 28px); }
.nx-grid-side { display: grid; gap: 16px; align-content: start; }
@media (max-width: 980px) {
	.nx-hero__inner { grid-template-columns: 1fr; }
	.nx-hero__visual { min-height: 300px; }
	.nx-grid-featured { grid-template-columns: 1fr; }
}

/* Filas horizontales */
.nx-row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 18px;
	align-items: center;
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: 14px;
	overflow: hidden;
	padding: 12px;
	transition: all 0.3s ease;
}
.nx-row:hover {
	border-color: rgba(0, 229, 255, 0.4);
	transform: translateX(8px);
	box-shadow: -14px 0 34px -20px rgba(0, 200, 255, 0.4);
}
.nx-row__thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.nx-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nx-row:hover .nx-row__thumb img { transform: scale(1.1); }
.nx-row__title { font-size: 15.5px; line-height: 1.3; margin: 6px 0; }
.nx-row__meta { font-size: 11.5px; color: var(--nx-muted); }
.nx-rows { display: grid; gap: 14px; }

/* =====================================================================
   11. BANDA DE ESTADÍSTICAS
   ===================================================================== */
.nx-stats {
	position: relative;
	overflow: hidden;
	margin: 70px 0 0;
	padding: 52px 4vw;
	border-top: 1px solid var(--nx-line);
	border-bottom: 1px solid var(--nx-line);
	background:
		radial-gradient(700px 300px at 15% 0%, rgba(0, 229, 255, 0.10), transparent 55%),
		radial-gradient(700px 300px at 85% 100%, rgba(168, 85, 247, 0.12), transparent 55%),
		#070b17;
}
.nx-stats__grid {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 34px;
	text-align: center;
}
.nx-stat b {
	display: block;
	font-family: var(--nx-font-head);
	font-size: clamp(34px, 4.4vw, 52px);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	background: var(--nx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 40px rgba(0, 180, 255, 0.25);
}
.nx-stat span {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nx-muted);
}

/* =====================================================================
   12. NEWSLETTER (marco de neón giratorio)
   ===================================================================== */
.nx-newsletter { position: relative; margin: 80px auto 0; max-width: 860px; border-radius: 24px; padding: 1.5px; overflow: hidden; }
.nx-newsletter::before {
	content: "";
	position: absolute;
	inset: -60%;
	background: conic-gradient(from 0deg, transparent 0deg, var(--nx-cyan) 60deg, transparent 120deg, var(--nx-violet) 220deg, transparent 300deg);
	animation: nx-spin 5s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(1turn); } }
.nx-newsletter__inner {
	position: relative;
	border-radius: 23px;
	background: linear-gradient(160deg, #0a1124, #0d0a24);
	padding: 46px 5vw;
	text-align: center;
}
.nx-newsletter h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.nx-newsletter p { color: var(--nx-muted); margin-bottom: 26px; }
.nx-newsletter form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nx-newsletter input {
	flex: 1;
	min-width: 220px;
	background: rgba(4, 8, 18, 0.7);
	border: 1px solid var(--nx-line);
	border-radius: 999px;
	color: #fff;
	padding: 14px 22px;
	font-size: 14.5px;
	outline: none;
	transition: all 0.3s ease;
}
.nx-newsletter input:focus { border-color: var(--nx-cyan); box-shadow: 0 0 26px rgba(0, 229, 255, 0.25); }

/* =====================================================================
   13. SLOTS DE PUBLICIDAD
   ===================================================================== */
.nx-ad {
	display: grid;
	place-items: center;
	min-height: 110px;
	border: 1px dashed rgba(122, 162, 255, 0.28);
	border-radius: 14px;
	color: rgba(143, 163, 200, 0.6);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin: 34px 0;
}
.nx-ad > * { margin: 0; }

/* =====================================================================
   14. ARTÍCULO INDIVIDUAL
   ===================================================================== */
.nx-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0%;
	z-index: 9800;
	background: var(--nx-grad);
	box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
	transition: width 0.08s linear;
}
.nx-single { max-width: 820px; margin: 50px auto 0; }
.nx-single__panel {
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: 24px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: clamp(24px, 4.5vw, 54px);
}
.nx-single__cats { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.nx-single h1 {
	font-size: clamp(26px, 3.6vw, 44px);
	line-height: 1.14;
	margin-bottom: 18px;
}
.nx-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--nx-muted);
	padding-bottom: 22px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--nx-line);
}
.nx-single__meta b { color: var(--nx-cyan); font-weight: 600; }
.nx-single__image {
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: 30px;
	border: 1px solid var(--nx-line);
	box-shadow: var(--nx-shadow);
}
.nx-content { font-size: 17px; line-height: 1.8; color: #dbe6fb; }
.nx-content p { margin-bottom: 1.3em; }
.nx-content h2, .nx-content h3 { margin: 1.6em 0 0.6em; font-size: 24px; }
.nx-content h2::after {
	content: "";
	display: block;
	width: 60px; height: 3px;
	margin-top: 10px;
	border-radius: 3px;
	background: var(--nx-grad);
}
.nx-content a { border-bottom: 1px dotted rgba(0, 229, 255, 0.6); }
.nx-content blockquote {
	margin: 1.6em 0;
	padding: 18px 26px;
	border-left: 3px solid;
	border-image: linear-gradient(180deg, var(--nx-cyan), var(--nx-violet)) 1;
	background: rgba(0, 229, 255, 0.05);
	font-style: italic;
}
.nx-content img { border-radius: 14px; margin: 1.4em 0; }
.nx-content ul, .nx-content ol { margin: 0 0 1.3em 1.4em; }
.nx-content li { margin-bottom: 0.5em; }

.nx-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--nx-line); }
.nx-share a {
	font-family: var(--nx-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #cfe0ff;
	border: 1px solid var(--nx-line);
	border-radius: 999px;
	padding: 10px 18px;
	transition: all 0.25s ease;
}
.nx-share a:hover {
	border-color: var(--nx-cyan);
	color: #fff;
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.3);
	transform: translateY(-2px);
}
.nx-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 40px;
}
.nx-pager a {
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: 16px;
	padding: 20px 22px;
	color: var(--nx-muted);
	font-size: 13.5px;
	line-height: 1.45;
	transition: all 0.3s ease;
}
.nx-pager a:hover { border-color: rgba(0, 229, 255, 0.4); color: #fff; transform: translateY(-3px); }
.nx-pager b {
	display: block;
	font-family: var(--nx-font-head);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nx-cyan);
	margin-bottom: 8px;
}
@media (max-width: 640px) { .nx-pager { grid-template-columns: 1fr; } }

/* Comentarios */
.nx-comments { margin-top: 44px; }
.nx-comments .comment-list { list-style: none; }
.nx-comments .comment-body {
	background: var(--nx-panel);
	border: 1px solid var(--nx-line);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 14px;
}
.nx-comments .comment-meta { font-size: 12px; color: var(--nx-muted); margin-bottom: 8px; }
.nx-comment-form label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); margin: 14px 0 6px; }
.nx-comment-form input, .nx-comment-form textarea {
	width: 100%;
	background: rgba(4, 8, 18, 0.7);
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	color: #fff;
	padding: 13px 16px;
	font-size: 14.5px;
	outline: none;
	transition: border-color 0.3s ease;
}
.nx-comment-form input:focus, .nx-comment-form textarea:focus { border-color: var(--nx-cyan); }
.nx-comment-form .submit {
	background: var(--nx-grad);
	border: 0;
	color: #fff;
	font-family: var(--nx-font-head);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 14px 30px;
	border-radius: 999px;
	cursor: pointer;
	margin-top: 18px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nx-comment-form .submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(0, 140, 255, 0.7); }

/* =====================================================================
   15. ARCHIVOS / BÚSQUEDA / 404
   ===================================================================== */
.nx-archive-head { padding: 60px 0 8px; }
.nx-archive-head .nx-kicker {
	font-family: var(--nx-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--nx-cyan);
	margin-bottom: 10px;
}
.nx-archive-head h1 { font-size: clamp(28px, 4vw, 46px); }
.nx-archive-head p { color: var(--nx-muted); margin-top: 12px; max-width: 65ch; }
.nx-404 {
	min-height: 60vh;
	display: grid;
	place-items: center;
	text-align: center;
}
.nx-404 b {
	font-family: var(--nx-font-head);
	font-size: clamp(90px, 18vw, 200px);
	line-height: 1;
	background: var(--nx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: nx-flicker 1.4s ease infinite alternate;
}
.nx-pagination { margin: 46px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nx-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	color: #cfe0ff;
	font-weight: 700;
	transition: all 0.25s ease;
}
.nx-pagination .page-numbers.current,
.nx-pagination .page-numbers:hover {
	background: var(--nx-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 0 26px rgba(0, 140, 255, 0.45);
}

/* =====================================================================
   16. FOOTER
   ===================================================================== */
.nx-footer {
	position: relative;
	margin-top: 90px;
	border-top: 1px solid var(--nx-line);
	background: linear-gradient(180deg, #05070f, #080616);
	overflow: hidden;
}
.nx-footer__watermark {
	font-family: var(--nx-font-head);
	font-size: clamp(60px, 11vw, 150px);
	font-weight: 700;
	white-space: nowrap;
	text-align: center;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(122, 162, 255, 0.12);
	line-height: 1;
	padding-top: 34px;
	user-select: none;
}
.nx-footer__grid {
	max-width: 1240px;
	margin: 0 auto;
	padding: 44px 4vw 30px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}
.nx-footer h4 {
	font-size: 13px;
	letter-spacing: 0.24em;
	color: var(--nx-cyan);
	margin-bottom: 16px;
}
.nx-footer p { color: var(--nx-muted); font-size: 14px; }
.nx-footer ul { list-style: none; }
.nx-footer li { margin-bottom: 10px; }
.nx-footer li a { color: var(--nx-muted); font-size: 14px; transition: all 0.25s ease; }
.nx-footer li a:hover { color: #fff; padding-left: 6px; }
.nx-social { display: flex; gap: 12px; margin-top: 20px; }
.nx-social a {
	width: 44px; height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	font-size: 17px;
	color: #cfe0ff;
	transition: all 0.25s ease;
}
.nx-social a:hover {
	border-color: var(--nx-cyan);
	color: #fff;
	box-shadow: 0 0 26px rgba(0, 229, 255, 0.4);
	transform: translateY(-4px);
}
.nx-footer__legal {
	border-top: 1px solid var(--nx-line);
	padding: 20px 4vw;
	text-align: center;
	font-size: 12px;
	color: rgba(143, 163, 200, 0.7);
}
@media (max-width: 860px) { .nx-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* =====================================================================
   17. VOLVER ARRIBA + REVEAL + UTILIDADES
   ===================================================================== */
.nx-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: var(--nx-panel-solid);
	color: #fff;
	display: grid;
	place-items: center;
	z-index: 9600;
	box-shadow: 0 14px 40px -12px rgba(0, 140, 255, 0.6);
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px);
	transition: all 0.3s ease;
}
.nx-top.nx-show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nx-top:hover { transform: translateY(-3px) scale(1.06); }
.nx-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-top__ring { stroke: var(--nx-cyan); stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; }
.nx-top__ringbg { stroke: rgba(122, 162, 255, 0.2); }
.nx-top__arrow { font-weight: 800; background: var(--nx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.rv {
	transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: var(--rv-delay, 0ms);
}
/* El contenido solo se oculta si JavaScript está funcionando (html.nx-js). */
.nx-js .rv {
	opacity: 0;
	transform: translateY(28px) scale(0.985);
}
.nx-js .rv.in { opacity: 1; transform: none; }
html.no-anim .rv { opacity: 1 !important; transform: none !important; transition: none !important; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption-text, .wp-element-caption { font-size: 12.5px; color: var(--nx-muted); text-align: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
	.rv { opacity: 1 !important; transform: none !important; }
}
 auto; }
	*, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
	.rv { opacity: 1 !important; transform: none !important; }
}
