.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box {
    padding: 2rem;
    max-width: 320px;
}

.loader-spinner-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-elisalud {
    position: absolute;
    inset: 0;
    width: 120px;
    height: 120px;
    border: 5px solid rgba(32, 201, 151, 0.18);
    border-top: 5px solid #20c997;
    border-radius: 50%;
    box-sizing: border-box;
    animation: spinLoader 0.9s linear infinite;
}

.loader-logo-wrapper {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(32, 201, 151, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    /* animation: pulseLogo 1.8s infinite ease-in-out; */
}

.loader-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
}

.loader-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1px;
}

.loader-text {
    color: #64748b;
    font-size: 0.98rem;
    font-weight: 500;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(32, 201, 151, 0.18);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 14px 36px rgba(32, 201, 151, 0.28);
    }
}