/* ==========================================
   SEXTO PODER BOLIVIA 2026 - STYLE MASTER
   ✓ Alineación Hero-Sidebar Perfecta (Final)
   ✓ Caricatura Reducida
   ✓ Tipografía: Inter + Space Grotesk
   ✓ Logo Mejorado y Notorio
   ✓ Espacios Generosos (Respiración)
   ✓ Paleta: Azul + Gris (Sin multicolor)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* 🎨 PALETA MINIMALISTA 2026 */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #151e32;
  --bg-hover: #1e293b;
  --bg-glass: rgba(10, 14, 26, 0.92);
  
  /* Color Principal - Azul Eléctrico */
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --primary-muted: rgba(59, 130, 246, 0.1);
  
  /* Acentos */
  --accent: #8b5cf6;
  --urgent: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  
  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  /* Bordes */
  --border-primary: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(59, 130, 246, 0.3);
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.25);
  
  /* UI */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Espaciado Generoso */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
  
  /* Tipografía */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-urgent: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

a:hover { color: var(--primary); }

ul, ol { list-style: none; }

/* ===== TIPOGRAFÍA PREMIUM ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER PREMIUM 2026 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-primary);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.98);
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-primary);
  gap: 16px;
}

/* Logo Mejorado */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: var(--bg-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}

.logo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-glow);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}

.logo-text h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header Stats (Solo Reloj y Fecha) */
.header-stats {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.stat-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Fecha derecha */
.header-date-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Navegación */
.navbar { 
  padding: 10px 0;
}

.nav-menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu li a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  border: 1px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--primary-muted);
  color: var(--primary-light);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.nav-menu li a.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

/* ===== TICKER "ÚLTIMO MOMENTO" ===== */
.breaking-news-bar {
  background: var(--gradient-urgent);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 999;
  width: 100%;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.breaking-label {
  background: rgba(0, 0, 0, 0.3);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.breaking-label .indicator {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform;
  animation: ticker-scroll 90s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0) translateY(-50%); }
  100% { transform: translateX(-50%) translateY(-50%); }
}

.ticker-item {
  padding: 0 30px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.ticker-item::after {
  content: "•";
  margin-left: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  vertical-align: middle;
}

/* ===== LAYOUT PRINCIPAL - ALINEACIÓN DEFINITIVA ===== */
.main-top-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  margin: 40px 0 0; /* ✅ HERO BAJADO: 40px margen superior */
  align-items: stretch; /* ✅ CLAVE: Estira ambos elementos a la misma altura */
}

.hero-column {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-primary);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
  height: 100%;
  flex: 1;
}

.hero-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-accent);
}

.hero-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px; /* ✅ COMPACTO */
  flex-shrink: 0;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-section:hover .hero-image img {
  transform: scale(1.05);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}

.hero-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-content h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  margin: 0 0 10px 0;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 800;
}

.hero-content p.lead {
  font-size: 0.95rem;
  margin: 0 0 14px 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 14px;
  border-top: 1px solid var(--border-primary);
  margin-top: auto;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.article-meta i {
  color: var(--primary);
  font-size: 0.9rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 14px;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-read-more:hover {
  gap: 14px;
  color: var(--primary);
  transform: translateX(4px);
}

/* ===== SIDEBAR - OPTIMIZADO Y ALINEADO ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
  width: 380px;
  height: 100%; /* ✅ Ocupa todo el alto del Grid */
}

.widget {
  background: var(--bg-card);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0; /* ✅ Evita que se aplasten */
}

.widget:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.widget-title {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-primary);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-display);
}

.widget-title i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Caricatura Widget - REDUCIDO */
.cartoon-widget {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.cartoon-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-primary);
  transition: all var(--duration-fast) var(--ease-out);
  height: 240px; /* ✅ REDUCIDO (antes 280px) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartoon-widget:hover .cartoon-container {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.caricatura-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ Contiene toda la imagen */
  background: var(--bg-primary);
  transition: transform var(--duration-normal) var(--ease-out);
}

.cartoon-widget:hover .caricatura-img {
  transform: scale(1.02);
}

