/**** @name Estilos de general.css 
    * @description Estilos generales de la arquitectura
    * @version 1.0.1
    * @date 29/Octubre/2025
*****/

.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__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;
    }
}

/* =============================================== */
/* Estilos para el overlay de plataformas */

#modal-overlay-platforms {
    position: absolute;
    max-width: 413px;
    width: 90%;
    max-height: 85dvh;
    height: auto;
    background-color: #595959;
    top: 4rem;
    right: 3rem;
    box-shadow: var(--upaep-box-shadow);
    border-radius: 10px;
    border: 13px solid #595959;
    display: flex;
    justify-content: center;
    align-items: center;

    .platforms-grid {
        display: flex;
        justify-content: center;
        align-items: start;
        width: 100%;
        gap: 1rem;
        padding: 20px;
        flex-wrap: wrap;
        max-height: 500px;
    }

    #modal-border {
        width: 100%;
        min-height: 60dvh;
        border-radius: 10px;
        background: #2c2c2c;
        overflow-y: auto;
        scrollbar-width: thin !important;
        scrollbar-color: #595959 #2c2c2c;


        &::-webkit-scrollbar {
            width: 10px;
        }

        &::-webkit-scrollbar-track {
            background: #2c2c2c;
        }

        &::-webkit-scrollbar-thumb {
            background-color: #595959;
            border-radius: 10px;
            border: 2px solid #2c2c2c;
        }

        &::-webkit-scrollbar-thumb:hover {
            background-color: #7a7a7a;
        }

        &::-webkit-scrollbar-button {
            display: none;
        }

        #cont-platforms {

            .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;
                text-decoration: none;

                .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;
                }

                .upaep__card {
                    margin: 0 !important;
                }
            }

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

            .platform-content:focus-visible {
                background: rgba(128, 128, 128, 0.473);
                outline: 2px solid #7a7a7a;
                outline-offset: 2px;
            }
        }

        .cont-platforms-skeletons {

            .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;
                text-decoration: none;

                .icon-platform {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                .upaep__card {
                    margin: 0 !important;
                    box-shadow: none !important;
                    width: 100% !important;
                }
            }
        }


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

    @media (width <=640px) {
        right: 1.5rem;
    }

    @media (width <=370px) {
        right: 1rem;
    }
}

/* =============================================== */

.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;
    }
}