/* --- Estilos Generales --- */
body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

/* Evita que el fondo se desplace con el modal abierto */
body.modal-open {
  overflow: hidden;
}

/* --- Estilos para el Slider del Hero --- */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}
.slide.active {
  opacity: 1;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.dot:hover,
.dot.active {
  background-color: white;
}

/* --- Estilos para Formularios Personalizados --- */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #e63946;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.custom-checkbox:checked {
  background-color: #e63946;
}
.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: -2px;
  left: 3px;
}
.custom-radio {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #e63946;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.custom-radio:checked {
  border-color: #e63946;
}
.custom-radio:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #e63946;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

/* --- Estilos para los marcadores del mapa --- */
.custom-div-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: #e63946;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin-left: -15px;
  margin-top: -15px;
}
.custom-div-icon i {
  position: relative;
  z-index: 1;
  font-size: 16px;
  margin-top: -5px;
}

/* --- ESTILOS PERSONALIZADOS PARA EL MODAL DE VÍDEO (SWEETALERT2) --- */

/* Hace que la ventana en general sea más compacta */
.swal2-popup.swal2-modal {
  padding: 1.25em !important; /* Reduce el relleno interior general */
}

/* Reduce drásticamente el espacio que hay debajo del título */
.swal2-title {
  margin: 0 auto 0em !important; /* Reduce el margen inferior del título */
}

/* Elimina cualquier margen extra del contenedor del vídeo */
.swal2-html-container {
  margin: 0 !important;
}

/* Estilos para el lightbox */
#lightbox {
  transition: opacity 0.3s ease;
}

#lightbox img {
  transition: transform 0.3s ease;
}

#lightbox:hover img {
  transform: scale(1.02);
}

#lightbox .btn {
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 20px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

#lightbox .btn:hover {
  background: rgba(0,0,0,0.8);
}
