/* =====================================================
   ONE ALLIANCE - LOADER CORPORATIVO
   Aro derecha + Logo izquierda
   ===================================================== */


/* =========================================
   LOADER GLOBAL ONE ALLIANCE
   DESKTOP + MOBILE
   ========================================= */

#oa-global-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;

    background: rgba(255,255,255,.78);

    align-items: center;
    justify-content: center;
}

#oa-global-loader.oa-show {
    display: flex;
}


/* Contenedor unico */
.oa-loader-container {
    position: relative;

    width: 130px;
    height: 130px;

    flex: 0 0 130px;
}


/* Aro */
.oa-loader-ring {
    position: absolute;

    top: 0;
    left: 0;

    width: 130px;
    height: 130px;

    box-sizing: border-box;

    border-radius: 50%;

    border: 5px solid rgba(30,60,100,.12);
    border-top-color: #173f7a;
    border-right-color: #2d8bc5;

    animation: oa-ring-spin .9s linear infinite;
}


/* Contenedor del logo */
.oa-loader-logo {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 96px;
    height: 96px;

    transform: translate(-50%, -50%);

    display: block;

    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}


/* Imagen */
.oa-loader-logo img {
    display: block;

    width: 96px;
    height: 96px;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain;

    background: transparent !important;
    border: none !important;

    animation: oa-logo-spin 3s linear infinite reverse;
}


/* Aro hacia derecha */
@keyframes oa-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Logo hacia izquierda */
@keyframes oa-logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   MOBILE
   Solo reducimos todo proporcionalmente
   ========================================= */

@media (max-width: 600px) {

    .oa-loader-container {
        width: 110px;
        height: 110px;

        flex-basis: 110px;
    }

    .oa-loader-ring {
        width: 110px;
        height: 110px;

        border-width: 4px;
    }

    .oa-loader-logo {
        width: 82px;
        height: 82px;
    }

    .oa-loader-logo img {
        width: 82px;
        height: 82px;
    }
}