/* HERO */
.hero-galeria {
  height: 70vh;
  background: url("../images/hero/image.webp") bottom/cover no-repeat fixed;
  position: relative;
}
.hero-galeria .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}

/* FILTROS */
.btn-filter {
  margin: 5px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid #ffc107;
  color: #333;
  background: white;
  font-weight: 600;
  transition: all .3s;
}
.btn-filter:hover,
.btn-filter.active {
  background: #ffc107;
  color: #000;
}

/* GRID IMÁGENES */
.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.galeria-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover .galeria-img {
  transform: scale(1.08);
}

/* OVERLAY */
.galeria-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: .4s ease;
}
.galeria-item:hover .galeria-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Animación fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: all .8s ease-out;
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}



/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 9999;
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 45px;
  color: white;
  cursor: pointer;
  user-select: none;
}
