/**
 * Estilos del Visor Modal (Lightbox) y Panorámicas 360°.
 * Maneja la superposición de imágenes, videos y recorridos esféricos Pannellum.
 */
/* Visor 360 */
.panorama-item {
  position: relative;
}

#panorama-viewer {
  width: 90vw;
  max-width: 1200px;
  height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(216,197,184,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: #000;
}

.panorama-title-float {
  position: absolute;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(20,20,22,0.85);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  pointer-events: none;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.panorama-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(20,20,22,0.95), rgba(20,20,22,0.7) 60%, transparent);
  z-index: 10;
}

.panorama-label-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.panorama-label-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panorama-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(216,197,184,0.12);
  border: 1px solid rgba(216,197,184,0.25);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panorama-badge svg {
  width: 14px;
  height: 14px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,12,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  margin: auto;
}

.lightbox-content iframe {
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30,30,35,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
  background: rgba(50,50,55,0.85);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(20,20,22,0.8);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 10;
}
