/* ============================================================
   NOTIFICATION — Modal de alerta / confirmación centrado
   ============================================================ */

/* ── Backdrop ────────────────────────────────────────────── */
.notification-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 100000;
    animation: notifFadeIn 0.18s ease;
}

/* ── Modal ───────────────────────────────────────────────── */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem 2.25rem 1.75rem;
    border-radius: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    z-index: 100001;
    text-align: center;
    width: min(420px, 90vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.06);
    animation: notifPopIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ── Variantes ───────────────────────────────────────────── */
.notification.success {
    background: #0f2a4a;
    border-top: 3px solid #2563eb;
    color: #fff;
}

.notification.error {
    background: #2d0a0a;
    border-top: 3px solid #ef4444;
    color: #fff;
}

.notification.warning {
    background: #1a1612;
    border-top: 3px solid #f59e0b;
    color: #fff;
}

.notification.info {
    background: #0f2a4a;
    border-top: 3px solid #3b82f6;
    color: #fff;
}

/* ── Ícono ───────────────────────────────────────────────── */
.notification-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.notification.success .notification-icon { color: #60a5fa; }
.notification.error   .notification-icon { color: #f87171; }
.notification.warning .notification-icon { color: #fbbf24; }
.notification.info    .notification-icon { color: #60a5fa; }

/* ── Mensaje ─────────────────────────────────────────────── */
.notification p {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ── Botones ─────────────────────────────────────────────── */
.notification-btns {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.notification button {
    padding: 0.45rem 1.6rem;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
    border: 1px solid transparent;
    line-height: 1.5;
}

/* Aceptar — color del tipo de notificación */
.notification.success .btn-accept { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.notification.success .btn-accept:hover { background: #1d4ed8; }

.notification.error .btn-accept { background: #ef4444; color: #fff; border-color: #dc2626; }
.notification.error .btn-accept:hover { background: #dc2626; }

.notification.info .btn-accept { background: #3b82f6; color: #fff; border-color: #2563eb; }
.notification.info .btn-accept:hover { background: #2563eb; }

.notification.warning .btn-accept { background: #f59e0b; color: #000; border-color: #d97706; }
.notification.warning .btn-accept:hover { background: #d97706; }

/* Confirmar — siempre rojo (acción destructiva) */
.notification .btn-confirm {
    background: #ef4444;
    color: #fff;
    border-color: #dc2626;
}
.notification .btn-confirm:hover {
    background: #dc2626;
    border-color: #b91c1c;
}

/* Toda la serie — naranja para diferenciar del rojo de "solo esta" */
.notification .btn-confirm-danger {
    background: #f97316;
    border-color: #ea580c;
}
.notification .btn-confirm-danger:hover {
    background: #ea580c;
    border-color: #c2410c;
}

/* Cancelar — ghost neutro */
.notification .btn-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}
.notification .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes notifFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes notifPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.93); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
