/* ==========================================================================
   ESTILOS GENERALES Y DISEÑO DE SISTEMA - FUNDACIÓN ARCAS
   ========================================================================== */

/* Importación de tipografías modernas de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Variables de diseño y paletas de colores (Claro / Oscuro) */
:root {
  /* Paleta Light (Predeterminada) */
  --primary-color: #0a2540;
  --primary-rgb: 10, 37, 64;
  --accent-color: #e28743;
  --accent-hover: #cf7330;
  --accent-rgb: 226, 135, 67;
  --bg-color: #fcfbfa;
  --card-bg: #ffffff;
  --text-main: #2d3748;
  --text-muted: #5a6a80;
  --border-color: #e2e8f0;
  --navbar-bg: rgba(252, 251, 250, 0.8);
  --navbar-shadow: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  --gradient-radio: linear-gradient(135deg, #0f2b48 0%, #1e4b75 100%);
  --success: #10b981;
  
  /* Fuentes */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transiciones estándar */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Altura Navbar */
  --nav-height: 80px;
}

/* Paleta Dark */
[data-theme="dark"] {
  --primary-color: #2b6cb0;
  --primary-rgb: 43, 108, 176;
  --accent-color: #e28743;
  --accent-hover: #f09a58;
  --accent-rgb: 226, 135, 67;
  --bg-color: #0b0f19;
  --card-bg: #161f30;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --border-color: #2d3748;
  --navbar-bg: rgba(11, 15, 25, 0.8);
  --navbar-shadow: rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.3);
  --gradient-radio: linear-gradient(135deg, #0c1524 0%, #15253d 100%);
}

/* Reset y Estilos de Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Accesibilidad: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-color);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 20px;
}

/* Enfoque accesible */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

/* Contenedor estándar */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Títulos y Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header .tagline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: inline-block;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-main);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: var(--radius-full);
}

/* Botones de Estilo Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   COMPONENTES ESPECÍFICOS DE LA INTERFAZ
   ========================================================================== */

/* 1. Navbar Fija Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s, height 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
}

[data-theme="dark"] .logo {
  color: var(--text-main);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
  transform: rotate(12deg) scale(1.08);
}

.footer-brand .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-main);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Alternador Tema Claro/Oscuro */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--border-color);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: rotate(15deg);
  background-color: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

/* Botón Hamburguesa móvil */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

/* 2. Hero de Pantalla Completa */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Desplaza la imagen hacia arriba para ocultar los bordes blancos inferiores */
  animation: kenBurns 20s ease infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(15, 61, 89, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 750px;
}

.hero-tagline {
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tagline::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Animación Ken Burns para el Hero */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* 3. Quiénes Somos */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

/* Carrusel del Equipo Humano - Estilos Premium */
.team-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* 1/1 (cuadrado) para dar más espacio vertical a los retratos */
  overflow: visible; /* Permitir que los dots queden fuera del contenedor */
  background-color: var(--card-bg);
  transition: var(--transition-smooth);
  margin-bottom: 35px; /* Espacio inferior para acomodar los dots */
}

.team-carousel:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

.carousel-track-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden; /* Corta las diapositivas y las mantiene dentro */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.team-card {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.team-card-image-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(var(--primary-rgb), 0.05);
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%; /* Ajustado para enfocar la cabeza y evitar cortes en la cara */
  transition: transform 0.8s ease;
}

/* Gradiente semitransparente oscuro para asegurar legibilidad */
.team-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 50px 30px 30px;
  background: linear-gradient(to top, 
    rgba(10, 37, 64, 0.95) 0%, 
    rgba(10, 37, 64, 0.75) 50%, 
    rgba(10, 37, 64, 0.2) 80%, 
    rgba(10, 37, 64, 0) 100%
  );
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.team-carousel .team-card-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: white !important; /* Forzado a blanco para asegurar legibilidad sobre el gradiente oscuro en el modo claro */
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.team-card-role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.team-card-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  font-weight: 400;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: normal; /* Permitir que el texto salte de línea de forma natural */
}

/* Botones de Navegación Lateral */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(10, 37, 64, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Indicadores de Posición (Dots) - Ubicados fuera del carrusel */
.carousel-nav {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--text-muted);
  opacity: 0.4;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--accent-color);
  opacity: 1;
  width: 24px;
}

.carousel-dot:hover {
  opacity: 0.8;
}

