/* --- Overlay --- */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- Contenedor del popup --- */
#popup {
  position: relative; /* ✅ esto es necesario */
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease;
}

/* --- Animación --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Header y Footer con imágenes --- */
.popup-header img,
.popup-footer img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Contenido central --- */
.popup-content {
  text-align: center;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  font-weight: 800;
  background-color: #00a5a6;
}

.popup-content h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
}

.popup-content p {
  font-size: 1em;
  margin-bottom: 20px;
  color: #fff;
}

.popup-content button {
  background-color: #40175D; /* Botón morado */
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content button:hover {
  background-color: #6b42b3;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;        /* esquina superior izquierda */
  background-color: rgba(0, 0, 0, 0.05); /* fondo semitransparente */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e60000;    /* rojo intenso */
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #ff3333;    /* rojo más claro al pasar el mouse */
  transform: scale(1.1);
}


