/* ========================================
   FONDO ESPACIAL
   ======================================== */

   /* Fondo tipo nebulosa/espacio profundo */
/* body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, #1B2735 0%, #090A0F 100%);
  background-attachment: fixed;
} */

/* ALTERNATIVAS DE FONDO - Descomenta la que prefieras */

/* Opción 2: Nova/Nebulosa colorida (Cyan-Púrpura) */
/* 
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at center, #330867 0%, #30cfd0 100%);
  background-attachment: fixed;
}
*/

/* Opción 3: Galaxia púrpura */

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}


/* Opción 4: Aurora/Nova azul profunda */
/*
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #000428 0%, #004e92 100%);
  background-attachment: fixed;
}
*/

/* Opción 5: Espacio con estrellas */

/* body {
  margin: 0;
  padding: 0;
  background: #000000;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 60px 70px, white, transparent),
    radial-gradient(1px 1px at 50px 50px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 90px 10px, white, transparent),
    radial-gradient(1px 1px at 140px 140px, white, transparent);
  background-size: 200px 200px;
  background-repeat: repeat;
  animation: twinkle 5s ease-in-out infinite;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 100, 255, 0.2) 0%, transparent 50%);
  z-index: -1;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
} */


/* ========================================
   MAPA
   ======================================== */

#map {
  height: 100vh;
  width: 100vw;
}

/* ========================================
   PANEL DE CONTROL DE CAPAS (OBSOLETO)
   ======================================== */

#layer-control {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: Arial, sans-serif;
  min-width: 180px;
}

#layer-control h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  border-bottom: 2px solid #0080FF;
  padding-bottom: 8px;
}

#layer-control label {
  display: flex;
  align-items: center;
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}

#layer-control input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

#layer-control span {
  font-size: 14px;
  color: #555;
}

#layer-control label:hover span {
  color: #0080FF;
}

/* ========================================
   CONTROL DE CAPAS PERSONALIZADO (ACTUAL)
   ======================================== */

.layer-control-content {
  position: relative;
}

.layer-toggle-btn {
  width: 29px;
  height: 29px;
  padding: 5px;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.layer-toggle-btn:hover {
  background: #f2f2f2;
}

.layer-panel {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 10px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  padding: 10px;
  min-width: 180px;
  z-index: 1;
}

.layer-panel-header {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0080FF;
  color: #333;
}

.layer-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
}

.layer-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.layer-item:hover span {
  color: #0080FF;
}

/* Botón AlphaEarth - Esquina inferior derecha */
/* #alphaearth-btn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#alphaearth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#alphaearth-btn:active {
  transform: translateY(0);
} */

/* Botón AlphaEarth - Superior derecha */
#alphaearth-btn {
  position: fixed;        /* CAMBIAR de absolute a fixed */
  top: 230px;
  right: 10px;
  width: 29px;
  height: 29px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#alphaearth-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.05);
}

#alphaearth-btn:active {
  transform: scale(0.95);
}

html, body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

#map {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ========================================
   TÍTULO DE LA PÁGINA
   ======================================== */

#page-title {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; /* Ocupa todo el ancho */
  max-width: 800px; /* Limita el ancho en pantallas grandes */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 20px;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0; /* Opcional */
}

/* ========================================
   MAPA
   ======================================== */

#map {
  height: 100vh; /* Ocupa toda la altura de la ventana */
  width: 100vw;  /* Ocupa todo el ancho */
  margin-top: 0; /* Sin espacio extra */
  overflow: hidden;
}

/* ========================================
   AJUSTES GENERALES
   ======================================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}
