#buscador{
    float: left;
    width: 100%;
    display: grid;
    grid-template-columns: 300px 1fr;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    
    > div.filtros{
        background: linear-gradient(135deg, #ffffff 0%, #dfdfdf 100%);
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
        height: fit-content;
        max-height: 90dvh;
        position: sticky;
        top: 20px;
        overflow-y: auto;
        form{
            display: flex;
            flex-direction: column;
            gap: 20px;
            
            > div{
                display: flex;
                flex-direction: column;
                gap: 8px;
                
                > label{
                    font-size: 0.85rem;
                    font-weight: 600;
                    color: #2c3e50;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    padding-left: 8px;
                    border-left: 3px solid transparent;
                    border-image: linear-gradient(180deg, #274198 0%, #0dafcc 100%) 1;
                }
                &.borde_inf{
                    border-bottom: 1px solid #aaa;
                    /* padding-bottom: 18px; */
                }
            }
            
            input[type="text"]{
                width: 100%;
                padding: 12px 16px;
                font-size: 0.95rem;
                color: #2c3e50;
                background: #ffffff;
                border: 2px solid #e9ecef;
                border-radius: 12px;
                cursor: text;
                transition: all 0.3s ease;
                font-weight: 500;
                
                &:hover{
                    border-color: #0dafcc;
                    background-color: #f8f9fa;
                }
                
                &:focus{
                    outline: none;
                    border-color: #0dafcc;
                    box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.1);
                    background-color: #ffffff;
                }
            }
            select{
                width: 100%;
                padding: 12px 16px;
                font-size: 0.95rem;
                color: #2c3e50;
                background: #ffffff;
                border: 2px solid #e9ecef;
                border-radius: 12px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-weight: 500;
                padding-right: 40px;
                
                &:hover{
                    border-color: #0dafcc;
                    background-color: #f8f9fa;
                }
                
                &:focus{
                    outline: none;
                    border-color: #0dafcc;
                    box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.1);
                    background-color: #ffffff;
                }
                
                option{
                    padding: 10px;
                }
            }
            
            .slider{ /* Estilos unificados para todos los sliders */
                display: flex;
                flex-direction: column;
                gap: 0;
                padding: 0;
                
                > div:first-child{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    font-size: 0.9rem;
                    font-weight: 600;
                    
                    span{
                        color: #0dafcc;
                    }
                }
                
                > div:last-child{
                    position: relative;
                    height: 40px;
                    
                    > div:first-child{
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 100%;
                        height: 6px;
                        background: #e9ecef;
                        border-radius: 3px;
                    }
                    
                    > div:nth-child(2){
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        height: 6px;
                        background: linear-gradient(90deg, #274198 0%, #0dafcc 100%);
                        border-radius: 3px;
                        pointer-events: none;
                        z-index: 1;
                    }
                    
                    input[type="range"]{
                        position: absolute;
                        width: 100%;
                        height: 40px;
                        top: 0;
                        left: 0;
                        -webkit-appearance: none;
                        appearance: none;
                        background: transparent;
                        pointer-events: none;
                        cursor: pointer;
                        
                        &::-webkit-slider-thumb{
                            -webkit-appearance: none;
                            appearance: none;
                            width: 20px;
                            height: 20px;
                            background: linear-gradient(135deg, #274198 0%, #0dafcc 100%);
                            border: 3px solid #ffffff;
                            border-radius: 50%;
                            cursor: pointer;
                            pointer-events: all;
                            box-shadow: 0 2px 8px rgba(39, 65, 152, 0.3);
                            transition: all 0.2s ease;
                            position: relative;
                            z-index: 3;
                            
                            &:hover{
                                transform: scale(1.2);
                                box-shadow: 0 3px 12px rgba(39, 65, 152, 0.5);
                            }
                            
                            &:active{
                                transform: scale(1.1);
                            }
                        }
                        
                        &::-moz-range-thumb{
                            width: 20px;
                            height: 20px;
                            background: linear-gradient(135deg, #274198 0%, #0dafcc 100%);
                            border: 3px solid #ffffff;
                            border-radius: 50%;
                            cursor: pointer;
                            pointer-events: all;
                            box-shadow: 0 2px 8px rgba(39, 65, 152, 0.3);
                            transition: all 0.2s ease;
                            position: relative;
                            z-index: 3;
                            
                            &:hover{
                                transform: scale(1.2);
                                box-shadow: 0 3px 12px rgba(39, 65, 152, 0.5);
                            }
                            
                            &:active{
                                transform: scale(1.1);
                            }
                        }
                        
                        &:last-of-type{
                            z-index: 2;
                        }
                    }
                }
            }
            
            div.search-btn{
                margin-top: 8px;
                padding: 14px 24px;
                background: linear-gradient(90deg, #274198 0%, #0dafcc 100%);
                color: #ffffff;
                border: none;
                border-radius: 12px;
                font-size: 1rem;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(39, 65, 152, 0.3);
                text-align: center;
                
                &:hover{
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(39, 65, 152, 0.4);
                    background: linear-gradient(90deg, #1e3278 0%, #0a8fa8 100%);
                }
                
                &:active{
                    transform: translateY(0);
                    box-shadow: 0 2px 8px rgba(39, 65, 152, 0.3);
                }
            }
            
            .reset-btn{
                padding: 10px 16px;
                background: #fff;
                color: #6c757d;
                border: 2px solid #dee2e6;
                border-radius: 10px;
                font-size: 0.9rem;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.3s ease;
                text-transform: none;
                letter-spacing: 0;
                margin-top: 0;
                box-shadow: none;
                text-align: center;
                
                &:hover{
                    background: #f8f9fa;
                    border-color: #adb5bd;
                    color: #495057;
                    transform: none;
                    box-shadow: none;
                }
                
                &:active{
                    background: #e9ecef;
                }
            }
        }
        .etiquetas{
            display: flex;
            gap: 8px;
            align-items: center;

            >img{
                width: 55px;
                height: 55px;
                border-radius: 50%;
                cursor: pointer;
                border: 2px solid transparent;
                transition: all 0.3s ease;
                object-fit: cover;
                filter: grayscale(1);
                &:hover{
                    opacity: 1;
                    transform: scale(1.1);
                    border-color: #00afcc;
                }

                &.act{
                    border-color: #00afcc;
                    box-shadow: 0 0 0 3px rgba(0, 175, 204, 0.2);
                    filter: none;
                }
            }
        }
        .caja_cambios{
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;

            label{
                font-size: 0.85rem;
                cursor: pointer;
                user-select: none;
                display: flex;
                align-items: center;
                gap: 6px;
            }
            input[type="radio"]{
                width: 16px;
                height: 16px;
                cursor: pointer;
                appearance: none;
                -webkit-appearance: none;
                border: 2px solid #dee2e6;
                border-radius: 50%;
                background: #ffffff;
                transition: all 0.3s ease;
                position: relative;
                flex-shrink: 0;
                
                &:hover{
                    border-color: #0dafcc;
                    box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.1);
                }
                
                &:checked{
                    border-color: #0dafcc;
                    background: linear-gradient(135deg, #274198 0%, #0dafcc 100%);
                    
                    &::after{
                        content: '';
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        width: 6px;
                        height: 6px;
                        background: #ffffff;
                        border-radius: 50%;
                    }
                }
                
                &:focus{
                    outline: none;
                    box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.2);
                }
            }
        }
        .desplegable{
            > div{
                max-height: 30dvh;
                overflow-y: auto;
            }
            >label{
                cursor: pointer;
                justify-content: space-between;
                padding-bottom: 10px;
            }
            label > i{
                margin-top: 3px;
            }
            >div >label{
                display: flex;
                align-items: center;
                font-size: 0.9rem;
                cursor: pointer;
                user-select: none;
            }
        }
        .combustibles,
        .tipos{
            display: grid;
            grid-template-columns: 1fr;
        }

        .modelos_marca {
            .titulo {
                font-size: 1rem;
                font-weight: 600;
                color: #2c3e50;
                margin-bottom: 8px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            .lista {
                display: flex;
                flex-direction: column;
            }
            
            .lista label {
                display: flex;
                align-items: center;
                font-size: 0.9rem;
                cursor: pointer;
                user-select: none;
            }
        }
        label:has(>input[type="checkbox"]){
            border: 2px solid transparent;
            border-radius: 8px;
            transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
            padding: 3px;

            &:hover{
                background: #f8f9fa;
                border-color: #0dafcc;
                box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.08);
            }

            > input[type="checkbox"]{
                flex-shrink: 0;
                accent-color: #0dafcc;
            }
        }
        .marcas{
            >.subtitulo{
                font-size: 1rem;
                font-weight: 600;
                color: #2c3e50;
                margin-bottom: 8px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
        }
        .colores{
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            align-items: center;
            justify-content: center;
            .color{
                width: 24px;
                height: 24px;
                border-radius: 50%;
                border: 2px solid #dee2e6;
                box-shadow: 0 2px 6px rgba(0,0,0,0.1);
                cursor: pointer;
                &.act{
                    border-color: #0dafcc;
                    box-shadow: 0 0 0 3px rgba(13, 175, 204, 0.2);
                }
            }
        }
    }
    > div.contenidos{
        display:grid;
        grid-template-rows: auto 1fr;
        gap: 10px;
        padding: 20px;
        padding-right: 0;
        
        > div.filtro_aplicado{
            margin: 0;
            
            > div.filtro_item{
                display:inline-block;
                background: linear-gradient(90deg, #274198 0%, #0dafcc 100%);
                color: #ffffff;
                padding: 4px 8px;
                border-radius: 20px;
                font-size: 0.85rem;
                font-weight: 500;
                margin: 4px;
                box-shadow: 0 2px 8px rgba(39, 65, 152, 0.3);
                transition: all 0.3s ease;
                cursor: pointer;

                &:hover {
                    box-shadow: 0 4px 12px rgba(39, 65, 152, 0.4);
                }
            }
        }
        
        > div.elementos{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 0;
            align-items: stretch;
            align-content: stretch;
            .sin_resultados{
                grid-column: 1 / -1;
                padding: 40px;
                text-align: center;
                font-size: 1.1rem;
                color: #6c757d;
                background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
                border-radius: 12px;
                border: 2px dashed #dee2e6;
            }
            a:has(>.caja_coche){
                text-decoration: none;
            }
            .caja_coche{
                position: relative;
                background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
                border: 1px solid #e9ecef;
                border-radius: 16px;
                overflow: hidden;
                transition: all 0.3s ease;
                box-shadow: 0 2px 8px rgba(0,0,0,0.08);
                cursor: pointer;
                display: grid;
                grid-template-rows: 220px auto; /* Altura fija para imagen, contenido automático */
                &:hover{
                    transform: translateY(-8px);
                    box-shadow: 0 12px 24px rgba(39, 65, 152, 0.15);
                    border-color: #0dafcc;
                }
                
                .cont_img{
                    width: 100%;
                    height: 220px;
                    overflow: hidden;
                    background: #f8f9fa;
                    position: relative;
                    
                    img{
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        object-position: center;
                        transition: transform 0.3s ease;
                    }
                    
                    &:hover img{
                        transform: scale(1.1);
                    }
                }
                
                .cont_info{
                    padding: 20px;
                    display: flex;
                    flex-direction: column;
                    gap: 12px;
                    
                    .titulo{
                        font-size: 1.1rem;
                        font-weight: 700;
                        color: #2c3e50;
                        letter-spacing: -0.01em;
                        line-height: 1.3;
                        margin: 0;
                    }
                    
                    .marymod{
                        font-size: 0.9rem;
                        font-weight: 500;
                        color: #6c757d;
                        text-transform: uppercase;
                        letter-spacing: 0.5px;
                        margin: -8px 0 0 0;
                    }
                    
                    .datos{
                        display: grid;
                        grid-template-columns: repeat(2, 1fr);
                        gap: 8px;
                        margin-top: 8px;
                        
                        .dato{
                            display: flex;
                            align-items: center;
                            gap: 6px;
                            font-size: 0.85rem;
                            color: #495057;
                            padding: 6px 8px;
                            background: #f3f3f3;
                            border-radius: 8px;
                            span{
                                color: #0dafcc;
                                font-size: 0.9rem;
                                width: 16px;
                                text-align: center;
                            }
                        }
                    }
                    
                    .precios{
                        border-top: 1px solid #e9ecef;
                        display: flex;
                        justify-content: center;
                        gap: 12px;
                        >div{
                            font-size: 1.2rem;
                            font-weight: 700;
                            color: #0dafcc;
                            background: linear-gradient(90deg, #274198 0%, #0dafcc 100%);
                            -webkit-background-clip: text;
                            -webkit-text-fill-color: transparent;
                            background-clip: text;
                            letter-spacing: 0.02em;
                            margin-top: 10px;
                        }
                    }
                }
                
                .btn_fav{
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    font-size: 1.2rem;
                    cursor: pointer;
                    z-index: 10;
                    background-color: #fff;
                    border-radius: 50%;
                    width: 36px;
                    height: 36px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                    >i{
                        color: #dc3545;
                        transition: transform 0.2s ease;
                        &:hover{
                            transform: scale(1.1);
                        }
                    }
                }
            }
        }
    }
    .ordenar_por{
        text-align: right;

        select{
            margin-top: 0;
            padding: 6px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 0.90rem;
            color: #2c3e50;
            background: #fff;
            transition: all 0.3s ease;
            cursor: pointer;

            &:hover{
                border-color: #0dafcc;
            }
        }
    }
    .paginacion{
        margin-top: 30px;
        padding: 20px 0;
        border-top: 2px solid #e9ecef;
        
        .paginacion_wrap{
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
            
            .info_resultados{
                font-size: 0.95rem;
                color: #6c757d;
                font-weight: 500;
            }
            
            .controles_paginacion{
                display: flex;
                gap: 8px;
                align-items: center;
                flex-wrap: wrap;
                justify-content: center;
                
                .btn_pagina{
                    padding: 10px 16px;
                    background: #ffffff;
                    border: 2px solid #dee2e6;
                    border-radius: 8px;
                    font-size: 0.9rem;
                    font-weight: 600;
                    color: #2c3e50;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    min-width: 44px;
                    
                    &:hover:not(.disabled):not(.active){
                        background: #f8f9fa;
                        border-color: #0dafcc;
                        color: #0dafcc;
                        transform: translateY(-2px);
                        box-shadow: 0 4px 8px rgba(13, 175, 204, 0.15);
                    }
                    
                    &.active{
                        background: linear-gradient(90deg, #274198 0%, #0dafcc 100%);
                        border-color: #0dafcc;
                        color: #ffffff;
                        box-shadow: 0 4px 12px rgba(39, 65, 152, 0.3);
                    }
                    
                    &.disabled{
                        opacity: 0.4;
                        cursor: not-allowed;
                    }
                    
                    i{
                        font-size: 0.85rem;
                    }
                }
                
                .puntos{
                    padding: 0 8px;
                    color: #6c757d;
                    font-weight: 600;
                }
            }
        }
    }
    .cabecera_vendor{
        margin-bottom: 20px;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        display: flex;
        align-items: flex-start;
        gap: 40px;
        align-content: flex-start;
        .logo{
            width: 130px;
            height: 130px;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            flex-shrink: 0;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
        .datos{
            font-size: 1rem;
            font-weight: 600;
            color: #2c3e50;
            >div:has(i.fa-store){
                width: 55px;
                height: 55px;
                border-radius: 12px;
                background: #274198;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                i{
                    font-size: 28px;
                    color: white;
                }
            }
            .vendor_info{
                flex: 1;
                h4{
                    margin: 0 0 6px 0;
                    font-size: 1.2rem;
                    font-weight: 700;
                    color: #2c3e50;
                    letter-spacing: -0.02em;
                }
                .ubicacion{
                    margin: 0;
                    font-size: 0.9rem;
                    color: #6c757d;
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    i{
                        color: #0dafcc;
                        font-size: 0.85rem;
                    }
                }
            }
            .vendor_contacto{
                margin-top: 8px;
                font-size: 0.9rem;
                color: #495057;
                display: grid;
                align-items: center;
                grid-template-columns: 1fr 1fr;
                a{
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    cursor: pointer;
                    transition: color 0.3s ease;
                    margin-right: 10px;
                    &:hover{
                        color: #0dafcc;
                    }
                }
                i{
                    color: #0dafcc;
                    font-size: 0.85rem;
                }
                i.fa-envelope{
                    margin-top: 5px;
                }
                a{
                    color: #495057;
                    text-decoration: none;
                    transition: color 0.3s ease;
                    &:hover{
                        color: #0dafcc;
                    }
                }
            }
        }
        .gmaps{
            iframe{
                border: none;
                border-radius: 12px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                width: 100%;
                height: 200px;
            }                
        }
    }
}

/* Responsive - Vista móvil */
@media (max-width: 768px) {
    #buscador{
        grid-template-columns: 1fr;
        gap: 16px;
        
        > div.filtros{
            position: static;
            max-height: none;
            padding: 16px;
            
            form{
                gap: 16px;
                
                > div{
                    > label{
                        font-size: 0.8rem;
                    }
                }
                
                input[type="text"]{
                    padding: 10px 14px;
                    font-size: 0.9rem;
                }
            }
        }
        
        > div.contenidos{
            padding: 0;
            
            .filtro_aplicado{
                padding: 12px;
                gap: 8px;
                
                .filtro_item{
                    font-size: 0.8rem;
                    padding: 6px 12px;
                }
            }
            
            >div.elementos{
                grid-template-columns: 1fr;
                .caja_coche{
                    flex-direction: column;
                    
                    .cont_img{
                        width: 100%;
                        height: 200px;
                    }
                    
                    .cont_info{
                        width: 100%;
                        padding: 12px;
                        
                        .titulo{
                            font-size: 1rem;
                        }
                        
                        .marymod{
                            font-size: 0.85rem;
                        }
                        
                        .datos{
                            gap: 8px;
                            
                            .dato{
                                font-size: 0.75rem;
                            }
                        }
                        
                        .precios{
                            font-size: 1.1rem;
                        }
                    }
                }
            }
            
            .paginacion{
                .paginacion_wrap{
                    .controles_paginacion{
                        flex-wrap: nowrap;
                        gap: 4px;
                        
                        .btn_pagina{
                            padding: 6px 10px;
                            font-size: 0.85rem;
                            
                            &:not(.disabled){
                                min-width: 32px;
                            }
                        }
                        .btn_pagina:first-of-type,
                        .btn_pagina:last-of-type{
                            display: flex;
                            align-items: center;
                            gap: 4px;
                            >span{
                                display: none;
                            }
                        }
                        
                        .puntos{
                            font-size: 0.85rem;
                        }
                    }
                }
            }
            .cabecera_vendor{
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 20px;
                
                .logo{
                    width: 100px;
                    height: 100px;
                }
                
                .datos{
                    .vendor_info{
                        h4{
                            font-size: 1rem;
                        }
                    }
                    .vendor_contacto{
                        grid-template-columns: 1fr 1fr;
                        gap: 12px;
                    }
                }
                
                .gmaps{
                    iframe{
                        height: 150px;
                    }                
                }
            }
        }
    }
}