/* Base Modal */
.modal {
  display: none; /* Ocultar por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden; /* Previene scroll en la página mientras el modal está abierto */
}

/* Tamaños responsivos para el modal */
.modal-xl {
  width: 90%;
  max-width: 1140px;
}

/* Modal Contenido */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  width: 80%;
  max-width: 90%;
  max-height: 90vh; /* Limita la altura del modal al 90% de la ventana */
  margin: 0 auto; /* Centra horizontalmente */
  overflow-y: auto; /* Habilita scroll interno si el contenido supera la altura */
}

/* Animación de apertura del modal */
.modal.opening .modal-content {
  animation: fadeIn 0.4s ease-out;
}

/* Animación de cierre del modal */
.modal.closing .modal-content {
  animation: fadeOut 0.4s ease-out;
}

/* Keyframes para las animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9); /* Ligero zoom-out */
  }
  to {
    opacity: 1;
    transform: scale(1); /* Tamaño normal */
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1); /* Tamaño normal */
  }
  to {
    opacity: 0;
    transform: scale(0.9); /* Ligero zoom-out */
  }
}

/* Botón para cerrar el modal */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
  color: #ff0000;
  transition: color 0.3s ease; /* Transición suave en hover */
}

.close:hover {
  color: #ff4d4d; /* Cambia a un tono más claro al pasar el mouse */
}

/* Estilos para el texto y mensajes internos */
h2 {
  text-align: center;
  margin-bottom: 10px;
}

.message-container {
  text-align: center;
  padding: 20px;
  background-color: #f4f4f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 1200px;
}

.message {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-transform: capitalize;
}

.message strong {
  color: #007bff;
  font-weight: bold;
}

.message:hover {
  color: #007bff;
  transition: color 0.3s ease-in-out;
}

/* Íconos dentro del contenido */
.alert-content {
  display: flex;
  align-items: center;
}

.icon {
  margin-right: 15px;
}

.icon img {
  width: 32px;
  height: 32px;
}

/* Línea separadora */
hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}
