/* ============================================================
   GALLERY-01 — Tira de fotos paginada con 3 filas
   Inspirado en álbum fotográfico horizontal
   ============================================================ */

.gallery-strip-section {
  padding: 80px 0 60px;
  background: var(--background);
  overflow: hidden;
}

.gallery-strip-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.gallery-strip-header {
  text-align: center;
  margin-bottom: 36px;
}

.gallery-sub {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-title {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--secondary);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.gallery-title-accent {
  color: var(--primary);
}

/* ── Slider Pages ── */
.gallery-slider {
  position: relative;
  overflow: hidden;
}

.gallery-page {
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: galleryFadeIn 0.4s ease;
}

.gallery-page.active {
  display: flex;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cada fila de fotos ── */
.gallery-row {
  display: flex;
  gap: 6px;
  height: 148px;
}

/* ── Miniaturas ── */
.gallery-thumb {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-width: 0;
}

.gallery-thumb--wide {
  flex: 1.65;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-thumb:hover {
  opacity: 0.92;
}

/* ── Paginación ── */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.gallery-dot.active {
  background: var(--primary);
  width: 38px;
}

.gallery-next-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--textSecondary);
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  padding: 0;
}

.gallery-next-btn:hover {
  color: var(--primary);
}

.gallery-next-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Tagline footer ── */
.gallery-tagline {
  text-align: center;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-tagline strong {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-tagline span {
  font-size: 0.88rem;
  color: var(--textSecondary);
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--secondary) 60%, transparent);
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.8rem;
  color: var(--primary-text, var(--bg));
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.gallery-lightbox-close:hover {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .gallery-row {
    height: 120px;
    gap: 5px;
  }
  .gallery-strip-container {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .gallery-strip-section {
    padding: 56px 0 48px;
  }
  .gallery-row {
    height: 80px;
    gap: 4px;
  }
  .gallery-row:nth-child(3) {
    display: none;
  }
  .gallery-thumb {
    flex: 1;
    border-radius: 6px;
  }
  .gallery-thumb--wide {
    flex: 1.5;
  }
  .gallery-title {
    font-size: 1.4rem;
  }
  .gallery-dot { width: 18px; height: 4px; }
  .gallery-dot.active { width: 26px; }
}