.caricatura-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.btn-zoom {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(59, 130, 246, 0.9);
  color: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.cartoon-widget:hover .btn-zoom {
  opacity: 1;
}

.btn-zoom:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Encuesta Widget - EMPUJADA AL FONDO */
.widget-encuesta {
  display: flex;
  flex-direction: column;
  flex: 1; /* ✅ Ocupa el espacio restante */
  justify-content: flex-start;
  margin-top: auto; /* ✅ CLAVE: Empuja la encuesta al final */
}

.poll-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.poll-question {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  padding: 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.poll-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poll-option {
  display: flex;
  align-items: center;
  padding: 7px 9px;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.poll-option:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.poll-option input[type="radio"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.option-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.poll-option:hover .option-text {
  color: var(--text-primary);
}

.btn-vote {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  padding: 9px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.5);
}

/* Resultados de Encuesta */
.poll-results {
  display: none;
  animation: fadeIn 0.5s var(--ease-out);
}

.result-bar {
  margin-bottom: 8px;
}

.result-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.result-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.result-percentage {
  font-weight: 800;
  color: var(--primary-light);
  font-size: 0.82rem;
}

.result-progress {
  height: 20px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.result-fill {
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  transition: width 1s var(--ease-out);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.result-fill.no { 
  background: var(--gradient-urgent); 
}

.result-fill.ns { 
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%); 
}

.poll-total {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: right;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid var(--border-primary);
}

/* ===== GRID DE NOTICIAS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
}

.news-column {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.news-column:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.section-title {
  font-size: 1.1rem !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary) !important;
  font-family: var(--font-display);
}

.section-title i {
  color: var(--primary);
  font-size: 1rem;
}

.news-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-primary);
  transition: all var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
}

.news-card:last-child { 
  border-bottom: none; 
  padding-bottom: 0; 
}

.news-card:hover { 
  transform: translateX(8px); 
}

.news-card-image {
  flex-shrink: 0;
}

.news-card-image img {
  width: 85px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.news-card:hover .news-card-image img {
  border-color: var(--border-accent);
}

.news-card-content { 
  flex: 1; 
  min-width: 0; 
}

.news-card-content h4 {
  font-size: 0.92rem;
  margin: 0 0 6px 0;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.news-card-content .time {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.view-all:hover {
  gap: 12px;
  color: var(--primary);
  transform: translateX(4px);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.badge-primary {
  background: var(--primary-muted);
  color: var(--primary-light);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s var(--ease-out);
  backdrop-filter: blur(12px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 50px;
  color: #ffffff;
  font-size: 3rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: rgba(255, 255, 255, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
  transform: scale(1.15) rotate(90deg);
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER PREMIUM ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 64px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.footer-logo .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-section ul li { 
  margin-bottom: 10px; 
}

.footer-section ul li a {
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-smooth);
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: var(--primary-light);
  transform: translateX(6px);
}

.social-links { 
  display: flex; 
  gap: 12px; 
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid var(--border-primary);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-4px);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== ANIMACIONES ===== */
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-top-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
  }
  
  .widget {
    flex: 1;
    min-width: 300px;
  }
  
  .news-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .hero-image { 
    height: 240px; 
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 16px 0;
  }
  
  .logo { 
    justify-content: center; 
  }
  
  .header-stats { 
    justify-content: center; 
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
    border: 1px solid var(--border-primary);
    gap: 6px;
  }
  
  .nav-menu.active { 
    display: flex; 
  }
  
  .nav-menu li a { 
    width: 100%; 
    justify-content: center; 
  }
  
  .hamburger { 
    display: flex; 
  }
  
  .news-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 32px; 
  }
  
  .social-links { 
    justify-content: center; 
  }
  
  .hero-image { 
    height: 200px; 
  }
  
  .hero-content { 
    padding: 20px; 
  }
  
  .hero-content h2 { 
    font-size: 1.3rem !important; 
  }
}

@media (max-width: 480px) {
  .container { 
    padding: 0 16px; 
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-text h1 { 
    font-size: 1.3rem; 
  }
  
  .tagline {
    font-size: 0.7rem;
  }
  
  .breaking-news-bar { 
    height: 26px; 
  }
  
  .breaking-label { 
    padding: 0 10px; 
    font-size: 0.65rem; 
  }
  
  .ticker-item { 
    font-size: 0.75rem; 
    padding: 0 24px; 
  }
  
  .hero-image { 
    height: 180px; 
  }
  
  .article-meta { 
    gap: 10px; 
    font-size: 0.75rem; 
    flex-wrap: wrap;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   ESTILOS ESPECÍFICOS PARA PÁGINAS DE SECCIONES
   ========================================== */

/* Hero más alto solo en secciones */
body.paginas-secciones .hero-image {
  height: 350px;
}

/* Notas del sidebar en secciones */
body.paginas-secciones .sidebar .widget .news-card {
  padding: 14px 0;
  gap: 14px;
}

body.paginas-secciones .sidebar .widget .news-card-image img {
  width: 110px;
  height: 85px;
  object-fit: cover;
}

body.paginas-secciones .sidebar .widget .news-card-content h4 {
  font-size: 0.95rem;
  line-height: 1.4;
}