/* Sección Galería */
.gallery-section {
  margin-bottom: 40px;
  padding: 0 10px;
}

/* Galería de imágenes */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 0px;
  /*box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);*/
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3);
}

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

.image-description {
  position: absolute;
  top: 5px;
  left: 5px;
  /*background-color: rgba(0, 0, 0, 0.5);*/
  color: white;
  padding: 5px 10px;
  /*border-radius: 5px;*/
  font-size: 22px;
  max-width: 80%;
}


/*CARROUSEL NOVEDADES*/
.gallery-carousel {
  position: relative;
  overflow: hidden;
  height: 350px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 50px;
	
}

.gallery-carousel .carousel-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px;
}

.gallery-carousel .gallery-item {
  /*min-width: 200px;*/
  width: auto;
  height: 300px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-carousel .gallery-item img {
  height: 100%;
  /*border-radius: 8px;*/
  display: block;
}

.gallery-carousel .image-description {
  text-align: center;
  margin-top: 5px;
  font-weight: bold;
}

.gallery-carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /*background: rgba(0, 0, 0, 0.5);*/
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.gallery-carousel .arrow:hover {
  font-size: 32px;
	transition-duration: 0.2;
}

.gallery-carousel .arrow.left {
  left: 0;
}

.gallery-carousel .arrow.right {
  right: 0;
}


/*CARROUSEL AMBIENTES*/
.gallery-carousel-ambientes {
  position: relative;
  overflow: hidden;
  height: 350px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.gallery-carousel-ambientes .carousel-track-ambientes {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px;
}

.gallery-carousel-ambientes .gallery-item-ambientes {
  /*min-width: 200px;*/
  width: auto;
  height: 300px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-carousel-ambientes .gallery-item-ambientes img {
  height: 100%;
  /*border-radius: 8px;*/
  display: block;
}

.gallery-carousel-ambientes .flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.gallery-carousel-ambientes .flecha:hover {
  font-size: 32px;
  transition-duration: 0.2;
}

.gallery-carousel-ambientes .flecha.left {
  left: 0;
}

.gallery-carousel-ambientes .flecha.right {
  right: 0;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
}

/* Responsive */
@media (max-width: 1024px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
}
