/* 🔹 Fondo oscuro del alert (oculto por defecto) */
.custom-alert {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;               /* ⬅️ Se activa con JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

/* 🔹 Caja del mensaje */
.custom-alert-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease-in-out;
}

/* 🔹 Botón de cerrar (X) */
.close-alert {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.close-alert:hover {
  color: #e74c3c;
}

/* 🔹 Contenido de mensaje con ícono */
.alert-message-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.alert-message-container img {
  width: 40px;
  height: 40px;
}

.alert-message-container p {
  font-size: 16px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

/* 🔹 Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
