/* =========================================================
   OJO CIUDADANO NL — Assets CSS
   Paleta: #0D0F0D · #1E3A2E · #2C5443 · #39FF6E · #EDEDE8
========================================================= */

/* ---------------------------------------------------------
   VARIABLES
--------------------------------------------------------- */
:root {
	--negro:        #0D0F0D;
	--verde-oscuro: #1E3A2E;
	--verde-medio:  #2C5443;
	--verde-neon:   #39FF6E;
	--blanco:       #EDEDE8;
	--fuente-titulo: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
	--fuente-cuerpo: 'Barlow', Arial, sans-serif;
	--glow-neon: 0 0 8px rgba(57,255,110,.55), 0 0 24px rgba(57,255,110,.22);
	--glow-sutil: 0 0 6px rgba(57,255,110,.30);
	--radio: 4px;
	--max-ancho: 1200px;
}

/* ---------------------------------------------------------
   RESET / BASE
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
	background-color: var(--negro);
	color: var(--blanco);
	font-family: var(--fuente-cuerpo);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--verde-neon); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { text-shadow: var(--glow-sutil); }

h1, h2, h3, h4, h5 {
	font-family: var(--fuente-titulo);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1.1;
	color: var(--blanco);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   UTILIDADES
--------------------------------------------------------- */
.seccion-titulo {
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--verde-neon);
	text-shadow: var(--glow-sutil);
	margin-bottom: .5rem;
}

.seccion-linea {
	height: 2px;
	background: linear-gradient(90deg, var(--verde-neon) 0%, transparent 100%);
	margin-bottom: 2rem;
	max-width: 200px;
}

.sin-resultados { color: var(--blanco); opacity: .6; padding: 3rem 0; }

/* ---------------------------------------------------------
   ETIQUETAS / BADGES DE CATEGORÍA
--------------------------------------------------------- */
.etiqueta {
	display: inline-block;
	padding: .25rem .75rem;
	font-family: var(--fuente-titulo);
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-radius: var(--radio);
	line-height: 1.4;
}

.etiqueta-verde-neon {
	background: var(--verde-neon);
	color: var(--negro);
	box-shadow: var(--glow-neon);
}
.etiqueta-verde-medio {
	background: var(--verde-medio);
	color: var(--blanco);
}
.etiqueta-blanco {
	background: var(--blanco);
	color: var(--negro);
}
.etiqueta-verde-oscuro {
	background: var(--verde-oscuro);
	color: var(--blanco);
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(13,15,13,.97);
	border-bottom: 1px solid var(--verde-oscuro);
	backdrop-filter: blur(6px);
}

.site-header__inner {
	max-width: var(--max-ancho);
	margin: 0 auto;
	padding: .75rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Logo */
.site-logo img,
.site-logo a img { height: 60px; width: auto; }

.site-name-link .site-name {
	font-family: var(--fuente-titulo);
	font-size: 1.6rem;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--verde-neon);
	text-shadow: var(--glow-neon);
	letter-spacing: .04em;
}

/* Nav */
.site-nav { margin-left: auto; }

.nav-menu {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

.nav-menu a {
	font-family: var(--fuente-titulo);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--blanco);
	padding: .25rem 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--verde-neon);
	border-color: var(--verde-neon);
	text-shadow: var(--glow-sutil);
}

/* Hamburger */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: .5rem;
	margin-left: auto;
}
.nav-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--verde-neon);
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}

/* Trazo serpenteante */
.trazo-serpentino {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	opacity: .7;
}
.trazo-serpentino svg { width: 100%; height: 18px; }
.trazo-serpentino--footer { transform: scaleY(-1); }

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
	background: var(--verde-oscuro);
	border-top: 1px solid var(--verde-medio);
	margin-top: 4rem;
}

.site-footer__inner {
	max-width: var(--max-ancho);
	margin: 0 auto;
	padding: 3rem 1.25rem 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
}

.footer-branding img { height: 56px; width: auto; margin-bottom: .5rem; }
.footer-site-name {
	font-family: var(--fuente-titulo);
	font-size: 1.4rem;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--verde-neon);
	text-shadow: var(--glow-sutil);
}
.footer-tagline { font-size: .88rem; color: var(--blanco); opacity: .65; margin-top: .35rem; }

.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a {
	font-family: var(--fuente-titulo);
	font-size: .9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--blanco);
}
.footer-nav a:hover { color: var(--verde-neon); }

/* Disclaimer */
.footer-disclaimer {
	grid-column: 1 / -1;
	background: rgba(13,15,13,.5);
	border-left: 3px solid var(--verde-neon);
	padding: 1rem 1.25rem;
	border-radius: var(--radio);
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}
.footer-disclaimer__ojo { flex-shrink: 0; margin-top: .15rem; }
.footer-disclaimer p {
	font-size: .83rem;
	line-height: 1.55;
	color: var(--blanco);
	opacity: .82;
	margin: 0;
}
.footer-disclaimer strong { color: var(--verde-neon); font-weight: 700; }
.footer-disclaimer em { font-style: italic; }

