﻿/* AGC */

/*Header*/

.topheader {
    box-shadow: 0 0px 3px var(--navbar-shallow-color);
    position: fixed; 
    background-color: rgb(251, 255, 255);
    /*background-color: var(--theme-color);*/
    left: 0;
    top: 0;
    width: 100%; 
    z-index: 100;
}


.topnav {
    display: flex; 
    justify-content: space-between;
    padding: 10px;
    max-width: 980px;
    margin: 0 auto;
}

/*Logo*/

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

/*Menu*/

.menu {
    display: flex;
    list-style: none;
    margin: 0; 
    padding: 0;
}

/* separa y alinea los li */

.menu li {
    padding: 0 15px;
}

/*Estilos a los enlaces que estan dentro del menu*/

.menu a {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 80px;
    text-transform: uppercase;
    position: relative;
}


.menu a::after{
    content: "";
    background-color: var(--secundary-color);
    position: absolute;
    left: 0;
    top: calc(100% + 4px); 
    width: 100%;
    height: 4px;

    opacity: 0;
    transition: opacity 0.3s;
}

.menu a.selected::after,
.menu a:hover::after{
    opacity: 0.8;
}

.menu a:hover{
    color: var(--primary-color);
}

.open-menu,
.close-menu {
    display: none; 
}

.menu li ul {
    display:none;
    position:absolute;
    background-color: var(--text-color-inverse);
}

.menu li:hover > ul {
    display:block;
}

.menu li ul li {
    position:relative;
}

@media (max-width: 950px){

    .menu {
        flex-direction: column; 
        position: fixed;
        left: 0;
        top: 0;
        width: 100%; 
        align-items: center; 
        background-color: var(--menu-mobile-background-color);
        color: var(--text-color-inverse);
        height: 100%;
        overflow: auto; 

        opacity: 0; 
        pointer-events: none; 
        transition: opacity 0.4s; 
    }

    .menu li {
        padding: 0;
    }

    .menu a {
        color: var(--text-color-inverse);
        line-height: 80px;
        font-size: 25px;
    }

    .open-menu,
    .close-menu {
        display: block;
        border: none;
        background: none;
        cursor: pointer; 
    }

    .close-menu{
        align-self: flex-end;
        padding: 5px 0px; 
    }
    
    .menu_opened{
        opacity: 1; 
        pointer-events: all; 
    }
    
    .open-menu:focus:not(:focus-visible),
    .close-menu:focus:not(:focus-visible) {
        outline: none;
    }

    .menu a::after{
        content: none;
    }
    
    .menu a:hover,
    .menu a.selected{
        color: #4BB2F9 ;
    }
  
   .img-hamburguer{
    max-height: 80px; 
    background-color: var(--text-color-inverse);
   }
}
