.nav{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    z-index: 999;
    background-color: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    min-height: 8vh;
    margin-bottom: 8em;
    padding: 5px 0px;
    border-radius: 50px;
}

.nav2{
    background-color: #ffffff54;
    /* box-shadow: 2px 3px 40px #00000079; */
    color: #ffffff;
    backdrop-filter: saturate(180%) blur(5px);
    transition: all 0.3s ease-in-out    ;
}
.nav2:hover{
    background-color: #ffffff;
    box-shadow: 2px 10px 20px #0000003c;
    color: #ffffff;
    backdrop-filter: saturate(180%) blur(5px);
}

.logo{
    display: flex;
    position: relative;
}
.logo img{
    max-width: 120px;
    height: auto;
}

.enlaces{
    display: flex;
    justify-content: space-around;
    width: 30%;
    z-index: 99;
    margin: 0;
}
.enlaces li{
    list-style: none;
    margin: 0px 15px;
}
.enlaces li a{
    color: #4B530F;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    position: relative;
}
.enlaces li a:hover {
    color: #257411;
}
.enlaces li a::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform ease 0.5s;
    -webkit-transition: transform ease 0.5s;
    -moz-transition: transform ease 0.5s;
    -ms-transition: transform ease 0.5s;
    -o-transition: transform ease 0.5s;
}

.enlaces li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger{
    display: none;
    cursor: pointer;
}
.burger div{
    width: 25px;
    height: 3px;
    margin: 5px; 
    background-color: #eb6512;
}
@media only screen and (max-width: 1024px) {
   .enlaces{
       width: 60%;
   }
}
@media only screen and (max-width: 768px) {
    .nav{
        width: 95%;
    }
    .logo img{
        max-width: 110px;
    }
    .enlaces{
        position: absolute;
        top: 8dvh;
        right: 0%;
        height: 92vh;
        background-color: #eb5f0c;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(150%);
        transition: transform 0.5s ease-in;
        justify-content: center;
    }
    .enlaces li{
        opacity: 0;
        /* animation: navLinkFade 5s ease forwards; */
        width: 100%;
        height: 70px;
        display: flex;
        justify-content: center;
    }
    /* .nav2 .enlaces li a{
        color: #FFF;
     } */
    .burger{
        display: block;
    }
    .enlaces li a{
        color: #FFF;
    }
 }

/* ==== Responsive ==== */
    @media only screen and (max-width: 414px) {
        .enlaces li a::after {
            display: none;
        }
    }

/* ========================= */
.enlaces-active{
    transform: translateX(0%);
    padding: 0;
}

@keyframes navLinkFade{
    from{
        opacity: 0.5;
        transform: translateX(60px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}
.toggle .line1{
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px, -6px);
}