/* Popup de mensajes personalizado */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Cuando está dentro de un dialog */
dialog .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  transform: none;
}

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

.popup-container {
  background: linear-gradient(145deg, #1a1f3c 0%, #0d1025 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(99, 102, 241, 0.1);
}

.popup-overlay.active .popup-container {
  transform: scale(1) translateY(0);
}

.popup-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.popup-message {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.popup-btn {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 0.8rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.popup-btn:hover {
  background: linear-gradient(135deg, #7c7ff5 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.popup-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .popup-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .popup-title {
    font-size: 1.2rem;
  }
  
  .popup-message {
    font-size: 0.95rem;
  }
}
