/* ===== Header de página (Galería) ===== */
.rq-page-hero {
  padding: 150px 24px 64px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-glow) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line);
}
.rq-page-hero-eyebrow { margin: 0 0 16px; color: var(--accent); }
.rq-page-hero-title { margin: 0 auto; max-width: 640px; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(32px, 5vw, 52px); color: var(--text); }
.rq-page-hero-copy { margin: 18px auto 0; max-width: 520px; color: var(--text-dim); font-size: 15px; line-height: 1.8; }

/* ===== Grid de galería, estilo IG ===== */
.rq-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--line);
}
.rq-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.rq-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.rq-gallery-item:hover img { transform: scale(1.06); }
.rq-gallery-item-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(6, 5, 8, 0.88) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  text-align: left;
}
.rq-gallery-item:hover .rq-gallery-item-caption,
.rq-gallery-item:focus-visible .rq-gallery-item-caption { opacity: 1; }
.rq-gallery-item-caption p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.rq-gallery-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===== Lightbox ===== */
.rq-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(6, 5, 8, 0.94);
}
.rq-lightbox.is-open { display: flex; }
.rq-lightbox-figure { max-width: 900px; max-height: 100%; display: flex; flex-direction: column; gap: 16px; }
.rq-lightbox-figure img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; border: 1px solid var(--line); }
.rq-lightbox-figure figcaption { color: var(--text-dim); font-size: 14px; text-align: center; line-height: 1.7; }
.rq-lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.rq-lightbox-close:hover { color: var(--accent); border-color: var(--accent-2-deep); }
