.custom-modal-alert-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 41, 59, 0.18);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInBackdrop 0.3s;
}
.custom-modal-alert {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.13);
    min-width: 340px;
    max-width: 380px;
    padding: 36px 32px 28px 32px;
    text-align: center;
    position: relative;
    animation: fadeInScale 0.4s;
}
.custom-modal-alert .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
}
.custom-modal-alert .close-btn:hover {
    color: #222;
}
.custom-modal-alert .modal-icon {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}
.custom-modal-alert .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}
.custom-modal-alert .modal-desc {
    font-size: 1.01rem;
    color: #555;
    margin-bottom: 18px;
}
.custom-modal-alert .modal-action {
    margin-top: 8px;
}
.custom-modal-alert .btn-modal-success {
    background: #43e97b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.custom-modal-alert .btn-modal-success:hover {
    background: #2ecc71;
}
.custom-modal-alert .btn-modal-error {
    background: #ff1744;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.custom-modal-alert .btn-modal-error:hover {
    background: #d50000;
}

/* Estilos para confirmaciones (dos botones) */
.custom-modal-alert .modal-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.custom-modal-alert .btn-modal-cancel {
    background: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    cursor: pointer;
}

.custom-modal-alert .btn-modal-cancel:hover {
    background: #d0d0d0;
    color: #555;
}

.custom-modal-alert .btn-modal-confirm {
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    cursor: pointer;
}

.custom-modal-alert .btn-modal-confirm:hover {
    background: #f57c00;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85);}
    to { opacity: 1; transform: scale(1);}
}
@keyframes fadeInBackdrop {
    from { opacity: 0;}
    to { opacity: 1;}
}