/* Avisos globales: estilos aislados del resto de los modales. */
.mensaje.aviso-overlay {
    position: fixed;
    inset: 0;
    min-width: 0;
    min-height: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
    color: #243247;
}
.aviso-dialog {
    --aviso-accent: #c45d0a;
    --aviso-tint: #fff3e5;
    width: 440px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    text-align: left;
    animation: aviso-entrar .18s ease-out;
}
.aviso-dialog.aviso-error { --aviso-accent: #b45309; --aviso-tint: #fff4df; }
.aviso-dialog.aviso-success { --aviso-accent: #16734b; --aviso-tint: #e8f7ee; }
.aviso-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: var(--aviso-tint); border-bottom: 1px solid #edf0f4; }
.aviso-heading { display: flex; align-items: center; gap: 10px; }
.aviso-brand { color: var(--aviso-accent); font-size: 15px; font-weight: 700; }
.aviso-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #788496; cursor: pointer; }
.aviso-close:hover { background: #f1f4f8; color: #243247; }
.aviso-content { padding: 24px 28px 26px; }
.aviso-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; color: var(--aviso-accent); font-size: 23px; }
.aviso-title { margin: 0; color: var(--aviso-accent); font-size: 18px; font-weight: 700; line-height: 1.3; }
.aviso-message { color: #536176; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.aviso-message .aviso-requisitos { margin: 10px 0 0; padding-left: 22px; }
.aviso-message .aviso-requisitos li { margin-bottom: 5px; }
.aviso-message > :last-child { margin-bottom: 0; }
.aviso-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; background: #f8fafc; border-top: 1px solid #edf0f4; }
.aviso-button { min-height: 42px; min-width: 106px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; }
.aviso-button-primary { background: var(--aviso-accent); color: #fff; }
.aviso-button-primary:hover { background: var(--aviso-accent); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .1); }
.aviso-button-secondary { background: #fff; border-color: #d7dee8; color: #475569; }
.aviso-button-secondary:hover { background: #eef2f6; }
.aviso-button:focus-visible, .aviso-close:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
@keyframes aviso-entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
    .mensaje.aviso-overlay { padding: 16px; }
    .aviso-dialog { max-height: calc(100vh - 32px); border-radius: 14px; }
    .aviso-content { padding: 22px 22px 24px; }
    .aviso-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .aviso-dialog { animation: none; } .aviso-button { transition: none; } }
