/* Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* Variables CSS */
:root{
    --header-height: 7rem;
    --nav-width: 250px;

    /* Colores */
    --first-color: #d33c43;
    --first-color-light:#f5f7fa ;
    --title-color:gainsboro;
    --text-color: gainsboro;
    --sub-textcolor: #d33c43;
    --text-color-light: white;
    --body-color: #F9F6FD;
    --container-color: #191919;

    /* Fuentes */
    --body-font: 'Urbanist', sans-serif;;
    --normal-font-size: 1.5rem;
    --small-font-size: 1.3rem;
    --smaller-font-size: 1.2rem;

    /* Grosor de Fuente */
    --font-medium: 400;
    --font-semi-bold: 700;

    /*Espaciados*/
    --espaciado: 1.5rem;
    --m-superior: 3rem;

    /* Z Índice */
    --z-fixed: 100;


}

@media screen and (min-width: 1024px) {
    :root{
        --normal-font-size: 1.8rem;
        --small-font-size: 1.7rem;
        --smaller-font-size: 1.5rem;
        --espaciado : 2rem;
        --m-superior: 4rem;
    }
}

body{
    margin: var(--header-height) 0 0 0;
    padding: 1rem 1rem 0;
}

/* Encabezado */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 100rem;
    background-color: var(--container-color);
    box-shadow: 0 2px 0 rgba(22,8,43,.6);
    padding: 0 1rem;
    z-index: var(--z-fixed);
}

.header__container{
    display: flex;
    align-items: center;
    height: var(--header-height);
    justify-content: space-around;
}

.header__image{
    width: 20rem;
    height: 4rem;
}

.header__toggle{
    font-size: 2rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Nav */

.nav{
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    padding: 1rem 1rem 3rem;
    background-color: var(--container-color);
    box-shadow: 2px 0 0 rgba(22,8,43,.6);
    z-index: var(--z-fixed);
    transition: .4s;
}

.nav__container{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    scrollbar-width: none; /*Para Mozilla*/
}

.nav__container::-webkit-scrollbar{
    display: none; /* Para Chrome y Otros*/
}

.nav__logo{
    font-weight: var(--font-semi-bold);
    font-size: var(--normal-font-size);
    min-height: 70px;
}

.nav__list{
    margin-top: var(--m-superior);
    display: grid;
}

.nav__list{
    row-gap: var(--espaciado);
}


.nav__subtitle{
    font-size: var(--normal-font-size);
    text-transform: uppercase;
    letter-spacing: .1rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

#time, .stTime, .horaInicio, .stTime__Acu, .stSesiones{
    align-items: center;
    margin-left: auto;
    padding: .5rem;
    background: var(--first-color);
    border-radius: .4rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    line-height: 2rem;
    white-space: nowrap;
}

.acumulado{
    display: none;
}

.nav__sesiones,
.nav__acumulado{
    color: var(--container-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    line-height: 2rem;
    white-space: nowrap;
}


.nav__info,
.nav__link{
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin-bottom: .6rem;
}

.nav__link:hover{
    background: var(--first-color);
    color: var(--title-color);
    line-height: 5rem;
    padding: 0.5rem 1rem;
    margin: 0 2rem;
    transform: scale(1.2);
}

.nav__info-group{
    display: block;
}

.nav__icon{
    font-size: 1.2rem;
    margin-right: .5rem;
}

.nav__name{
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    line-height: 2rem;
    white-space: nowrap;
    
}

.nav__logout{
    margin-top: 5rem;
}

/* DropDown*/
.nav__dropdown{
    overflow: hidden;
    max-height: 30px;
    transition: .4s ease-in-out;
}

.nav__dropdown-collapse{
    background-color: var(--first-color-light);
    border-radius: .4rem;
    margin-top: 1rem;
}

.nav__dropdown-content{
    display: grid;
    row-gap: .5rem;
    padding: .75rem 2.5rem .75rem 1.8rem;
}

.nav__dropdown-item{
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    color: var(--sub-textcolor)
}

.nav__dropdown-item.blue{
    color: rgb(41, 41, 177);
    font-weight: 700;
}

.nav__dropdown-item:hover{
    background: var(--container-color);
    color: var(--title-color);
    padding: .5rem;
    border-radius: .4rem;
    margin: 0 .5rem;
}

.nav__dropdown-icon{
    margin-left: auto;
    padding-left: .5rem;
    transition: .5s;
}

/* Show Collapse */
.nav__dropdown.dpactivo{
    max-height: 100rem;
}

.nav__dropdown.dpactivo .nav__dropdown-icon{
    transform: rotate(180deg);
}

/* SHOW MENU */
.show-menu{
    left: 0;
}

/* ACTIVO */
.active{
    background: var(--text-color); 
    padding: 0 1rem;
    color: var(--container-color) !important;
}

/*Media Query*/

@media screen and (min-width: 768px) {
    body{
        padding: 1rem 3rem 0 6rem
    }

    .header{
        padding: 0 3rem 0 6rem;
    }

    .header__container{
        height: calc(--header-height + 5rem);
        justify-content: flex-end;
    }

    .header__toggle{
        display: none;
    }

    .header__image{
        width: 25rem;
        height: 5rem;
    }

    .nav{
        left: 0;
        padding: 1.2rem 1.5rem 3rem;
        width: 68px;
    }

    .nav__icon{
        font-size: 1.3rem;
    }

    .nav__logo-name, 
    .nav__name, 
    .nav__subtitle, 
    .nav__dropdown-icon{
        opacity: 0;
        transition: .5s;
    }

    .nav:hover{
        width: var(--nav-width);
    }
    
    .nav:hover .nav__logo-name{
        opacity: 1;
    }

    .nav:hover .nav__subtitle{
        opacity: 1;
    }

    .nav:hover .nav__name{
        opacity: 1;
    }

    .nav:hover .nav__dropdown-icon{
        opacity: 1;
    }

}

@media screen and (min-width: 1024px) {
    body{
        padding: 1rem 3rem 0 30rem
    }
    
    .nav{
        left: 0;
        padding: 1.2rem 1.5rem 3rem;
        width: 219px;
    }

    .nav__logo-name, 
    .nav__name, 
    .nav__subtitle, 
    .nav__dropdown-icon{
        opacity: 1;
        transition: .5s;
    }
}
