/*
 * PaginaSalud Pro — SweetAlert2
 * Apariencia compartida para alertas de error, advertencia, información y éxito.
 */

body:not(.swal2-toast-shown) > .swal2-container.swal2-shown {
    background-color: rgba(15, 35, 62, 0.38) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.swal2-popup.ps-swal:not(.swal2-toast) {
    width: 28.75rem;
    max-width: calc(100% - 2rem);
    min-height: 17.5rem;
    padding: 1.625rem 2rem 1.75rem;
    border: 1px solid rgba(15, 35, 62, 0.04);
    border-radius: 0.625rem;
    background: #ffffff;
    box-shadow: 0 1.25rem 3.75rem rgba(15, 35, 62, 0.16);
    color: #13243d;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-header {
    width: 100%;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-icon {
    width: 4.375rem;
    height: 4.375rem;
    margin: 0 auto 1.125rem;
    border: 0 !important;
    border-radius: 50%;
    box-sizing: border-box;
    line-height: 1;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-title {
    margin: 0 0 0.5rem;
    padding: 0 2rem;
    color: #13243d;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-content {
    width: 100%;
    color: #53657f;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
}

.swal2-popup.ps-swal:not(.swal2-toast) #swal2-content {
    max-width: 21rem;
    margin: 0 auto;
    color: inherit;
    line-height: inherit;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-actions {
    gap: 0.75rem;
    margin: 1.375rem auto 0;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled {
    min-width: 7.75rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.3125rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled:hover {
    background-image: none;
    transform: translateY(-1px);
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled:active {
    background-image: none;
    transform: translateY(0);
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-confirm {
    order: 2;
    border-color: #2f80ed !important;
    background: #2f80ed !important;
    color: #ffffff !important;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-cancel {
    order: 1;
    border-color: #2f80ed !important;
    background: #ffffff !important;
    color: #2f80ed !important;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-close {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    top: 0.75rem;
    right: 0.875rem;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    color: #6b7d96;
    font-size: 0 !important;
    line-height: 1;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-close::before {
    content: "\00d7";
    font-family: Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
}

.swal2-popup.ps-swal:not(.swal2-toast) .swal2-close:hover,
.swal2-popup.ps-swal:not(.swal2-toast) .swal2-close:focus {
    background: #f2f5f8;
    color: #13243d;
    outline: none;
}

/* Error */
.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-icon.swal2-error {
    background: #ffe7e7;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-icon.swal2-error .swal2-x-mark {
    display: none !important;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-icon.swal2-error::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.125rem;
    height: 2.125rem;
    border: 0.125rem solid #ef2b2d;
    border-radius: 50%;
    content: "";
    box-sizing: border-box;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-icon.swal2-error::after {
    position: absolute;
    top: 1.22rem;
    left: 0;
    width: 100%;
    color: #ef2b2d;
    content: "!";
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-confirm {
    border-color: #ef2b2d !important;
    background: #ef2b2d !important;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-cancel {
    border-color: #ef2b2d !important;
    color: #ef2b2d !important;
}

.swal2-popup.ps-swal--error:not(.swal2-toast) .swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(239, 43, 45, 0.18);
}

/* Advertencia y pregunta */
.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-warning,
.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-question {
    background: #fff1d6;
}

.swal2-popup.ps-swal--warning.ps-swal--fallback-icon:not(.swal2-toast) .swal2-icon.swal2-warning {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-warning::before,
.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-question::before {
    position: absolute;
    top: 0.95rem;
    left: 0.9rem;
    width: 2.575rem;
    height: 2.35rem;
    background: #f6a50d;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-warning::after,
.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon.swal2-question::after {
    position: absolute;
    top: 1.28rem;
    left: 1.13rem;
    width: 2.125rem;
    height: 1.85rem;
    background: #fff1d6;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-icon-text {
    position: relative;
    z-index: 2;
    color: #f6a50d;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-confirm {
    border-color: #f6a50d !important;
    background: #f6a50d !important;
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-cancel {
    border-color: #f6a50d !important;
    color: #e99300 !important;
}

.swal2-popup.ps-swal--warning:not(.swal2-toast) .swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(246, 165, 13, 0.2);
}

/* Información */
.swal2-popup.ps-swal--info:not(.swal2-toast) .swal2-icon.swal2-info {
    background: #e5f0ff;
}

.swal2-popup.ps-swal--info.ps-swal--fallback-icon:not(.swal2-toast) .swal2-icon.swal2-info {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.swal2-popup.ps-swal--info:not(.swal2-toast) .swal2-icon.swal2-info::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.125rem;
    height: 2.125rem;
    border: 0.125rem solid #2f80ed;
    border-radius: 50%;
    content: "";
    box-sizing: border-box;
}

.swal2-popup.ps-swal--info:not(.swal2-toast) .swal2-icon-text {
    position: relative;
    z-index: 1;
    color: #2f80ed;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

/* Éxito */
.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-icon.swal2-success {
    background: #e4f6e9;
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-icon.swal2-success > * {
    display: none !important;
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-icon.swal2-success::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.125rem;
    height: 2.125rem;
    border: 0.125rem solid #28a745;
    border-radius: 50%;
    content: "";
    box-sizing: border-box;
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-icon.swal2-success::after {
    position: absolute;
    top: 1.35rem;
    left: 1.76rem;
    width: 0.625rem;
    height: 1.125rem;
    border: solid #28a745;
    border-width: 0 0.1875rem 0.1875rem 0;
    content: "";
    transform: rotate(45deg);
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-confirm {
    border-color: #28a745 !important;
    background: #28a745 !important;
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-cancel {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.swal2-popup.ps-swal--success:not(.swal2-toast) .swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.18);
}

@media (max-width: 36rem) {
    .swal2-popup.ps-swal:not(.swal2-toast) {
        min-height: 0;
        padding: 1.5rem 1.25rem;
    }

    .swal2-popup.ps-swal:not(.swal2-toast) .swal2-title {
        padding: 0 1.5rem;
        font-size: 1.125rem;
    }

    .swal2-popup.ps-swal:not(.swal2-toast) .swal2-actions {
        width: 100%;
    }

    .swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled {
        flex: 1 1 7rem;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swal2-popup.ps-swal:not(.swal2-toast),
    .swal2-popup.ps-swal:not(.swal2-toast) .swal2-styled {
        animation: none !important;
        transition: none !important;
    }
}
