/* css/styles.css - SECCIÓN INDEX Y MAPA */

/* --- PORTADA (HERO) --- */
.hero-background {
  background: radial-gradient(circle at 50% 0%, #2c3e50 0%, #000000 100%); /* Fondo más profundo */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0; /* Más aire arriba y abajo */
}

/* Efecto de grilla de fondo (Cyberpunk sutil) */
.hero-background::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- TARJETA DE BIENVENIDA (Izquierda) --- */
.welcome-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Sombra fuerte para resaltar */
  position: relative;
  z-index: 10;
}

.welcome-title {
  font-weight: 900; /* Extra negrita */
  letter-spacing: -1.5px;
  color: #1a1c2e;
}

.main-icon {
  font-size: 4.5rem;
  background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Gradiente en el icono */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 10px rgba(255, 75, 43, 0.3));
}

/* Botones de Ingreso */
.btn-premium {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  border-radius: 16px; /* Bordes un poco menos redondos, más moderno */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-premium::after { /* Brillo al pasar el mouse */
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.btn-premium:hover::after { opacity: 1; }

.btn-male { background: linear-gradient(135deg, #243B55, #141E30); color: white; }
.btn-female { background: linear-gradient(135deg, #FF416C, #FF4B2B); color: white; }


/* --- TARJETA DEL MAPA (Derecha) --- */
.map-card {
  background: rgba(255, 255, 255, 0.05); /* Vidrio oscuro */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  /* Centrado Absoluto del Mapa */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 600px;
  position: relative;
}

/* Ajustes del SVG (Corrección de posición) */
.peru-map {
  width: 100%;
  height: 100%;
  max-height: 600px;
  /* Filtro para darle volumen al mapa */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); 
  display: block;
  margin: 0 auto;
  animation: fadeInMap 1.5s ease-out;
}

@keyframes fadeInMap {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Estilos internos del SVG (SimpleMaps) */
#label_points, #points, text { display: none !important; } /* Ocultar basura */

.peru-map path {
  fill: rgba(255, 255, 255, 0.1); /* Transparente por defecto */
  stroke: rgba(255, 255, 255, 0.2); /* Líneas sutiles */
  stroke-width: 1px;
  transition: all 0.3s ease;
  cursor: crosshair; /* Cursor de mira para precisión */
}

.peru-map path:hover {
  stroke: #fff;
  stroke-width: 2px;
  fill: rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); /* Resplandor */
  z-index: 100;
}

/* Tooltip Flotante (Estilo Dark UI) */
#mapTooltip {
  position: absolute;
  background: rgba(15, 15, 20, 0.95);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 9999;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}

/* --- Badge de Usuarios en Vivo (NUEVO) --- */
.live-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(44, 62, 80, 0.08); /* Fondo sutil sobre blanco */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981; /* Verde esmeralda */
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}