/* Hero Galería */
.hero-galeria {
  background-image: linear-gradient(rgba(0, 78, 137, 0.8), rgba(0, 78, 137, 0.6)), url('img/Ivett.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  background-color: transparent !important; /* Fuerza transparencia */
  box-shadow: none !important; /* Elimina sombras */
  padding: 0; /* Opcional: ajusta si necesitas espacio */
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 1.1rem;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Carrusel */
.carrusel-galeria {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 50px;
  overflow: hidden;
}

.carrusel-contenedor {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.carrusel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.carrusel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carrusel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 20px;
  text-align: left;
}

/* Controles */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 107, 53, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carrusel-btn:hover {
  background-color: rgba(255, 107, 53, 0.9);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Puntos */
.carrusel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Grid de Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.galeria-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 250px;
}

.galeria-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 78, 137, 0.9));
  color: white;
  padding: 20px;
  transition: all 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  bottom: 0;
}

.btn-ver {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver:hover {
  background-color: var(--secondary-color);
}

/* Modal */
.modal-galeria {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-contenido {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-cerrar {
  position: absolute;
  right: 20px;
  top: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-cerrar:hover {
  color: var(--primary-color);
}

#modalImagen {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin-bottom: 15px;
}

.modal-info {
  padding: 0 15px;
}

.btn-modal {
  margin-top: 20px;
  background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-galeria {
    height: 50vh;
    min-height: 300px;
  }
  
  .carrusel-slide img {
    height: 350px;
  }
  
  .galeria-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .carrusel-slide img {
    height: 250px;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  
  .carrusel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}