/* Notificaciones tipo toast: mensajes del sistema (sitio público y panel admin). */
.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}
.app-toast {
  --toast-accent: #2f7d4f;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem .9rem .95rem 1rem;
  background: #fffaf2;
  color: #2b1f14;
  border: 1px solid rgba(43, 31, 20, .12);
  border-left: 5px solid var(--toast-accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 12, 6, .28);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .92rem;
  line-height: 1.45;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .25s ease, transform .25s ease;
}
.app-toast.is-visible { opacity: 1; transform: none; }
.app-toast.is-leaving { opacity: 0; transform: translateX(24px); }
.app-toast--success { --toast-accent: #2f7d4f; }
.app-toast--error   { --toast-accent: #b3261e; }
.app-toast--warning { --toast-accent: #c07a12; }
.app-toast--info    { --toast-accent: #2a6f97; }
.app-toast__icon { flex: 0 0 auto; font-size: 1.25rem; line-height: 1.2; color: var(--toast-accent); }
.app-toast__body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.app-toast__title { display: block; font-weight: 700; margin-bottom: .1rem; }
.app-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: inherit;
  opacity: .55;
  font-size: 1.1rem;
  line-height: 1;
  padding: .1rem .2rem;
  cursor: pointer;
}
.app-toast__close:hover, .app-toast__close:focus-visible { opacity: 1; }
.app-toast__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--toast-accent);
  opacity: .55;
  transform-origin: left;
  animation: toast-countdown var(--toast-time, 5s) linear forwards;
}
.app-toast:hover .app-toast__bar { animation-play-state: paused; }
@keyframes toast-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 575.98px) {
  .toast-stack { top: .75rem; right: .75rem; left: .75rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .app-toast { transition: none; transform: none; }
  .app-toast__bar { animation: none; display: none; }
}
