.nav-mobile {
    /* margin-left: 100%; */
    /* transition: margin-left var(--transition-speed) ease; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    background-color: red;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;

    &.show {
        /* margin-left: 0; */
        transform: translateX(0);

    }

    .nav-mobile-links{
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
        gap: 1em;
        font-weight: 500;

        .nav-mobile-item{
            font-size: 35px;
            color: #fff;
            text-decoration: none;
        }
    }

    .nav-languages-links {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        padding: 0;
        margin: 0;
        color: white;
        list-style-type: none;
        gap: 1rem;
        font-weight: 400;
        li {
            a {
                color: inherit;
                text-decoration: none;
                &.active{
                    color: #000;
                    font-weight: 500;
                }
            }
        }
    }
}

#nav-mobile-btn {
    width: 2rem;
    position: relative;
    background: transparent;
    z-index: 1000;
    span {
        background: #fff;
        width: 100%;
        height: 2px;
        /* background-color: #333; */
        transition: 0.3s;
        /* background: transparent; */
        display: block;
        margin-bottom: 6px;
    }

    &.close {
        span:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }
        span:nth-child(2) {
            /* opacity: 0; */
            transform: translateX(+400%);
        }
    
        span:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }
    }
}

/*ens petem el menu en pantalles grans*/
@media (min-width: 768px) {
  .nav-mobile-btn {
    display: none;
  }
  .nav-mobile {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    box-shadow: none;
    display: none;

    /* .nav-languages-links {
      display: none;
    } */
  }
}

@media(max-width: 250px){
    .nav-mobile {
        .nav-mobile-links{
            .nav-mobile-item {
                font-size: 30px;
            }
        }
    }
}