/**
 * @copyright Camacho & Asociados
 * @author MarLab (edoardo@marlab.mx)
 * @version 1.0.0 (Julio 2022)
 * @since 1.0.0
 */

:root{
    --menu-height: 12vh;
}

.menu{
    background-color: #F7F7F7;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 20;
    padding: 0 8%;
    width: 84%;
    height: var(--menu-height);
    box-shadow: 0px 3px 6px #00000029;

    display: -webkit-flex;
    -webkit-justify-content: center;
    -webkit-align-items: center;
}

.menu__imagen{
    position: absolute;
    left: 6%;
    width: auto;
    height: 8vh;
    object-fit: contain;
}

.menu__logo{
    width: auto;
    height: 5vh;
    object-fit: contain;
}

.menu__icono{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    right: 8%;
    width: 5vh;
    cursor: pointer;

    display: -webkit-flex;
    -webkit-flex-direction: column;
    -webkit-justify-content: space-between;

    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.menu__icono-activo{
    z-index: 25;
    height: 4vh;
}

.menu__icono-activo .menu__linea{
    position: absolute;
    top: 2vh;
}

.menu__linea{
    background-color: #1A4EA2;
    margin: 0.5vh 0;
    width: 100%;
    height: 0.2vh;

    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.menu__icono-activo .menu__linea-1{
    transform: translateY(0) translateX(0) rotate(45deg);
    -webkit-transform: translateY(0) translateX(0) rotate(45deg);
}

.menu__icono-activo .menu__linea-2{
    transform: translateY(0) translateX(0) rotate(-45deg);
    -webkit-transform: translateY(0) translateX(0) rotate(-45deg);
}

.menu__navegacion{
    background-color: #aeb2b6;
    background-image: url("../img/menu_fondo.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    display: -webkit-flex;
    -webkit-flex-direction: column;
    -webkit-justify-content: center;
    -webkit-align-items: center;

    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.menu__navegacion img{
    position: absolute;
    bottom: 10vh;
    width: 3%;
    height: auto;
    object-fit: contain;
}

.menu__navegacion-activo{
    opacity: 1;
    pointer-events: auto;
}

.menu__opcion{
    margin-bottom: 10vh;
    color: #CED1CC;
    font-size: 2.5vw;
    cursor: pointer;
}

.menu__opcion a{
    color: #CED1CC;
    text-decoration: none;
}

.menu__opcion-especial a{
    color: #1A4EA2;
    font-size: 1.5vw;
    text-decoration: none;
}

/*Estilo para media pantalla
______________________________*/
@media only screen and (max-width: 1024px){
    :root{
        --menu-height: 8vh;
    }

    .menu{
        padding: 0 5%;
        width: 90%;
        height: var(--menu-height);
    }

    .menu__imagen{
        left: 5%;
        height: 4vh;
    }

    .menu__logo{
        height: 3vh;
    }

    .menu__icono{
        right: 5%;
    }

    .menu__navegacion{
        background-position: center;
        background-size: cover;
    }

    .menu__navegacion img{
        width: 10%;
    }

    .menu__opcion{
        margin-bottom: 5vh;
        font-size: 3.5vw;
    }

    .menu__opcion-especial a{
        font-size: 2.5vw;
    }
}

/*Estilo para móviles
______________________________*/
@media only screen and (max-width: 465px) and (orientation: portrait){
    .menu{
        padding: 0 3%;
        width: 94%;
    }

    .menu__imagen{
        display: none;
    }

    .menu__logo{
        height: 3vh;
    }

    .menu__icono{
        right: 3%;
    }

    .menu__navegacion img{
        width: 15%;
    }

    .menu__opcion{
        font-size: 5vw;
    }

    .menu__opcion-especial a{
        font-size: 4vw;
    }
}
