#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  position: relative;
  background: #fff;
  color: #111;
  min-width: 240px;
  padding: 14px 18px 14px 22px; /* un poco más a la izquierda por la línea */
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transform: translateX(120%);
  animation: slideIn 0.4s ease forwards;
}

/* Línea de color */
.toast::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 8px; /* 👈 AQUÍ el cambio */
  width: 4px;
  height: calc(100% - 20px);
  border-radius: 6px;
}
.toast.success::after {
  background: #22c55e;
}

.toast.error::after {
  background: #ef4444;
}
.toast.hide {
  animation: slideOut 0.4s ease forwards;
}

/* Entrada */
@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Salida */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}