/* ===========================
   CONTENEDOR OSCURECIDO
   =========================== */
.popup-container {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); /* Fondo oscuro */
  overflow: auto;
}

/* ===========================
   CONTENIDO DEL POPUP
   =========================== */
.popup-content {
  position: relative;
  margin: 5% auto;           /* Centrado vertical y horizontal */
  padding: 20px;
  max-width: 1000px;         /* Ancho máximo del popup */
  width: 90%;                /* Responsivo */
  max-height: 80vh;          /* Limita la altura visible */
  background-color: #fff;
  border-radius: 8px;
  overflow: auto;            /* Scroll si el contenido sobrepasa */
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: popupFadeIn 0.4s ease;
}

/* Imágenes dentro del popup */
.popup-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===========================
   BOTÓN DE CIERRE
   =========================== */
.close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 36px;
  color: #fff;
  background: #000;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  border: 3px solid #fff;
  border-radius: 50%;
  padding: 4px 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  z-index: 10001;
}

.close:hover {
  transform: scale(1.2);
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* ===========================
   ANIMACIÓN
   =========================== */
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
