﻿body.menu-open {
    overflow: hidden;
}

header {
    height: auto;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    /*background-color: white;*/
}

.header-content {
    height: 95px;
    padding: 0 24px;
    background-color: rgba(37, 39, 40, 0.7);
}

.header-content.active-menu{
    background-color: #fff;
}

.header-content.active-menu a{
    color: #000;
}

.header-content.active-menu .logos-header a img {
    filter: invert(1);
}

.menu-new {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 65px;
    justify-content: space-between;
}

.menu-options{
    margin-left: 50px;
}

.menu-options a{
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-right: 20px;
    font-weight: 600;
}

.menu-options a i{
    margin-left: 10px;
}

.menu-autos-new {
    min-height: calc(100vh - 95px);
    background-color: white;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid #d1d1d6;
}

.side-menu-autos {
    border-right: 1px solid #d1d1d6;
    width: 20%;
    padding: 24px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    border-right: 1.5px solid #d1d1d6;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    font-weight: 400;
    max-height: calc(100vh - 95px);
}

.side-menu-autos p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.side-menu-autos ul {
    padding:0;
    list-style: none;
}

    .side-menu-autos .list-filter li {
        border: 1px solid transparent;
        border-radius: 3px;
        cursor: pointer;
        margin-bottom: 8px;
        padding: 8px;
        width: 100%;
    }

