/* =========================================================
   ESTILOS PREMIUM PARA POPUP DE OFERTAS FLASH
========================================================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(8px); /* Difumina el fondo de la tienda */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* Por encima de todo el diseño */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Clase activa por JavaScript */
.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background: #0c1426;
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: 16px;
  width: min(500px, 90%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(-30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.popup-overlay.show .popup {
  transform: translateY(0);
}

/* Imagen promocional */
.popup img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popup-content {
  padding: 24px;
  text-align: center;
}

.popup-content h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #00c2ff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.popup-content p {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #d6dde7;
  line-height: 1.6;
}

/* Botonera de acción */
.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-promo {
  display: block;
  background: linear-gradient(135deg, #00c2ff, #0084ff);
  color: #050814;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 194, 255, 0.2);
}

.btn-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 194, 255, 0.35);
}

.btn-close {
  display: block;
  color: #7d93a6;
  padding: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: #fff;
}