/**
 * ESTILOS DEL POPUP (SOLO IMAGEN) - AZAHARES DE ESCOBAR
 * Popup rectangular que muestra una imagen creada por marketing.
 */

/* Overlay de fondo */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.popup-visible {
  opacity: 1;
}

/* Container - solo imagen */
.popup-container.popup-imagen-only {
  max-width: 600px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}

/* Imagen clickeable - ocupa todo el popup */
.popup-imagen-only a {
  display: block;
  line-height: 0;
}

.popup-imagen-only img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Botón cerrar (X) - sobre la imagen */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  opacity: 0.8;
}

.popup-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .popup-container.popup-imagen-only {
    max-width: 92%;
  }
}

/* Animación de entrada */
@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-visible .popup-container.popup-imagen-only {
  animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