.footer-copy {
	grid-column: 1 / -1;
	border-top: 1px solid var(--verde-medio);
	padding-top: 1.25rem;
	text-align: center;
	font-size: .8rem;
	color: var(--blanco);
	opacity: .5;
}

/* ---------------------------------------------------------
   HERO (front-page)
--------------------------------------------------------- */
.hero-bajo-lupa {
	position: relative;
	min-height: clamp(360px, 60vh, 620px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-bottom: 3rem;
}

.hero-imagen {
	position: absolute;
	inset: 0;
}
.hero-imagen__img { width: 100%; height: 100%; object-fit: cover; }
.hero-imagen__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(13,15,13,.15) 0%,
		rgba(13,15,13,.65) 60%,
		rgba(13,15,13,.95) 100%
	);
}

.hero-contenido {
	position: relative;
	z-index: 2;
	max-width: var(--max-ancho);
	margin: 0 auto;
	padding: 2.5rem 1.25rem;
	width: 100%;
}

.hero-etiqueta { margin-bottom: 1rem; }
.etiqueta__ojo { font-size: .75em; margin-right: .3em; }

.hero-titulo {
	font-size: clamp(2rem, 5vw, 3.5rem);
	color: var(--blanco);
	text-shadow: 0 2px 24px rgba(0,0,0,.8);
	margin-bottom: .75rem;
	max-width: 780px;
}
.hero-titulo a { color: inherit; }
.hero-titulo a:hover { color: var(--verde-neon); text-shadow: var(--glow-neon); }

.hero-excerpt {
	font-size: 1.05rem;
	color: var(--blanco);
	opacity: .85;
	max-width: 620px;
	margin-bottom: 1.25rem;
}

.btn-leer-mas {
	display: inline-block;
	background: var(--verde-neon);
	color: var(--negro);
	font-family: var(--fuente-titulo);
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: .55rem 1.25rem;
	border-radius: var(--radio);
	transition: box-shadow .2s, background .2s;
}
.btn-leer-mas:hover {
	background: #5fffa0;
	box-shadow: var(--glow-neon);
	text-shadow: none;
}

/* ---------------------------------------------------------
   GRID DE NOTAS
--------------------------------------------------------- */
.notas-recientes {
	max-width: var(--max-ancho);
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
}

.notas-recientes__header { margin-bottom: 1.5rem; }

.notas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}
.notas-grid--tres { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------------------------------------------------------
   NOTA CARD
--------------------------------------------------------- */
.nota-card {
	background: var(--verde-oscuro);
	border-radius: calc(var(--radio) * 2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s, box-shadow .25s;
	border: 1px solid transparent;
}
.nota-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(57,255,110,.12), 0 2px 8px rgba(0,0,0,.4);
	border-color: rgba(57,255,110,.25);
}

.nota-card__enlace { display: block; }

.nota-card__imagen-wrap {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--negro);
}
.nota-card__imagen {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.nota-card:hover .nota-card__imagen { transform: scale(1.04); }

.nota-card__sin-imagen {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--negro);
	opacity: .4;
}

.nota-card__badge {
	position: absolute;
	bottom: .6rem;
	left: .6rem;
	font-size: .72rem;
	padding: .2rem .6rem;
}