.side-menu-autos .list-filter.border-list {
    border-bottom: 1px solid #d1d1d6;
}

    .side-menu-autos .list-filter li.active::before {
        content: "";
        height: 8px;
        left: 8px;
        position: absolute;
        top: 16px;
        width: 8px;
        z-index: 1;
        background: var(--theme-color, #d7000f);
        border-radius: 1px;
    }

    .side-menu-autos .list-filter li.active {
        background-color: #000;
        color: #fff;
        padding-left: 24px;
        position: relative;
    }

.tools-ul{
    margin-top: 120px;
}


.content-menu-autos {
    width: 80%;
    padding: 24px;
    height: auto;
    overflow-y: scroll;
    max-height: calc(100vh - 95px);
}

.type-models {
    border-bottom: 4px solid #d1d1d6;
}

.type-models button {
    margin-right: 2pc;
    padding: 1pc 24px;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: #636366;
    position: relative;
}

.type-models button.active{
    color: #000;
}

.type-models button.active::after{
    content: '';
    height: 4px;
    position: absolute;
    bottom: -4px;
    width: 100%;
    background-color: #000;
    left: 0;
}

.div-models{
    margin-top: 55px;
}

.div-menu-modelos{
    display: flex;
    flex-wrap: wrap;
}

.auto-menu-new {
    border: 1.5px solid #d1d1d6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    margin-right: 24px;
    max-width: 285px;
    overflow: hidden;
    position: relative;
    width: calc(33.33333% - 1pc);
    color: #000;
}

.auto-menu-new:hover{
    border: 1.5px solid #000;
}

.auto-menu-new span {
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 700;
    text-align: right;
    position: absolute;
    right: 0;
}

.auto-menu-new h3 {
    padding: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    text-align: left;
    margin: 0;
}

.tools-ul li{
    margin-bottom: 8px;
}

.tools-ul li a {
    display: flex;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    align-items: center;
}

    .tools-ul li a i {
        color: #d7000f;
        margin-left: 10px;
        font-size: 18px;
    }


.content-submenus{
    position: fixed;
    top: -100%;
    left: 0;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.content-submenus.open {
    top: 95px;
}

.cta-header {
    display: flex;
    align-items: center;
}

.cta-header a {
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-left: 15px;
    color: #fff;
}

.cta-header a i {
    font-size: 16px;
    margin-right: 10px;
}

.header-top{
    height: 30px;
    align-content: center;
}

.type-models .nav-link:focus, .type-models .nav-link:hover {
    color: #000;
}

.models-button-movil{
    display: none;
}

.menu-movil{
    display: none;
}

.header-top a span:last-child {
    font-weight: 400;
}

.filters-movil{
    display: none;
}


@media (max-width: 1200px) {
    .cta-header a span{
        display: none;
    }

    .side-menu-autos{
        width: 30%;
    }

    .content-menu-autos {
        width: 70%;
    }

    .menu-options a {
        font-size: 14px;
        font-weight: 700;
    }

    .auto-menu-new {
        margin-bottom: 12px;
        margin-right: 12px;
        max-width: 220px;
    }

    .type-models {
        border-bottom: 4px solid #d1d1d6;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        overflow-y: hidden;
    }

        .type-models button {
            flex-shrink: 0;
        }

        .type-models,
        .type-models::-webkit-scrollbar {
            scrollbar-width: none;
        }

    .tools-ul {
        margin-top: 90px;
    }

    .header-content.active-menu .cta-header a {
        border: 1px solid #000;
    }

    .cta-header a {
        border: 1px solid #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        width: 35px;
        height: 35px;
    }

    .cta-header a i{
        margin: 0;
        font-size: 20px;
    }

}

@media (max-width: 991px){

    .menu-movil{
        display: block;
    }

    .menu-new {
        background-color: #000;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 95px);
        padding: 64px 24px;
        overflow-y: auto;
        height: auto;
        transition: all 0.3s ease-in-out;
    }

        .menu-new.open {
            top: 95px;
        }

   .menu-new .logos-header{
        display: none;
    }

    .header-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-top{
        width: 100%;
    }

    .cta-header {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

        .cta-header a {
            width: 100%;
            height: 45px;
            justify-content: flex-start;
            padding: 0 24px;
            margin-bottom: 20px;
            margin-left: 0;
            border: 1px solid #48484a;
        }

            .cta-header a span {
                display: block;
                margin-left: 14px;
                font-size: 16px;
            }

    .menu-options {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 50px;
    }

    .menu-options a {
        font-size: 18px;
        width: 100%;
        margin-bottom: 20px;
        padding: 8px;
    }

    .header-content.back-movil {
        background-color: #000;
        border-bottom: 1px solid #636366;
    }

    .header-content.active-menu .logos-header a img {
        filter: unset;
    }

    .content-submenus{
        bottom: -200%;
        top: unset;
    }

        .content-submenus.open {
            top: unset;
            bottom: calc(0% - 60px);
        }

    .models-button-movil {
        position: absolute; 
        top: -60px;
        transition: all 0.3s ease-in-out;
        color: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .models-button-movil.show {
            top: -50px;
            display: block;
        }



    .menu-options{
        position: relative;
    }

    .content-menu-autos {
        width: 100%;
    }

    .side-menu-autos {
        width: 100%;
        max-height: unset;
        height: auto;
        overflow-y: unset;
    }


    .tools-ul{
        display: none;
    }

    .content-menu-autos {
        height: auto;
        overflow-y: unset;
        max-height: unset;
    }

    .menu-autos-new {
        min-height: unset;
        overflow-y: auto;
        justify-content: space-between;
        max-height: calc(100vh - 90px);
        height: auto;
        flex-direction: row;
        padding-bottom: 50px;
    }

    .item-filter {
        display: flex;
        flex-wrap: wrap;
        padding: 24px;
    }

    .item-filter  p{
        width: 100%;
    }

    .item-filter  ul{
        width: 33%;
        margin-right: 25px;
    }

    .side-menu-autos .list-filter.border-list {
        border-bottom: none;
    }

    .filters-movil {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px;
        border: 1.5px solid #d1d1d6;
        border-radius: 8px;
    }

    .filters-movil span {
        font-size: 24px;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .filters-movil i {
        font-size: 30px;
    }

    .item-filter{
        height: 0;
        transition: all 0.3s ease-in-out; 
        overflow: hidden;
        padding: 0;
        border: 1.5px solid transparent;
    }

        .item-filter.show {
            height: auto;
            padding: 0 24px;
            border-bottom: 1px solid #d1d1d6;
            border-right: 1px solid #d1d1d6;
            border-left: 1px solid #d1d1d6;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom-left-radius: 24px;
            border-bottom-right-radius: 24px;
        }

    .filters-movil.hide {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
    }


    .header-top a{
        color: #fff !important;
    }

    .header-content.active-menu a {
        color: #fff;
    }

    .header-content.active-menu .cta-header a {
        border: 1px solid #48484a;
    }

}

@media (max-width: 768px) {

    .auto-menu-new {
        width: calc(50% - 24px);
        margin-bottom: 24px;
        margin-right: 24px;
        max-width: unset;
    }

    .header-content {
        padding: 0 12px;
    }

    .menu-new {
        padding: 64px 12px;
    }

    .menu-options a {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .header-top a span:last-child {
        display: none;
    }

}

@media (max-width: 481px) {

    .item-filter ul {
        width: 100%;
        margin-right: 0;
    }

    .side-menu-autos .list-filter.border-list {
        border-bottom: 1px solid #d1d1d6;
    }

    .auto-menu-new {
        width: 100%;
        margin-right: 0;
    }

    .filters-movil {
        padding: 12px 24px;
    }

}
