/* Suite A33 — sistema global de notificaciones */
.a33-toast-region {
  position: fixed;
  z-index: 100000;
  top: var(--a33-toast-top, calc(env(safe-area-inset-top, 0px) + 72px));
  right: clamp(12px, 2vw, 26px);
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - var(--a33-toast-top, 72px) - 18px);
  display: grid;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-width: none;
}
.a33-toast-region::-webkit-scrollbar { display: none; }
.a33-global-toast {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(.985);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  box-sizing: border-box;
}
.a33-global-toast.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.a33-global-toast.is-leaving { opacity: 0; transform: translate3d(12px, -4px, 0) scale(.985); }
.a33-global-toast.is-process { background: #1d4ed8; border-color: rgba(147, 197, 253, .58); }
.a33-global-toast.is-success { background: #15803d; border-color: rgba(187, 247, 208, .55); }
.a33-global-toast.is-warning { background: #b45309; border-color: rgba(253, 230, 138, .62); }
.a33-global-toast.is-error { background: #b91c1c; border-color: rgba(254, 202, 202, .58); }
.a33-global-toast__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}
.a33-global-toast.is-process .a33-global-toast__icon { animation: a33-toast-spin 1.1s linear infinite; }
.a33-global-toast__content { min-width: 0; display: grid; gap: 1px; }
.a33-global-toast__content strong,
.a33-global-toast__content span { display: block; min-width: 0; }
.a33-global-toast__content strong { font-size: .74rem; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; opacity: .84; }
.a33-global-toast__content span { font-size: .92rem; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.a33-global-toast__activity { position: absolute; inset: auto 0 0; height: 4px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.a33-global-toast__activity span { display: block; width: 38%; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .92); animation: a33-toast-activity 1.15s ease-in-out infinite; }
@keyframes a33-toast-spin { to { transform: rotate(360deg); } }
@keyframes a33-toast-activity {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(285%); }
}
@media (max-width: 900px) {
  .a33-toast-region { left: 50%; right: auto; width: min(520px, calc(100vw - 24px)); transform: translateX(-50%); }
}
@media (max-width: 620px) {
  .a33-toast-region { width: calc(100vw - 20px); gap: 8px; }
  .a33-global-toast { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 10px 12px; border-radius: 14px; }
  .a33-global-toast__icon { width: 32px; height: 32px; font-size: 1rem; }
  .a33-global-toast__content span { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .a33-global-toast,
  .a33-global-toast__icon,
  .a33-global-toast__activity span { animation: none !important; transition: none !important; }
}
