/* ======================================
   🎠 CARRUSEL DE IMÁGENES RESPONSIVO
====================================== */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .carousel-item {
    min-width: 50%;
  }
}
@media (min-width: 768px) {
  .carousel-item {
    min-width: 33.33%;
  }
}
@media (min-width: 1024px) {
  .carousel-item {
    min-width: 25%;
  }
}

.carousel-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.carousel-img:hover {
  transform: scale(1.03);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-prev {
  left: 15px;
}
.carousel-next {
  right: 15px;
}

/* ======================================
   🔍 LIGHTBOX PARA IMÁGENES
====================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

/* ======================================
   💧 MARCA DE AGUA & FOOTER
====================================== */
.marca-agua {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
  color: #666;
  font-size: 0.7em;
  z-index: 1000;
  text-align: left;
}

footer {
  text-align: center;
  bottom: 20px;
  font-size: 0.9em;
  color: white;
}
galeria {
  text-align: center;
  bottom: 20px;
  font-size: 0.9em;
   color: white; 
}
galeria2 {
  text-align: center;
  bottom: 20px;
  font-size: 0.9em;
  color: white;
}
/* ======================================
   🎞️ SLIDER DE FONDOS CON FADE
====================================== */
.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.slider-image.active {
  opacity: 1;
  z-index: 5;
}