.carousel-dot.active:hover {
  background-color: var(--accent-color);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .team-card-name {
    font-size: 1.2rem;
  }
  .team-card-role {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  .team-card-desc {
    font-size: 0.8rem;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn.prev {
    left: 10px;
  }
  .carousel-btn.next {
    right: 10px;
  }
  .carousel-nav {
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
  }
  .team-card-info {
    padding: 30px 15px 30px;
    text-align: center;
  }
}

.about-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background-color: var(--accent-color);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 140px;
  text-align: center;
  font-weight: 700;
  z-index: 12; /* Posicionado por encima del carrusel */
  transition: var(--transition-smooth);
}

.about-badge .number {
  display: block;
  font-size: 2rem;
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 2px;
}

.about-badge span:not(.number) {
  font-size: 0.75rem;
  line-height: 1.2;
  display: block;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about h3 {
  font-size: 2rem;
  color: var(--primary-color);
}

[data-theme="dark"] .about h3 {
  color: var(--text-main);
}

.about-valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.valor-item {
  display: flex;
  gap: 12px;
}

.valor-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.valor-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* 4. Misión y Visión (Tarjetas Visuales) */
.mission-vision {
  padding: 100px 0;
  background-color: rgba(var(--primary-rgb), 0.02);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background-color: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-color);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mv-icon {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-card h3 {
  font-size: 1.75rem;
}

/* 5. Proyectos y Actividades (Con Filtros) */
.projects {
  padding: 100px 0;
}

.filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background-color: rgba(var(--primary-rgb), 0.04);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .filter-btn:hover, [data-theme="dark"] .filter-btn.active {
  background-color: var(--accent-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #ffd200; /* Asegurar base amarilla */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-color);
  color: white;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.project-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.project-link:hover {
  color: var(--accent-hover);
}

.project-card.hidden {
  display: none;
}

/* 6. Programa Radial "Qué Pasa Hoy" - Plataforma Multimedia */
.radio-section {
  padding: 100px 0;
  background: var(--gradient-radio);
  color: white;
  position: relative;
  overflow: hidden;
}

.radio-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-full);
  top: -100px;
  right: -100px;
  filter: blur(100px);
}

.radio-section .section-header h2 {
  color: white;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 5;
}

.radio-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.radio-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(226, 135, 67, 0.2);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(226, 135, 67, 0.4);
}

.radio-badge .pulse {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: var(--radius-full);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.radio-logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radio-logo-main {
  width: 90px;
  height: 90px;
  background-color: var(--accent-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(226, 135, 67, 0.3);
}

.radio-station-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.radio-station-name span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 600;
  margin-top: 4px;
}

.radio-description {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* Reproductor de Audio Premium (Mockup Funcional) */
.audio-player {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.player-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background-color: #ffd200; /* Fondo amarillo */
  overflow: hidden;
  flex-shrink: 0;
}

.player-track-info {
  flex-grow: 1;
}

.player-track-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.player-track-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.player-btn {
  color: white;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.player-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.player-btn-main {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.player-btn-main:hover {
  transform: scale(1.05);
  background-color: var(--accent-color);
  color: white;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%; /* Simulación */
  background-color: var(--accent-color);
  border-radius: var(--radius-full);
}

.player-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* Espacio Multimedia: Episodios e Invitados */
.multimedia-hub {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.hub-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.episode-card {
  display: flex;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.episode-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.episode-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: #ffd200; /* Fondo amarillo */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.episode-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.episode-meta {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Grid de Invitados */
.guests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guest-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.guest-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.guest-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
  background-color: #ffd200; /* Fondo amarillo */
  overflow: hidden;
  border: 2px solid var(--accent-color);
}

.guest-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.guest-role {
  font-size: 0.8rem;
  opacity: 0.6;
}

.future-integrations {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.integration-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.integration-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 7. Galería Cultural con Lightbox */
.gallery {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background-color: #ffd200; /* Fondo amarillo */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: white;
  padding: 20px;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon-zoom {
  font-size: 1.5rem;
  margin-bottom: 8px;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.gallery-desc {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Lightbox Estructura */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
}

.lightbox-caption h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.lightbox-caption p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.lightbox-btn {
  position: absolute;
  color: white;
  opacity: 0.7;
  font-size: 2rem;
  transition: var(--transition-fast);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
}

.lightbox-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-close {
  top: -60px;
  right: 0;
}

.lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

/* 8. Impacto Cultural (Estadísticas) */
.impact {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.impact-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
}

.impact-label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 9 & 10. Formulario de Contacto y Redes Sociales */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
}

[data-theme="dark"] .contact-info h3 {
  color: var(--text-main);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-detail-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  overflow: hidden;
  padding: 8px;
}

.social-btn:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

[data-theme="dark"] .social-btn {
  background-color: #ffffff;
}

[data-theme="dark"] .social-icon-img {
  filter: brightness(1);
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transition: var(--transition-smooth);
  filter: brightness(0.8);
}

.social-btn:hover .social-icon-img {
  filter: brightness(1.2);
}

/* Formulario Moderno */
.contact-form-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-color);
  background-color: var(--card-bg);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.form-group.invalid .form-control {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.02);
}

.form-group.invalid .error-message {
  display: block;
}

/* Alertas de Formulario */
.form-alert {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-alert.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-alert.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Custom Checkbox - Interés de Participación */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  transition: var(--transition-smooth);
}

.form-checkbox:hover {
  border-color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.03);
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  position: relative;
}

.checkbox-custom::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.form-checkbox input[type="checkbox"]:focus-visible ~ .checkbox-custom {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

/* 11. Footer */
.footer {
  background-color: #051424;
  color: #a0aec0;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-social .social-btn {
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

.footer-social .social-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer-social .social-icon-img {
  filter: brightness(1.2);
}

[data-theme="dark"] .footer-social .social-btn {
  background-color: #ffffff;
  border-color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo {
  color: white;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column-title {
  font-family: var(--font-sans);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   EFECTOS DE ANIMACIÓN DE SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DISEÑO RESPONSIIVO - MEDIA QUERIES
   ========================================================================== */

/* Tablet y Pantallas Medianas */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrapper {
    max-width: 550px;
    margin: 0 auto 30px;
  }
  
  .radio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .multimedia-hub {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
}

/* Dispositivos Móviles Avanzados */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 20px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 80%;
    text-align: center;
    padding: 12px;
  }
  
  /* Animación Hamburger */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .mv-grid {
    grid-template-columns: 1fr;
  }
  
  .mv-card {
    padding: 30px;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .audio-player {
    padding: 20px;
  }
  
  .guests-grid {
    grid-template-columns: 1fr;
  }
}
