/* HUPI PLACAS · Centro de notificaciones */
.hupi-toast-stack{position:fixed;top:74px;right:16px;width:min(390px,calc(100vw - 32px));z-index:2050;pointer-events:none}
.hupi-toast{position:relative;pointer-events:auto;display:flex;gap:11px;align-items:flex-start;background:#f0faf3;color:#17492b;border-radius:9px;padding:13px 36px 13px 13px;margin-bottom:9px;border-left:4px solid #198754;box-shadow:0 10px 32px rgba(0,0,0,.21);font-size:13px;animation:hupi-slide .2s ease-out}
.hupi-toast .hupi-toast-icon{color:#198754;font-size:17px;margin-top:1px}
.hupi-toast strong{display:block;font-size:13px}.hupi-toast p{margin:2px 0 0;overflow-wrap:anywhere}
.hupi-toast-body{min-width:0;flex:1}.hupi-toast-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.hupi-toast-actions .btn{font-size:11px;padding:3px 8px;background:#fff}
.hupi-toast button{position:absolute;right:9px;top:6px;border:0;background:transparent;color:#666;font-size:20px;cursor:pointer}
/* Semántica única para las notificaciones en todos los módulos. */
.hupi-toast.is-success{background:#f0faf3;color:#17492b;border-left-color:#198754}
.hupi-toast.is-success .hupi-toast-icon{color:#198754}
.hupi-toast.is-info{background:#eef5ff;color:#1e467a;border-left-color:#2574bf}
.hupi-toast.is-info .hupi-toast-icon{color:#2574bf}
.hupi-toast.is-warning{background:#fff9e8;color:#74520b;border-left-color:#d99a19}
.hupi-toast.is-warning .hupi-toast-icon{color:#b87d00}
.hupi-toast.is-danger{background:#fff1f1;color:#792020;border-left-color:#d71920}
.hupi-toast.is-danger .hupi-toast-icon{color:#d71920}
.hupi-dialog .modal-content{border:0;border-top:4px solid #d71920;border-radius:10px;overflow:hidden;box-shadow:0 22px 70px #0004}
.hupi-dialog .modal-header{background:#171717;color:#fff;align-items:center;padding:13px 17px;border-bottom:0}
.hupi-dialog .modal-header .close{color:#fff;opacity:.9;text-shadow:none}
.hupi-dialog .modal-body{padding:22px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.hupi-dialog .modal-footer{background:#fafafa;border-top:1px solid #eee}
.hupi-dialog-title{font-weight:700;font-size:15px;margin:0}
.hupi-dialog-text{white-space:pre-wrap;margin-bottom:13px}
.hupi-dialog-tip{padding:12px;border-radius:6px;background:#f5f5f5;border-left:3px solid #d71920;font-size:12px;color:#555}
@keyframes hupi-slide{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:576px){.hupi-toast-stack{top:60px;right:8px;width:calc(100vw - 16px)}.hupi-dialog .modal-body{padding:15px}}

/* Los diálogos positivos también deben identificarse en verde. */
.hupi-dialog.is-success .modal-content{border-top-color:#198754}
.hupi-dialog.is-success .hupi-dialog-tip{border-left-color:#198754}
.hupi-dialog.is-warning .modal-content{border-top-color:#d99a19}
.hupi-dialog.is-warning .hupi-dialog-tip{border-left-color:#d99a19}
.hupi-dialog.is-info .modal-content{border-top-color:#2574bf}
.hupi-dialog.is-info .hupi-dialog-tip{border-left-color:#2574bf}