.nota-card__body {
	padding: 1rem 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.nota-card__titulo {
	font-size: 1.1rem;
	font-weight: 900;
	margin-bottom: .5rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nota-card__titulo a { color: var(--blanco); }
.nota-card__titulo a:hover { color: var(--verde-neon); text-shadow: var(--glow-sutil); }

.nota-card__excerpt {
	font-size: .88rem;
	opacity: .72;
	flex-grow: 1;
	margin-bottom: .75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nota-card__meta { margin-top: auto; }
.nota-card__fecha { font-size: .78rem; opacity: .55; }

/* ---------------------------------------------------------
   NOTA INDIVIDUAL (single.php)
--------------------------------------------------------- */
.nota-single { padding: 2rem 1.25rem 4rem; }
.nota-single__inner { max-width: 780px; margin: 0 auto; }

.nota-header { margin-bottom: 1.5rem; }

.nota-titulo {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: .75rem 0 .6rem;
	color: var(--blanco);
}

.nota-meta { font-size: .85rem; opacity: .6; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.nota-meta__sep { opacity: .4; }

.nota-imagen-principal { margin: 1.5rem 0; border-radius: calc(var(--radio)*2); overflow: hidden; }
.nota-imagen-principal__img { width: 100%; }
.nota-imagen-principal__caption { font-size: .8rem; opacity: .55; padding: .5rem .25rem 0; }

.nota-contenido {
	font-size: 1.05rem;
	line-height: 1.75;
}
.nota-contenido h2 { font-size: 1.5rem; margin: 1.75rem 0 .75rem; color: var(--verde-neon); }
.nota-contenido h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.nota-contenido p { margin-bottom: 1.15rem; }
.nota-contenido img { border-radius: var(--radio); margin: 1rem 0; }
.nota-contenido blockquote {
	border-left: 3px solid var(--verde-neon);
	padding: .5rem 1rem;
	margin: 1.5rem 0;
	background: rgba(57,255,110,.05);
	font-style: italic;
}
.nota-contenido a { color: var(--verde-neon); text-decoration: underline; }

.nota-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--verde-oscuro); }

.nota-tags { font-size: .85rem; opacity: .65; margin-bottom: 1rem; }
.nota-tags__label { font-weight: 700; margin-right: .4rem; }

.nota-compartir { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-compartir {
	font-family: var(--fuente-titulo);
	font-size: .82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: .4rem .9rem;
	border-radius: var(--radio);
	transition: box-shadow .2s;
}
.btn-compartir--x { background: #111; color: var(--blanco); border: 1px solid #444; }
.btn-compartir--x:hover { border-color: var(--verde-neon); color: var(--verde-neon); }
.btn-compartir--fb { background: #1877f2; color: #fff; }
.btn-compartir--fb:hover { box-shadow: 0 0 12px rgba(24,119,242,.5); }

/* Aviso opinión dentro de nota */
.aviso-opinion {
	margin: 2rem 0;
	padding: .85rem 1.1rem;
	border-left: 3px solid var(--verde-neon);
	background: rgba(57,255,110,.06);
	border-radius: var(--radio);
	font-size: .83rem;
	line-height: 1.55;
	opacity: .8;
}
.aviso-opinion strong { color: var(--verde-neon); }

/* Notas relacionadas */
.notas-relacionadas { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--verde-oscuro); }
.notas-relacionadas .seccion-titulo { font-size: 1.3rem; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------
   ARCHIVE / ÍNDICE
--------------------------------------------------------- */
.archivo { padding: 2rem 1.25rem 4rem; }
.archivo__inner, .indice__inner { max-width: var(--max-ancho); margin: 0 auto; }

.archivo-header { margin-bottom: 2.5rem; }
.archivo-header .etiqueta { font-size: 1.1rem; padding: .4rem 1.1rem; margin-bottom: .75rem; }
.archivo-descripcion { font-size: .95rem; opacity: .7; max-width: 600px; }

.indice { padding: 2rem 1.25rem 4rem; }
.indice-header { margin-bottom: 2rem; }

/* ---------------------------------------------------------
   PÁGINAS ESTÁTICAS
--------------------------------------------------------- */
.pagina-estatica { padding: 3rem 1.25rem 4rem; }
.pagina-estatica__inner { max-width: 760px; margin: 0 auto; }
.pagina-titulo { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 2rem; color: var(--verde-neon); }
.pagina-contenido { font-size: 1.02rem; line-height: 1.75; }
.pagina-contenido h2 { font-size: 1.4rem; margin: 1.75rem 0 .6rem; color: var(--verde-neon); }
.pagina-contenido a { color: var(--verde-neon); text-decoration: underline; }

/* ---------------------------------------------------------
   PAGINACIÓN
--------------------------------------------------------- */
.paginacion { margin-top: 2.5rem; display: flex; justify-content: center; }
.paginacion .page-numbers {
	display: inline-flex;
	gap: .5rem;
	list-style: none;
}
.page-numbers a,
.page-numbers span {
	font-family: var(--fuente-titulo);
	font-size: .9rem;
	font-weight: 700;
	padding: .4rem .8rem;
	border: 1px solid var(--verde-medio);
	border-radius: var(--radio);
	color: var(--blanco);
	transition: background .2s, color .2s, border-color .2s;
}
.page-numbers a:hover { background: var(--verde-neon); color: var(--negro); border-color: var(--verde-neon); text-shadow: none; }
.page-numbers .current { background: var(--verde-neon); color: var(--negro); border-color: var(--verde-neon); }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,15,13,.98); padding: 1rem 1.25rem; border-bottom: 1px solid var(--verde-oscuro); }
	.site-nav.is-open { display: block; }
	.nav-menu { flex-direction: column; gap: .75rem; }
	.nav-toggle { display: flex; }

	.site-footer__inner { grid-template-columns: 1fr; }
	.footer-disclaimer { flex-direction: column; }

	.notas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.hero-bajo-lupa { min-height: 300px; }
	.nota-single__inner { padding: 0; }
}
