/* Sección principal */
.lugar-section-lugar {
  background-color: var(--color5);
  padding: 4rem 2rem;
}

.container-bodas {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.container-bodas p {
  margin: 0;
  line-height: 1.6;
  color: var(--color1);
}

.container-bodas strong {
  color: var(--color1);
}

.bodas-title {
  color: var(--color1);
  margin-bottom: 1rem;
}

/* Galería */
.gallery-bodas {
  background-color: var(--color6);
  padding: 4rem 2rem;
}

.gallery-bodas .title-bodas {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color1);
  font-size: 2rem;
}

/* Masonry layout */
.masonry-gallery {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay al hover */
.gallery-item::after {
  content: "🔍";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  color: #fff;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Lightbox (carga oculto) */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Al abrir, JS cambiará a display:flex. Si alguna hoja lo pisa, usa esta clase de apoyo */
#lightbox.is-open {
  display: flex !important;   /* garantía ante reglas que lo pisen */
}


.close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}


/* VIDEOS */

.videos-bodas {
  background-color: var(--color5);
  padding: 4rem 2rem;
  text-align: center;
}

.container-videos {
  max-width: 1200px;
  margin: 0 auto;
}

.title-bodas {
  font-size: 2rem;
  color: var(--color1);
  margin-bottom: 0.5rem;
}

.subtitle-bodas {
  font-size: 1.2rem;
  color: var(--color2);
  margin-bottom: 2rem;
}

/* Grid de videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-item video,
.video-item iframe {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  object-fit: cover;
}

.youtube-invite {
  margin-top: 2.5rem;
  text-align: center;
}

.youtube-invite p {
  font-size: 1.1rem;
  color: var(--color1);
  margin-bottom: 1rem;
  font-weight: bolder;
}

.btn-youtube {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background-color:var(--color1); /* rojo YouTube */
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-youtube i {
  margin-right: 0.5rem;
}

.btn-youtube:hover {
  background-color: #cc0000;
}

.reviews-banner {

  width: 85.5%;
  margin-top: 3rem;
  background: #f9f9f9; /* fondo suave */
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: left;
  margin:0 auto
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-content i {
  font-size: 3rem;
  color: var(--color1); 
}

.banner-text h3 {
  font-size: 1.4rem;
  color: var(--color1);
  margin-bottom: 0.5rem;
}

.banner-text p {
  font-size: 1rem;
  color: var(--color2);
}

.btn-google {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background-color: var(--color1);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.btn-google:hover {
  background-color:var(--color3);
}



/* Responsive */
@media (max-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-item video,
  .video-item iframe {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .video-item video,
  .video-item iframe {
    height: 200px;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-content i {
    margin-bottom: 1rem;
  }
}


/* Reseñas */
.reviews-bodas {
  background-color: var(--color4);
  padding: 4rem 4rem;
  text-align: center;
}

.reviews-bodas .title-bodas {
  margin-bottom: 2rem;
  color:var(--color2);
  font-size: 2rem;
}

/* BOTON LEER MAS  */
.toggle-review {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--color4);
  padding: 2px 10px;
  border-radius: 5px;
  
  transition: color 0.3s ease;
}

.toggle-review:hover {
  color: var(--color1);
}


/* Carrusel horizontal */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* Carrusel horizontal */
.reviews-carousel {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;

  /* Ocultar barra de scroll */
  scrollbar-width: none; /* Firefox */
}
.reviews-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.card-review {
  flex: 0 0 45%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
  scroll-snap-align: start;
  
}

.avatar-review {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.review-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color1);
  margin-bottom: 0.5rem;
}

.text-review {
  font-size: 0.95rem;
  color: var(--color1);
  margin-bottom: 1rem;
  text-align: left;
}

.shared-photos {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.shared-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}
.shared-img:hover{
  transform:scale(1.1);
  transition: ease-in-out 0.3s;
}

/* Botones carrusel */
.carousel-btn {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 0, 0, 0);  
  border: none;
  font-size: 5rem;
  cursor: pointer;
  padding: 0;
  color:var(--color1);
  
  z-index: 10;
}


.carousel-btn.prev { left: -2rem; }
.carousel-btn.next { right: -2rem; }

/* Responsive */
@media (max-width: 768px) {
  
  .container-bodas,
  .masonry-gallery
  {
    width: 100%;
    padding: 0 1rem;
  }
  .carousel-wrapper{
    width: 90%;
  }
  .carousel-btn.prev { left: -1.2rem; }
  .carousel-btn.next { right: -1.2rem; }

  .masonry-gallery {
    column-count: 2;
  }

  .card-review {
    flex: 0 0 85%;
  }
  .reviews-bodas {
    background-color: var(--color4);
    padding: 4rem 0rem;
  }
  .reviews-banner {
    padding: 2rem;

  }
}
@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}
