/* ═══════════════════════════════════════════════
   BIGROOM — css/galeria.css
═══════════════════════════════════════════════ */

/* ── Sección principal ── */
.gal-section {
  padding: 0 0 96px;
}

/* ── Paneles por sede ── */
.gal-panel {
  display: none;
}

.gal-panel.active {
  display: block;
  animation: mapFadeIn .38s ease;
}

/* ── Grid de imágenes ── */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* ── Item de galería ── */
.gal-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  cursor: pointer;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.gal-item:hover img {
  transform: scale(1.06);
}

/* Overlay con botón de zoom */
.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 30, 32, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-zoom {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.gal-zoom:hover {
  background: rgba(255, 255, 255, .32);
  transform: scale(1.1);
}

.gal-zoom svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

/* ── Panel Próximamente (Alcoy) ── */
.gal-prox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  gap: 16px;
}

.gal-prox-icon svg {
  width: 72px;
  height: 72px;
  stroke: var(--border);
}

.gal-prox-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 99px;
}

.gal-prox h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.gal-prox p {
  color: var(--text-3);
  font-size: .95rem;
  max-width: 340px;
  line-height: 1.7;
  margin: 0;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 22, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  border: none;
}

.lb-close:hover {
  background: rgba(255, 255, 255, .25);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .gal-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
  }

  .gal-prox { padding: 64px 20px; }
  .gal-prox h3 { font-size: 1.5rem; }
}
