/**** @name Estilos de general.css 
    * @description Estilos generales de la arquitectura
    * @version 1.0
    * @date 01/Marzo/2024
*****/

.none {
    display: none !important;
}

.center {
    justify-content: center;
    align-items: center;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    float: none;
    --header-width: auto;
}

.container__Header {
    width: 100%;
    position: fixed;
    inset: 0 0 auto auto;
    z-index: 1099;
}

.container__Header header.upaep__container__comp_dft {
    --header-width: 100%;
    --header-height: 60px;
    --header-bg: #E30921;
    --header-float: none;
    --header-position: fixed;
    inset: 0 0 auto auto;
    color: var(--upaep-color-white);
    padding: 1.5rem .5rem;
    text-align: center;
    display: flex;
    align-items: center;

    .upaep__logo_comp_dft {
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;

        #hamb-menu {
            width: 40px;
            cursor: pointer;
        }
    }

    .upaep__center__comp_dft {
        width: 100%;
        display: flex;
        justify-content: end;
        align-items: center;
        padding: 0 0 0 2rem;
        gap: 2rem;
    }

    .upaep__name__comp_dft {
        width: fit-content;
        height: 100%;
        display: flex;
        justify-content: end;
        align-items: center;
        margin: 0rem 1rem;

        #upaep__name__comp__user {
            font-size: var(--upaep-fz15);
            font-weight: var(--upaep-fw-bold);
            margin: 0 0 0 1rem;
            color: var(--upaep-color-white);
            padding: 0px 10px;
            width: max-content;

        }
    }

    .upaep__icons__comp_dft {
        width: fit-content;
        padding: 0px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;

        #icon-logout {
            width: 30px;
            height: 30px;
            background-color: white;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;

            #icon_log {
                width: 70%;
            }
        }
    }
}

#upaep__icon_name__comp__user {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;

    #user_image_upaep {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
    }
}

.container__Header header {
    background-color: #b90114;
    color: #fff;
    padding: 10px;
    text-align: center;
    height: 55px;
    display: flex;
    align-items: center;
}

.container__Header header .upaep__logo_comp_dft {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.container__Header header .upaep__logo_comp_dft #hamb-menu {
    width: 40px;
    cursor: pointer;
}

.container__Header header .upaep__center__comp_dft {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    padding-left: 2rem;
    gap: 2rem;
}

.container__Header header .upaep__name__comp_dft {
    width: fit-content;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.container__Header header .upaep__icons__comp_dft {
    width: fit-content;
    padding: 0px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.container__Header header .upaep__icons__comp_dft #icon-logout {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container__Main {
    transition: padding-left .3s ease;
    padding: 20px 10px 20px 275px;
    margin: 3.5rem 0 0 0;
    min-height: calc(100vh - 130px);

    &:not(:has(.accesosGeneral)) {
        flex: 1;
    }

    &.opened-sidebar {
        padding: 0px 40px 20px 275px;
    }
}

.container__Sidebar {
    .loader_sidebar {
        width: auto;
        position: fixed;
        inset: 10rem auto auto 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.35s ease-in;
        z-index: 9999;
    }

    .sidebar {
        position: fixed;
        overflow-y: auto;
        inset: 0 auto auto 0;
        width: 240px;
        min-height: 100dvh;
        height: 100%;
        background: #4D4D4D;
        padding: 0px .75rem;
        text-align: center;
        box-shadow: 7px 0 60px rgba(0, 0, 0, 0.05);
        transition: width 0.3s ease;
        z-index: 1100;

        .cont-logo {
            height: 60px;
            padding: .5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .cont-logo-upaep {
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: start;
                align-items: center;

                #logo-sidebar {
                    height: 100%;
                    padding: .25rem;
                    cursor: pointer;
                    border-radius: 00px;
                }
            }

            #hamb-menu {
                width: 40px;
                cursor: pointer;
                transition: width 1.5s ease;
            }
        }

        .contenedorInferior {
            position: absolute;
            bottom: 20px;
        }
    }
}

#elementosMenu {
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0rem !important;
    font-size: var(--upaep-fz15) !important;
    font-weight: var(--upaep-fw-bold) !important;
    color: var(--upaep-color-white) !important;
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    text-decoration: none !important;
    gap: .7rem !important;
}

#elementosMenu .item {
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    text-align: start !important;
    padding: 1px 1px !important;
    opacity: 1 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: background 0.3s ease !important;
    border-radius: 0px !important;
}

.item.active {
    border-left: 3px solid #E30921 !important;
    background: #6a6f74 !important;
}

#elementosMenu li img {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
}

#elementosMenu li a {
    text-decoration: none !important;
    color: var(--upaep-color-white) !important;
    font-size: 14px !important;
    font-weight: 300 !important;
}

#elementosMenu li:hover {
    background: #6a6f74 !important;
    /* border-left: 3px solid #E30921 !important; */
}


.container__Sidebar.sidebar {
    overflow: hidden;
}

