
body {
  margin: 0;                    
  padding: 0;                   
  background-color: #000;      
  color: #eaeaea;              
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif; 
}

/* Configuración del elemento*/
html {
  scroll-behavior: smooth;     
  scroll-padding-top: 140px;
}

main {
  margin-top: 110px;
  padding: 2rem;
}


.content-wrap {
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #000;
  border-bottom: 1px solid #222;
  z-index: 999999 !important;
  height: auto;
  min-height: 80px;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1000000 !important;
}

/* Estilo de cada enlace de navegación */
.navbar a {
  text-decoration: none;       /* Quita el subrayado */
  color: #fff;             
  text-transform: uppercase;   
  font-size: clamp(0.7rem, 1.5vw, 0.9rem); /* Tamaño responsive más pequeño */
  letter-spacing: 0.3px;       /* Reducir letter-spacing */
  transition: all 0.3s ease; 
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 0.5rem;          /* Añadir padding horizontal */
}

/* Efecto hover en enlaces de navegación */
.navbar a:hover { 
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-radius: 4px;          /* Añadir border radius al hover */
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000001 !important;
}

.dropdown-toggle {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-radius: 4px;
}

.dropdown-toggle.active {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dropdown-toggle::after {
  content: ' ▾';
  margin-left: 0.3rem;
  font-size: 0.8em;
}

.dropdown-content {
  display: none;
  position: fixed;  /* Cambiar de absolute a fixed */
  top: 80px;  /* Posición fija desde el top */
  left: auto;
  background-color: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 1000002 !important;
  margin-top: 0;
}

.dropdown-content a {
  color: #fff;
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  height: auto;
  text-transform: uppercase;
}

.dropdown-content a:hover {
  background-color: rgba(30, 144, 255, 0.2);
  transform: translateX(5px);
}

.dropdown-content a.active {
  color: #1e90ff;
  background-color: rgba(30, 144, 255, 0.1);
}

/* Solo mostrar dropdown cuando tiene clase active (removido :hover) */
.dropdown.active .dropdown-content {
  display: block;
}

/* SISTEMA DE TIPOGRAFÍA *

/* Títulos principales y de sección */
.hero-title, .section-title {
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: 700;            
  line-height: 1.2;           
  margin-bottom: 0.5rem;       
}

/* Título principal de la página (hero) */
.hero-title { 
  font-size: clamp(2rem, 4vw, 4rem); /* Tamaño responsive */
}

/* Títulos de sección */
.section-title { 
  font-size: clamp(1.5rem, 2.2vw, 2.25rem); /* Tamaño responsive subtitulos */
  margin-top: 3rem; /* Aumentar margen superior */
  margin-bottom: 1rem; /* Agregar margen inferior */
}

/* Texto destacado (lead paragraph) */
.lead { 
  font-size: 1.1rem;           
  line-height: 1.7;            
  color: #eaeaea;              
  max-width: 72ch;
  text-align: center;
  margin: 0 auto;
}

/* Párrafos normales */
p { 
  color: #b5b5b5;            
  line-height: 1.6;          }

/* FOOTER: *

/* Contenedor principal del footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(5, 8, 15, 0.95) 0%,
    rgba(10, 16, 32, 0.98) 50%,
    rgba(5, 8, 15, 1) 100%
  );
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, 
    transparent,
    rgba(30, 144, 255, 0.4),
    rgba(100, 255, 218, 0.4),
    rgba(30, 144, 255, 0.4),
    transparent
  ) 1;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 -4px 20px rgba(30, 144, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Efecto de partículas en el fondo */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Contenido interno del footer */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Secciones individuales del footer */
.footer-section {
  padding: 1.5rem;
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.03) 0%,
    rgba(10, 10, 15, 0.4) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.footer-section:hover {
  border-color: rgba(30, 144, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Títulos dentro del footer */
.footer-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.8rem;
}

/* Línea decorativa bajo títulos */
.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(30, 144, 255, 0.6),
    transparent
  );
}

/* Párrafos dentro del footer */
.footer-section p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Enlaces en el footer */
.footer-section a {
  color: #64ffda;
  text-decoration: none;
  word-break: break-word;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.footer-section a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e90ff, #64ffda);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: #1e90ff;
  background: rgba(30, 144, 255, 0.05);
}

.footer-section a:hover::before {
  width: 100%;
}

/* Texto destacado en el footer */
.footer-section strong {
  color: #1e90ff;
  font-weight: 600;
}

/* DISEÑO DE SECCIONES PRINCIPALES *

/* Configuración base para todas las secciones */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8rem 0 4rem;
  border-bottom: 1px solid #111;
  position: relative;
  z-index: 1 !important;  /* Forzar z-index bajo */
}

/* Secciones impares con fondo negro */
section:nth-of-type(odd) { 
  background-color: #000;     
}

/* Secciones pares con fondo ligeramente diferente */
section:nth-of-type(even) { 
  background-color: #0a0a0a;   /* Gris muy oscuro para crear contraste */
}

/* Sección hero con espacio extra arriba */
.hero-section { 
  padding-top: 10rem;
  justify-content: center;
  position: relative;
  z-index: 1 !important;  /* Forzar z-index bajo */
}

/* SELECTOR DE IDIOMAS *

/* Contenedor del selector de idioma */
.lang-switcher {
  display: flex;              
  align-items: center;         
}

