
/* Reset y Variables */
:root {
	--primary-color: #0f172a; /* Azul oscuro corporativo */
	--accent-color: #e11d48; /* Rojo vibrante para acentos */
	--bg-color: #f8fafc;
	--card-bg: #ffffff;
	--text-main: #334155;
	--text-header: #1e293b;
	--border-color: #e2e8f0;
	--font-main: 'Inter', system-ui, -apple-system, sans-serif;
	--font-serif: 'Playfair Display', serif; /* Para titulares grandes */
	--container-width: 1100px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

* { box-sizing: border-box; }

body {
	font-family: var(--font-main);
	background-color: var(--bg-color);
	margin: 0;
	padding: 0;
	color: var(--text-main);
	line-height: 1.7;
	font-size: 16px;
}

/* Header Moderno */
header {
	background-color: #7fdccf;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-sitio {
	font-family: var(--font-serif);
	font-size: 28px;
	margin: 0;
	color: var(--primary-color);
	font-weight: 700;
	letter-spacing: -0.5px;
	text-decoration: none;
}

.slogan-sitio {
	display: none; /* Oculto en móvil/tablet para limpieza */
}

/* Navegación */
nav.menu-principal {
	display: flex;
	gap: 25px;
}

nav.menu-principal a {
	color: var(--text-header);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s;
	position: relative;
}

nav.menu-principal a:hover {
	color: var(--accent-color);
}

nav.menu-principal a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--accent-color);
	transition: width 0.3s;
}

nav.menu-principal a:hover::after {
	width: 100%;
}

/* Contenedores */
.contenedor-principal {
	max-width: var(--container-width);
	margin: 40px auto;
	padding: 0 20px;
	min-height: 80vh;
}

/* Grid de Noticias (Masonry-like) */
.contenedor-grid-fichas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
	padding-bottom: 40px;
}

/* Tarjetas de Noticias */
.ficha-noticia {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.ficha-noticia:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-color: var(--accent-color);
}

.ficha-noticia .meta-datos {
	font-size: 11px;
	font-weight: 600;
	color: var(--accent-color);
	text-transform: uppercase;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.ficha-noticia h2 {
	font-family: var(--font-serif);
	font-size: 22px;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

.ficha-noticia h2 a {
	color: var(--text-header);
	text-decoration: none;
	background-image: linear-gradient(to right, var(--text-header), var(--text-header));
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: background-size 0.3s;
}

.ficha-noticia h2 a:hover {
	background-size: 100% 2px;
}

.ficha-noticia .resumen-texto {
	font-size: 15px;
	color: #64748b;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Artículo Completo */
.articulo-completo {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	max-width: 900px; /* Ancho de lectura óptimo */
	margin: 0 auto;
}

.articulo-completo h1 {
	font-family: var(--font-serif);
	font-size: 48px;
	line-height: 1.1;
	color: var(--text-header);
	margin-bottom: 15px;
	letter-spacing: -1px;
}

.meta-articulo {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
	font-size: 14px;
	color: #64748b;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
}

.etiqueta-categoria {
	background-color: var(--accent-color);
	color: white;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.bajada {
	font-size: 20px;
	line-height: 1.5;
	color: #475569;
	font-weight: 400;
	margin-bottom: 40px;
	border-left: 4px solid var(--accent-color);
	padding-left: 20px;
	font-style: italic;
}

.cuerpo-articulo {
	font-size: 18px;
	color: var(--text-main);
}

.cuerpo-articulo h2 {
	font-family: var(--font-serif);
	font-size: 28px;
	margin-top: 40px;
	margin-bottom: 20px;
	color: var(--text-header);
}

.cuerpo-articulo p {
	margin-bottom: 24px;
}

.cuerpo-articulo a {
	color: var(--accent-color);
	text-decoration: none;
	border-bottom: 1px solid rgba(225, 29, 72, 0.3);
	transition: border-color 0.2s;
}

.cuerpo-articulo a:hover {
	border-bottom-color: var(--accent-color);
}

/* Footer */
footer {
	background-color: var(--primary-color);
	color: #94a3b8;
	text-align: center;
	padding: 60px 0;
	margin-top: 80px;
	font-size: 14px;
}

footer p { margin: 10px 0; }

/* Página de Error y Títulos de Sección */
.encabezado-seccion {
	margin-bottom: 40px;
	text-align: center;
}

.encabezado-seccion h2 {
	font-family: var(--font-serif);
	font-size: 36px;
	color: var(--text-header);
	margin-bottom: 10px;
}

.separador {
	width: 60px;
	height: 4px;
	background-color: var(--accent-color);
	margin: 0 auto;
	border-radius: 2px;
}

/* Media Queries */
@media (max-width: 768px) {
	.header-inner { flex-direction: column; gap: 15px; }

	.articulo-completo h1 { font-size: 32px; }

	.contenedor-grid-fichas { grid-template-columns: 1fr; }

	.articulo-completo { padding: 25px; }
}
