
:root {
  --verde: #006400;
  --rojo: #d32f2f;
  --negro: #000;
  --gris-claro: #f9f9f9;
  --gris-oscuro: #333;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--gris-oscuro);
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
header {
  background: var(--rojo);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-decoration: none;
}

.site-title {
  font-size: 1.3rem;
  font-weight: bold;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* MAIN */
main {
  padding: 2rem 0;
}

h1 { color: var(--rojo); margin-bottom: 1rem; }
h2 { margin-bottom: 0.5rem; }
h2 a { color: var(--negro); text-decoration: none; }
h2 a:hover { color: var(--rojo); }

.descripcion {
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ARTICULOS */
.articulo-resumen {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}

.articulo-resumen:last-child { border-bottom: none; }

.meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  font-family: Arial, sans-serif;
}

.leer-mas {
  color: var(--rojo);
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* ARTICULO COMPLETO */
.articulo-completo {
  max-width: 750px;
  margin: 0 auto;
}

.contenido {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.contenido p { margin-bottom: 1rem; }

.tipo-editorial {
  background: var(--rojo);
  color: white;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
}

.tipo-opinion {
  background: #666;
  color: white;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
}

.aviso-opinion {
  background: var(--gris-claro);
  border-left: 4px solid #666;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #666;
}

/* FOOTER */
footer {
  background: var(--negro);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
  font-family: Arial, sans-serif;
}

footer p { margin-bottom: 0.5rem; }
footer a { color: var(--rojo); }

/* RESPONSIVE */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; }
  .site-title { font-size: 1rem; }
  .main-nav { justify-content: center; }
}


/* ============================================
   HEADER DEL PERIÓDICO - Diseño profesional
   ============================================ */

.site-header {
  background: radial-gradient(circle at top, rgba(76,175,80,0.15), transparent 40%),
              linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--rojo, #C62828);
  position: relative;
}

.header-top {
  max-width: 900px;
  margin: 0 auto;
}

.logo-msr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.estrella-roja {
  width: 70px;
  height: 70px;
  background-color: var(--rojo, #C62828);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 24px rgba(198,40,40,0.5);
}

.msr-letters {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.msr-letters span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--rojo-claro, #E53935);
  background: rgba(255,255,255,0.08);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}

.site-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #F5F5F5;
  margin: 0.5rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}

.site-subtitle {
  font-size: 0.95rem;
  color: var(--verde-claro, #4CAF50);
  font-style: italic;
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
}

.site-date {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   NAVEGACIÓN - Barra sticky oscura
   ============================================ */

.main-nav {
  background: rgba(20,20,20,0.98);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
}

.nav-container a {
  color: #F5F5F5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-container a:hover {
  background: var(--rojo, #C62828);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .site-title { font-size: 1.3rem; letter-spacing: 0.08em; }
  .estrella-roja { width: 50px; height: 50px; }
  .site-subtitle { font-size: 0.8rem; }
  .site-date { font-size: 0.75rem; }
  .nav-container a { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}


/* Boton WEB (enlace a la web institucional) */
.btn-web {
  background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
  border: none !important;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(46,125,50,0.4);
  transition: all 0.2s;
}
.btn-web:hover {
  background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46,125,50,0.6);
}
