/* style.css */

/* Estilos generales */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Hero Section con imagen de fondo de Ituzaingó */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1585504231277-6da8e25b8d3a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Tarjetas de problemas */
.problem-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Círculos para pasos */
.step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Tarjetas de servicios */
.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #3b82f6;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #3b82f6;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* Enlaces de navegación */
.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Estilos para el mapa Leaflet */
#mapaLeaflet {
  border-radius: 12px;
  z-index: 1;
}

/* Estilos para los controles de Leaflet */
.leaflet-control {
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.leaflet-control-layers {
  border-radius: 8px !important;
  padding: 10px !important;
  background: white !important;
}

.leaflet-control-zoom {
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  border-radius: 0 !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  text-align: center !important;
  font-size: 18px !important;
  color: #4b5563 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.leaflet-control-zoom a:first-child {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
  background-color: #f3f4f6 !important;
}

.leaflet-popup {
  border-radius: 8px !important;
  overflow: hidden !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 300px !important;
}

.leaflet-popup-tip {
  background: white !important;
  box-shadow: none !important;
}

/* Estilos para los iconos personalizados */
.custom-div-icon {
  background: transparent !important;
  border: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  #mapaLeaflet {
    height: 400px;
  }
  
  .leaflet-control-layers {
    max-width: 200px !important;
  }
}

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  #mapaLeaflet {
    height: 350px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Estilos para los popups */
.leaflet-popup-content button {
  transition: all 0.3s ease;
}

.leaflet-popup-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}