.sidebar.notSidebar {
    width: 0px;
    padding: 0px;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.sidebarOpened {
    width: 240px !important;

    .cont-logo {
        justify-content: space-between !important;

        .cont-logo-upaep {
            display: flex !important;
        }
    }
}

.sidebar.sidebarClosed {
    width: 80px !important;

    .cont-logo {
        justify-content: center !important;

        .cont-logo-upaep {
            display: none !important;
        }
    }

    .contenedorInferior {
        display: none !important;
    }
}

.sidebar.sidebarClosed #elementosMenu li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0px !important;
}

.sidebar.sidebarClosed #elementosMenu li img {
    width: 40px !important;
    height: 40px !important;
}

.sidebar.sidebarClosed #elementosMenu li a {
    display: none !important;
}

@keyframes mostrarLogoSidebar {
    0% {
        transform: scaleX(0);
        transform-origin: 0 0;
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        transform-origin: 0 0;
        opacity: 1;
        display: block;
    }
}

@keyframes ocultarLogoSidebar {
    0% {
        transform: scaleX(1);
        transform-origin: 0 0;
        opacity: 1;
    }

    50% {
        display: none !important;
    }

    100% {
        transform: scaleX(0);
        transform-origin: 0 0;
        opacity: 1;
        display: none;
    }
}

div.sidebar.active {
    background-color: #6a6f74;
}

.container__Main:not(:has(.accesosGeneral)) {
    flex: 1;
}

.container__Main:has(.accesosGeneral) {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.container__Footer footer {
    background-color: #333333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    padding-left: 280px;
    transition: padding-left 0.3s ease;
    --footer-bg: #1b1f22;
    --footer-padding: 20px 0 20px 280px;
    --footer-border-top: none;
    color: var(--upaep-color-white);
    text-align: center;
    transition: padding-left 0.3s ease;
    float: none;
    width: auto;
}

.container__Footer footer p {
    margin: 0;
}

.container__Footer footer.opened-sidebar {
    padding-left: 280px;
}

.container__Footer footer.closed-sidebar {
    padding-left: 90px;
}

.container__Footer footer.notSidebar {
    padding-left: 0px;
}

.container__Footer footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer {
    float: none;
    width: auto;
}

footer p {
    color: white !important;
}

.loader_sidebar.is-visible {
    visibility: visible;
    opacity: 1;
}

.loader_login.is-visible {
    visibility: visible;
    opacity: 1;
}

.hide {
    display: none;
}

.content_modalGuide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

.duplicado {
    position: absolute;
}

.container__Main {
    transition: padding-left .3s ease;
    padding: 0px 10px 20px 275px;
}

.no-sidebar {
    padding: 0px 10px 20px 20px !important;
}

header .upaep__icons__comp_dft #icon-logout #icon_log {
    width: 70%;
}

.icons-url {
    width: 20px;
}

#cont-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.icons-contenedores {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.closed-sidebar {
    padding: 0px 40px 20px 130px;
}

.opened-sidebar {
    padding: 0px 40px 20px 275px;
}

.contenedorInferior {
    position: absolute;
    bottom: 20px;
    width: 80%;

    .container {
        width: 100%;
        display: flex;
        justify-content: end;
        align-items: center;
        flex-direction: column;
        gap: 1rem;

        .inner-container {
            width: 100%;
            display: flex;
            justify-content: start;
            align-items: center;
            gap: .5rem;
            cursor: pointer;
            padding: 8px 10px;

            .play-icon {
                width: 30px;
            }

            .title {
                font-size: 14px;
                font-weight: 300;
                color: white;
            }
        }

        .inner-container:hover {
            background-color: #6a6f74;
            border-left: 3px solid #e30921;

        }
    }
}

@keyframes flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#modal-overlay-platforms {
    position: absolute;
    width: 400px;
    height: 525px;
    background-color: #595959;
    top: 70px;
    right: 60px;
    box-shadow: var(--upaep-box-shadow);
    border-radius: 10px;
    border: 13px solid #595959;
    display: flex;
    justify-content: center;
    align-items: center;

    #modal-border {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        background: #2c2c2c;

        #cont-platforms {
            display: flex;
            justify-content: start;
            align-items: start;
            width: 100%;
            gap: 1rem;
            padding: 20px;
            flex-wrap: wrap;

            .platform-content {
                width: 100px;
                min-height: 120px;
                display: flex;
                justify-content: start;
                align-items: center;
                flex-direction: column;
                gap: .5rem;
                cursor: pointer;
                border-radius: 10px;
                padding: 10px;

                .icon-platform {
                    border-radius: 50%;
                    background-color: white;
                    width: 50px;
                    min-height: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                .icon-platform img {
                    width: 100%;
                    border-radius: 50%;
                }

                .title-platform {
                    text-align: center;
                    font-size: 15px;
                    text-wrap: wrap;
                    color: white;
                }
            }

            .platform-content:hover {
                background: rgba(128, 128, 128, 0.473);
                height: fit-content;
                outline: none;
            }
        }


        @media (max-width: 370px) {
            justify-content: center;
        }
    }

    @media (max-width: 640px) {
        width: 285px;
        right: 10px;
    }

    @media (max-width: 370px) {

        width: 90%;
        right: 15px;

        #modal-border {
            justify-content: center;
        }
    }
}

