/*Loader general de la app*/
.loader_container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #1a457f;
    z-index: 991;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #0C2863;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: #0063BE;
    width: 16px;
    height: 16px;
    transform: translate(-50%, 50%);
    border-radius: 50%;
}

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

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

/*Loader sala de espera*/
.waiting_time {
    box-sizing: border-box;
    display: inline-block;
    width: 50px;
    height: 80px;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
    position: relative;
    background: linear-gradient(#e5b905 30px, transparent 0) no-repeat;
    background-size: 2px 40px;
    background-position: 50% 0px;
    animation: spinx 5s linear infinite;
}

.waiting_time:before,
.waiting_time:after {
    content: "";
    width: 40px;
    left: 50%;
    height: 35px;
    position: absolute;
    top: 0;
    transform: translatex(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 20px 20px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0 0px;
    animation: lqt 5s linear infinite;
}

.waiting_time:after {
    top: auto;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    animation: lqb 5s linear infinite;
}

@keyframes lqt {

    0%,
    100% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% 0px;
    }

    50% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% 40px;
    }

    50.1% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% -40px;
    }
}

@keyframes lqb {
    0% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0 40px;
    }

    100% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0 -40px;
    }
}

@keyframes spinx {

    0%,
    49% {
        transform: rotate(0deg);
        background-position: 50% 36px;
    }

    51%,
    98% {
        transform: rotate(180deg);
        background-position: 50% 4px;
    }

    100% {
        transform: rotate(360deg);
        background-position: 50% 36px;
    }
}


.logo_text {
    display: flex;
    flex-direction: column;
    flex: auto;
    align-items: center;
    justify-content: start;
}

footer {
    background-color: #f8f9fa;
    padding: 25px !important;
}

footer p {
    margin: 0;
    color: #6c757d;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

.footer_copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    max-width: 170px;
    align-items: center;
    margin: 0 auto;
    gap: 20px;

}

.row.mb-4.px-3.text-center {
    display: flex;
    width: 184.724px;
    height: 59.487px;
    padding: 12.056px 16.105px 9.716px 0px;
    align-items: center;
}

.col-6.d-flex.justify-content-center.align-items-center.mb-2:nth-child(1) {
    display: flex;
    align-items: center;
}

.col-6.d-flex.justify-content-center.align-items-center.mb-2:nth-child(2) {
    display: flex;
    width: 64.967px;
    height: 39.136px;
    justify-content: center;
    align-items: center;
}

footer a:hover {
    text-decoration: underline;
    color: #0074BE;
}

.footer-title {
    font-family: "Trebuchet MS";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
    color: var(--Primary-borgoa-500, #870051);
    text-align: left;
}

.footer-paragraph {
    font-family: "Trebuchet MS";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 142.857% */
    color: var(--Text-500, #58585B);
    text-align: left;
}

.ref-med {
    color: var(--Text-600, #BEBEC0);
    text-align: center;
    font-family: "Trebuchet MS";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Asegúrate de que el contenedor tenga una altura definida */
    text-align: center;
}

.logos_footer {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0px;
}

#btnArriba {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    display: block;
    /* Oculto al inicio */
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000000000;
}

.texto_terminos {
    color: #003E66;
    text-align: center;

    /* párrafo small/regular */
    font-family: "Trebuchet MS";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
}

.copyright {
    color: var(--Text-500, #58585B);
    text-align: center;
    font-family: "Trebuchet MS";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

.codigo {
    color: var(--Text-600, #BEBEC0);
    text-align: center;
    font-family: "Trebuchet MS";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

.terminos_mobil {
    display: flex !important;
    justify-content: center;
    margin-bottom: 30px;
}

.terminos_desktop {
    display: none !important;
}

.farmacovigilancia_mobil {
    display: flex !important;
    justify-content: center;
    margin-bottom: 30px;
}

.farmacovigilancia_desktop {
    display: none !important;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: normal;
    margin-bottom: 50px;
    width: 100%;
    flex-direction: column-reverse;
}

.header-main #logo {
    width: 280px;
    max-width: 100%;
    flex-shrink: 0;
    margin-top: -70px;
}

.user {
    display: flex;
    justify-content: flex-end;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    footer {
        padding: 10px 49px !important;
    }

    .logos_footer {
        padding: 20px 0px;
    }

    .footer_copy {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        align-items: center;
        margin: 0 auto;
        margin-bottom: 50px;
        gap: 20px;

    }

    .terminos_mobil {
        display: none !important;
    }

    .terminos_desktop {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .farmacovigilancia_mobil {
        display: none !important;
    }

    .farmacovigilancia_desktop {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        margin-top: 30px;
    }

    .header-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 50px;
        width: 100%;
        flex-direction: row;
    }

    .header-main #logo {
        width: 280px;
        max-width: 100%;
        flex-shrink: 0;
        margin-top: 0px;
    }

}
