/* ==============================================================================
   ESTILOS COMPLEMENTARIOS PARA VINCULAHOY (LEAFLET & UI)
   ============================================================================== */

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  80%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.user-pulse-marker {
  position: relative;
  width: 20px;
  height: 20px;
}

.user-pulse-marker::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.user-pulse-marker::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Marcadores para Centros en Leaflet */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2.5px solid #ffffff;
  transition: transform 0.2s ease;
}

.custom-marker:hover {
  transform: scale(1.15);
}

.marker-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fef3c7;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.marker-standard {
  background: linear-gradient(135deg, #10b981, #047857);
  border-color: #d1fae5;
}

/* Animación de apertura de modales */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Personalización de Popups de Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
}

/* Barra de desplazamiento estética */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