/* Estilo del dropdown de selección de idioma */
#langSelect {
  background: #0f1115;        
  color: #eaeaea;           
  border: 1px solid #1f2a44;  
  border-radius: 10px;         
  padding: .5rem .8rem;       
  font-weight: 600;           
  letter-spacing: .3px;      
  cursor: pointer;             /* Cursor de mano */
  outline: none;               /* Sin outline al hacer focus */
  box-shadow: 0 0 10px rgba(30,144,255,.15) inset; 
}

/* Efecto hover del selector de idioma */
#langSelect:hover { 
  border-color: #1e90ff;      
}


/* === ALERTAS: gradiente casi negro (deep space) === */
#alertas {
  position: relative;
  padding: 6rem 5vw;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(2, 4, 10, 1) 20%,
    rgba(5, 8, 15, 1) 50%,
    rgba(3, 5, 10, 1) 80%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 1 !important;  /* Forzar z-index bajo */
}

#alertas .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

#alertas p {
  font-size: 1.1rem;
  max-width: 800px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.calendar-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.calendar-content {
  background-color: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 14px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(30,144,255,0.3);
  text-align: center;
  position: relative;
}

#close-calendar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

#addGoogleEvent {
  margin-top: 1rem;
  background: #1e90ff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

#addGoogleEvent:hover {
  background: #00bfff;
}

.calendar-link {
  cursor: pointer;
  color: #1e90ff;
  font-weight: 600;
  transition: color 0.3s;
}

.calendar-link:hover {
  color: #00bfff;
}

/* Control de audio ambiental */
.audio-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  margin-top: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.audio-control:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.audio-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Known Meteorites Section - Fondo negro puro */
#conocidos {
  position: relative;
  background: #000;
  z-index: 1 !important;
}

#conocidos .section-title {
  position: relative;
  z-index: 2;
}

#conocidos .lead {
  position: relative;
  z-index: 2;
}

/* === MEDIA QUERIES PARA RESPONSIVE DESIGN === */

/* Footer responsive para móviles */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 1.5rem;
    padding: 0 1rem;
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
  }
  
  .site-footer {
    padding: 1.5rem 0 1rem;
  }
}

/* Pantallas muy pequeñas - siempre mostrar hamburger */
@media (max-width: 480px) {
  .hamburger {
    display: flex !important;
  }
  
  .navbar {
    display: none !important;
  }
  
  .site-header {
    padding: 0.5rem;
  }
  
  .site-title {
    font-size: 0.8rem;
  }
  
  .logo {
    height: 30px;
  }
  
  /* Footer en pantallas muy pequeñas */
  .footer-content {
    padding: 0 0.5rem;
  }
  
  .footer-section h3 {
    font-size: 1rem;
  }
  
  .footer-section p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .footer-section a {
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.3rem;
  }
}

/* Pantallas pequeñas - mostrar hamburger si es necesario */
@media (max-width: 768px) {
  .navbar {
    gap: 0.5rem;
  }
  
  .navbar a {
    font-size: 0.7rem;
    padding: 0 0.3rem;
  }
  
  /* Footer más compacto en tablets */
  .footer-content {
    gap: 1rem;
  }
  
  .footer-section {
    margin-bottom: 1rem;
  }
}

/* Pantallas medianas - ajustar cuando hay mucho contenido */
@media (max-width: 1024px) {
  .site-header {
    padding: 0.8rem;
  }
  
  .navbar {
    gap: 0.8rem;
  }
  
  .navbar a {
    font-size: 0.8rem;
  }
}

/* Para zoom alto (cuando el contenido se ve muy grande) */
@media (max-width: 1200px) and (min-resolution: 144dpi) {
  .hamburger {
    display: flex !important;
  }
  
  .navbar {
    display: none !important;
  }
}

/* Mejoras para pantallas con zoom */
.site-header {
  overflow-x: auto;            /* Permitir scroll horizontal si es necesario */
  scrollbar-width: none;       /* Ocultar scrollbar en Firefox */
  -ms-overflow-style: none;    /* Ocultar scrollbar en IE/Edge */
}

.site-header::-webkit-scrollbar {
  display: none;               /* Ocultar scrollbar en Chrome/Safari */
}

/* Mostrar hamburger cuando el viewport es muy estrecho */
@media (max-width: 1400px) {
  .navbar a {
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  }
}

/* Punto de quiebre crítico donde siempre mostrar hamburger */
@media (max-width: 900px) {
  .hamburger {
    display: flex !important;
  }
  
  .navbar {
    display: none !important;
  }
}

/* Mejoras para dispositivos en orientación horizontal (landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  .site-footer {
    padding: 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr; /* Mantener dos columnas en landscape */
    gap: 1rem;
  }
  
  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-section p {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
}

/* Mejora la legibilidad en pantallas intermedias */
@media (min-width: 481px) and (max-width: 767px) {
  .footer-content {
    padding: 0 2rem;
  }
  
  .footer-section h3 {
    font-size: 1.15rem;
  }
  
  .footer-section p {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
}

/* Hamburger menu - hidden by default on desktop */
.hamburger {
  display: none;
}

/* Ensure smooth transitions */
* {
  box-sizing: border-box;
}

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

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}