/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #111111bd;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal--show {
  opacity: 1;
  pointer-events: auto;
}

.modal__container {
  background-color: #fff;
  border-radius: 8px;
  padding: 2.5em 2em;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  font-family: 'Arial', sans-serif;
}

.modal__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1.5em;
  line-height: 1.2;
}

.modal__label {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: 0.5em;
}

.modal__input {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.modal__button {
  width: 100%;
  padding: 0.75em;
  background-color: #000;
  color: #f5e5c4;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal__button:hover {
  background-color: #333;
}

.modal__register {
  margin-top: 1em;
  font-size: 0.9rem;
}

.modal__register-link {
  color: red;
  text-decoration: none;
  font-weight: bold;
}

.modal__close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: transparent;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.modal__row {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.modal__group {
  flex: 1;
  min-width: 45%;
}

.modal__input {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.modal__login-link {
  color: red;
  text-decoration: none;
  font-weight: bold;
}
.custom-alert {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  margin: 1rem auto;
  width: 100%;
  max-width: 400px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 0.4s ease-in-out;
}

/* Icono */
.custom-alert-icon {
  font-size: 18px;
}

/* Botón de cerrar */
.custom-alert-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-left: auto;
  cursor: pointer;
  transition: transform 0.2s;
}
.custom-alert-close:hover {
  transform: scale(1.2);
}

/* Colores */
.custom-alert.success {
  background-color: #198754; /* verde */
}

.custom-alert.error {
  background-color: #dc3545; /* rojo */
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

