.nav{
    width: 100%;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0 100px;
}

.logo{
    width: 300px;
    height: 50px;
    background-image: url(img/logo.png);
    background-size: 80%;
    position: fixed;
    display: none;
    top: 20px;
    left: 20px;
    z-index: 222;
    background-repeat: no-repeat;
    background-position: center;
}

.logoNav{
    width: 300px;
    height: 50px;
    background-image: url(img/logo.png);
    background-size: 80%;
    z-index: 222;
    background-repeat: no-repeat;
    background-position: center;
}

.linkNav{
    margin: 15px;
    color: white;
    text-decoration: none;
    font-family: var(--red);
    opacity: 80%;
    position: relative;
    transition: all 400ms ease;
    opacity: 0;
    cursor: pointer;
}

.linkNav::after{
    content: '';
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: all 400ms ease;
    transform: scaleX(0);
    transform-origin: left;
}


.linkNav:hover::after{
    transition: all 400ms ease;
    transform: scaleX(1);
    transform-origin: left;
}

.linkNav:hover{
    opacity: 100%;
    transition: all 400ms ease;
}

.red{
    margin: 15px;
    color: black;
    text-decoration: none;
    font-family: var(--red);
    padding: 12px 40px;
    background-color: transparent;
    border: solid 2px black;
    border-radius: 100px;
    transition: all 400ms ease;
}

.red:hover{
    background-color: var(--rojo);
    transition: all 400ms ease;
    border: solid 2px red;
    color: white;
}


@media (max-width:1050px) {
    .nav{
        padding: 0 40px;
    }
}

@media (max-width:900px) {
    .nav{
        padding: 0 ;
        height: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 400ms ease;
        transform: translateX(-100%);
        background-color: var(--rojo);
    }

    .logo{
        display:block;
        width: 250px;
        left:0;
        position: absolute;
    }

    .navTrue{
        transition: all 400ms ease;
        transform: translateX(-100%);
    }

    .navFalse{
        transition: all 400ms ease;
        transform: translateX(0%);
    }

    .linkNav{
        font-size: 24px;
        text-align: left;
        color:black;
    }

    .logoNav{
        display: none;
    }

    .red{
        font-size: 24px;
    }

    .burger{
        z-index: 222;
        width: 50px;
        height: 20px;
        position: absolute;
        top: 40px;
        right: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .lineOne{
        width: 40px;
        height: 3px;
        background-color: white;
        transition: 250ms ease;
        border-radius: 100px;
    }

    .lineTwo{
        width: 40px;
        height: 3px;
        margin-top: 10px;
        background-color: white;
        transition: 250ms ease;
        border-radius: 100px;
    }

    .oneChange{
        transition: all 250ms ease;
        transform: rotate(45deg);
        background-color: black;
    }

    .twoChange{
        transition: all 250ms ease;
        margin-top: -3px;
        transform: rotate(-45deg);
        background-color: black;
    }
}

.oneNone{
    width: 50px;
    height: 3px;
    transition: all 250ms ease;
    transform: none;
}

.twoNone{
    width: 50px;
    height: 3px;
    transition: all 250ms ease;
    transform: none;
}


.mainTrue{
    display: block;
}

.mainFalse{
    display: none;
}


.animOne{
    animation: one ease 600ms forwards 1;
    opacity: 0;
}

@keyframes one {
    0%{
        opacity: 0;
        transform: translateX(30px);
    }

    100%{
        opacity: 100%;
        transform: translateX(0);
    }
}

.animTwo{
    animation: two ease 600ms forwards 1;
    opacity: 0;
}

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

    100%{
        opacity: 100%;
    }
}