/* ============ PHOTO GALLERY ============ */
.photo-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
}
.photo-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: photo-in 0.4s ease;
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.photo-main-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}
.photo-counter {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.photo-zoom-hint {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 28px; line-height: 1;
  font-family: var(--serif);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.photo-nav:hover { background: var(--accent); border-color: var(--accent); color: white; }
.photo-nav-prev { left: 16px; }
.photo-nav-next { right: 16px; }
@media (max-width: 640px) {
  .photo-nav { width: 40px; height: 40px; font-size: 22px; }
}

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.photo-thumb:hover img { opacity: 0.85; }
.photo-thumb.on { border-color: var(--accent); }
.photo-thumb.on img { opacity: 1; }
@media (max-width: 640px) {
  .photo-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  animation: fade-in 0.25s ease;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  animation: photo-in 0.3s ease;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.lightbox-close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px;
  font-size: 36px; line-height: 1;
  font-family: var(--serif);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.16em;
}
@media (max-width: 640px) {
  .lightbox { padding: 20px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ====== HERO SLIM — landing con catálogo adelante ====== */
.hero-slim {
  position: relative;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 30px;
  overflow: hidden;
}
.hero-slim .hero-grid { inset: 0; opacity: 0.5; }
.hero-slim-inner { position: relative; z-index: 1; }
.hero-slim-head { max-width: 820px; }
.hero-slim-title { margin-top: 14px; line-height: 1.04; }
.hero-slim-sub { margin-top: 16px; color: var(--ink-dim); font-size: 15px; max-width: 62ch; }
.hero-slim-search { margin-top: 30px; }
.hero-slim-extra {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
}
/* el catálogo embebido arranca pegado al hero, sin doble padding superior */
.home-catalog .catalog-root { padding-top: 8px; }
.home-catalog .catalog-body { padding-top: 4px; }
@media (max-width: 640px) {
  .hero-slim { padding: 28px 0 22px; }
  .hero-slim-title { margin-top: 10px; }
  .hero-slim-sub { font-size: 14px; }
  .hero-slim-search { margin-top: 22px; }
}
