/* =====================================================
   GALERÍA · Eco Destinos
   (la barra y el pie de página usan los estilos de style.css)
   ===================================================== */

body { background: rgb(238, 241, 235); }

/* Enlace de la página actual en la barra */
.menu li a.activo { color: rgb(167, 201, 87); }

/* ---------- Portada ---------- */
.galeria-portada {
  text-align: center;
  padding: 70px 8% 55px;
  color: rgb(244, 241, 232);
  background: linear-gradient(135deg, #16321f, #294b30);
  border-bottom: 8px solid rgb(167, 201, 87);
}
.galeria-etiqueta {
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: bold;
  color: #cfe4b1;
}
.galeria-portada h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15;
  margin: 12px 0 16px;
}
.galeria-portada h1 span { color: rgb(167, 201, 87); font-style: italic; }
.galeria-bajada { max-width: 650px; margin: 0 auto 18px; font-size: 18px; line-height: 1.6; }
.galeria-total { font-size: 15px; color: #cfe4b1; }
.galeria-total strong { color: rgb(167, 201, 87); font-size: 18px; }

/* ---------- Cuadrícula ---------- */
.galeria-contenido { max-width: 1300px; margin: 0 auto; padding: 25px 5% 60px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.foto {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #1c3a26;
  box-shadow: 0 5px 18px rgba(23, 56, 35, 0.18);
}
.foto[hidden] { display: none; }

.foto-boton {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.foto img, .foto video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.foto video { background: #000; }
.foto:hover img { transform: scale(1.06); }


/* ---------- Visor (foto ampliada) ---------- */
.visor {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 15, 0.95);
}
.visor[hidden] { display: none; }
.visor-figura { max-width: 88vw; text-align: center; }
.visor-figura img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.visor-figura figcaption { margin-top: 14px; color: rgb(244, 241, 232); font-size: 16px; font-weight: 600; }
.visor-numero { margin-left: 0; color: rgb(167, 201, 87); font-weight: 400; font-size: 14px; }

.visor-cerrar, .visor-flecha {
  position: absolute;
  border: none;
  cursor: pointer;
  color: rgb(244, 241, 232);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 26px;
  line-height: 1;
  transition: background 0.2s;
}
.visor-cerrar:hover, .visor-flecha:hover { background: rgb(167, 201, 87); color: rgb(22, 50, 31); }
.visor-cerrar { top: 18px; right: 18px; font-size: 20px; }
.visor-flecha { top: 50%; transform: translateY(-50%); font-size: 34px; padding-bottom: 4px; }
.visor-ant { left: 18px; }
.visor-sig { right: 18px; }

/* ---------- Tableta y celular ---------- */
@media (max-width: 900px) {
  .galeria-portada { padding: 50px 6% 40px; }
}
@media (max-width: 600px) {
  .galeria-bajada { font-size: 16px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .foto { border-radius: 10px; }
  .visor-flecha { width: 40px; height: 40px; top: auto; bottom: 22px; transform: none; }
  .visor-figura img { max-height: 70vh; }
}
