/* toast.css – versión final y optimizada */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease-out;
  max-width: 90%;
  min-width: 280px;
  text-align: center;
  position: relative;
  pointer-events: auto;
}

/* Estilos por tipo */
.toast.success {
  background-color: #375e65;
  color: #fff;
}

.toast.error {
  background-color: #cf3523;
  color: #fff;
}

.toast.warn {
  background-color: #d57624;
  color: #fff;
}

.toast.info {
  background-color: #b4521a;
  color: #fff;
}

/* Botón de cerrar */
.toast .close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: inherit;
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