.upaep__errorPage {
    --upaep-errorPage-width: 100%;
    --upaep-errorPage-height: 100%;
    --upaep-errorPage-margin: 0;
    --upaep-errorPage-padding: 0;
    --upaep-errorPage-bg: #FFFFFF;
    --upaep-errorPage-content-width: 100%;
    --upaep-errorPage-content-maxwidth: 800px;
    --upaep-errorPage-content-height: auto;
    --upaep-errorPage-content-margin: 1rem;
    --upaep-errorPage-content-padding: 1rem 2rem;
    --upaep-errorPage-content-bg: #ffffff;
    --upaep-errorPage-content-border-radius: 15px;
    --upaep-errorPage-content-boxshadow: 0px 0px 8px #0000007D;
    --upaep-errorPage-img-width: 200px;
    --upaep-errorPage-img-height: auto;
    --upaep-errorPage-img-objectfit: contain;
    --upaep-errorPage-img-padding: 0;
    --upaep-errorPage-img-margin: 1rem;
    --upaep-errorPage-title-fz: 24px;
    --upaep-errorPage-title-fw: bold;
    --upaep-errorPage-title-color: #1D335B;
    --upaep-errorPage-title-align: center;
    --upaep-errorPage-btn-width: 200px;
    --upaep-errorPage-btn-height: 25px;
    --upaep-errorPage-btn-margin: 1rem auto;
    --upaep-errorPage-btn-padding: .5rem .35rem;
    --upaep-errorPage-btn-bg: #e10023;
    --upaep-errorPage-btn-fz: 16px;
    --upaep-errorPage-btn-fw: bold;
    --upaep-errorPage-btn-color: #ffffff;
    --upaep-errorPage-btn-hover-bg: #c2001e;
    --upaep-errorPage-btn-hover-fz: 16px;
    --upaep-errorPage-btn-hover-fw: bold;
    --upaep-errorPage-btn-hover-color: #ffffff;
    --upaep-errorPage-btn-border-radius: 50px;

    width: var(--upaep-errorPage-width);
    height: var(--upaep-errorPage-height);
    background: var(--upaep-errorPage-bg);
    margin: var(--upaep-errorPage-margin);
    padding: var(--upaep-errorPage-padding);
    display: flex;
    justify-content: center;
    align-items: center;

    .upaep__errorPage-content {
        width: var(--upaep-errorPage-content-width);
        max-width: var(--upaep-errorPage-content-maxwidth);
        height: var(--upaep-errorPage-content-height);
        margin: var(--upaep-errorPage-content-margin);
        padding: var(--upaep-errorPage-content-padding);
        background: var(--upaep-errorPage-content-bg);
        border-radius: var(--upaep-errorPage-content-border-radius);
        box-shadow: var(--upaep-errorPage-content-boxshadow);
    }

    .upaep__btn.__errorPage {
        display: flex;
        justify-content: center;
        align-items: center;
        width: var(--upaep-errorPage-btn-width);
        text-decoration: none;
        height: var(--upaep-errorPage-btn-height);
        margin: var(--upaep-errorPage-btn-margin);
        padding: var(--upaep-errorPage-btn-padding);
        background: var(--upaep-errorPage-btn-bg);
        font-size: var(--upaep-errorPage-btn-fz);
        font-weight: var(--upaep-errorPage-btn-fw);
        color: var(--upaep-errorPage-btn-color);
        border-radius: var(--upaep-errorPage-btn-border-radius);
    }
}

.upaep__btn.__errorPage:hover {
    background: #c2001e;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff
}

.upaep__errorPage h3 {
    font-size: 24px;
    font-weight: bold;
    color: #1D335B;
    text-align: center;
    text-wrap: balance;
}

.upaep__errorPage img {
    display: block;
    width: 200px;
    height: auto;
    object-fit: contain;
    padding: 0;
    margin: 1rem auto;
}

#modal-overlay-img_user {
    position: absolute;
    width: 330px;
    height: 450px;
    background-color: #EEEEEE;
    top: 70px;
    right: 90px;
    box-shadow: var(--upaep-box-shadow);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

#upaep__date__comp__user {
    font-size: 12px;
    font-weight: 400;
    max-width: 105px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}


#modal-non-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    position: fixed;
}

.non-web-title {
    font-size: 24px;
    color: #E30921;
    margin-top: 1rem;
}

.non-web-desc {
    color: #52565A;
}

.modal-content-non-web {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 450px;
    text-align: center;
    padding: 2rem;
}

#overlay-non-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-open-non-web {
    overflow: hidden;
}

.change_rows_selector {
    max-width: 70px;
}

@media (width > 1100px) {
    .container__Footer footer {
        padding-left: 280px;
    }
}

@media (width <=1100px) {
    .container__Footer footer {
        padding-left: 90px;
    }
}

@media (width <=640px) {
    .container__Header header .upaep__name__comp_dft #upaep__name__comp__user {
        display: none !important;
    }

    #modal-overlay-img_user {
        right: 22px;
    }
}

@media (width <=450px) {
    .container__Footer footer {
        padding-left: 0px !important;
    }
}