@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.filtros a,
.filtros b,
.filtros div,
.filtros h2,
.filtros h3,
.filtros h4,
.filtros h5,
.filtros p {
  font-family: 'Barlow', sans-serif;
      font-size: 22px;
      color: rgba(0, 40, 86, 1);
}
.filtros span {
  font-family: 'Barlow', sans-serif;
      font-size: 16px;
      color: rgba(0, 40, 86, 1);
}
    .filtros {
    position: relative;
    height: fit-content;
    margin: 0 15px;
    margin: 25px 0 6px 0;
    margin: 20px 15px;
}
.primero .owl-nav.disabled {
    display: none;
}
/*.owl-carousel.primero .owl-nav {
    display: none;
}*/
   .filtroB {    
    background: #e7eaef;    
}

.filtros .filtroB form .optionFilter {
    display: flex;
    flex-direction: row;
    width: 25%;
    justify-content: flex-start;
}
.optionFilter:has([name="vehiculo"]) span.select2-selection__rendered::before {
    content: '';
    background: url("/arquivos/Marca del vehiculo-gris.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;   
    padding: 0 0 2px;
    pointer-events: none;
}

.optionFilter:has(.img-filter-select) span.select2-selection__rendered::before {
display: none;
}


.optionFilter:has([name="Familia"]) span.select2-selection__rendered::before {
    content: '';
    background: url("/arquivos/Modelo del vehiculo-gris.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;   
    padding: 0 0 2px;
    pointer-events: none;
}

.optionFilter:has([name="Modelo"]) span.select2-selection__rendered::before {
    content: '';
    background: url("/arquivos/filter-Ano de fabricacion-gris.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;   
    padding: 0 0 2px;
    pointer-events: none;
}

span[title="Cilindraje"]::before {
    content: '';
    background: url("/arquivos/filter-Cilindraje-gris.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;   
    padding: 0 0 2px;
    pointer-events: none;
}
.filtros span.select2-selection.select2-selection--single {
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 12px
}
.filtros .filtroB form.filtrosP .optionFilter {
    display: flex;
    flex-direction: row;
    width: 24%;
    height: 43px;
}

.filtros .filtroB .select2-container.select2-container--default:after {
    content: '';
    background: url(/arquivos/arrowDownMenu.png) no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;
    right: 15px;
    top: 15px;
    padding: 0 0 2px;
    position: absolute;
    pointer-events: none;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #5897fb;
    color: white;
}
.filtros .select2-container .select2-selection--single .select2-selection__rendered {
    display: inline-flex !important;
    align-content: center;
    gap: 5px;
    width: 100%;
    align-items: center;
    font-weight:400;
    font-size: 18px;
    color: rgba(154, 156, 162, 1);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.filtros 
span.select2.select2-container.select2-container--default {
    min-width: 190px;
    width: 100% !important;
}
.filtros .filtroB form div.actionFilter {
    gap: 15px;
    width: 150px;
    width: 50%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 117%; */
    margin-top: 0;
}
.filtros .filtroB form div.actionFilter p {
    color:  #1d385f;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}
a.botonF {
    width: 90%;
    display: block;
    margin: 0;
    background: #4586dd;
    color: #fff;
    text-transform: uppercase;
    padding: 15px 0;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
}
.filtroB:before {
    content: '';
    position: initial !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: none;
}
.filtroB select {
    width: 80%;
    margin: 0;
    color: #000000;
    font-weight: 300;
    text-transform:none;
    font-size: 15px;
    border-radius: 0;
    letter-spacing: .5px;
    border-color: #bcbdbe;
    border-radius: 5px;
}
span.textop {
    font-weight: 300;
    color: #fff;
    font-size: 19px;
    margin: 0;
    display: flex;
    align-items: center;
}
form.filtrosP {
    display: flex;
    align-items: center;
    padding: 0 80px;
    gap: 2%;
    width: 85%;
    padding-top: 0;
    flex-direction: column;
}
.filtroB {
    width: 100%;
    background: #ffffff;
    /* margin: 0 15px; */
 position: initial !important;;
    height: 100%;
    background-size: 100%;
    background-position: center;
    display: flex;
}
a.botonFP.filtro-parcial {
      /* width: 60%;
      margin: 0;
      background: transparent;
      color: #3585da;
      text-transform: capitalize;
      text-decoration: underline;
      padding: 10px 0;
      font-weight: 500;
      text-align: center;
      font-size: 15px;
      position: initial;
      gap: 4px;
      display: flex;
      justify-content: center; */
}
a.botonFP.filtro-parcial {
        width: 100%;
        display: block;
        margin: 0;
        background: #002856;
        color: #fff;
        /* text-transform: uppercase; */
        padding: 15px 45px;
        font-weight: 400;
        text-align: center;
        border-radius: 10px;
        font-size: 14px;
        border-radius: 5px;
        text-decoration: none;
}
div#titleFilter {
    font-family: 'Poppins' !important;
    /* font-size: 2rem; */
    width: 100%;
    display: flex;
    font-weight: bold;
    color: rgb(51 140 222);
    /* position: absolute; */
    margin-top: 20px;
    align-items: center;
    height: 10%;
    justify-content: center;
    left: 0;
    top: 0;
}
a.botonFP.filtro-parcial:after {
/*      content: '';
    background: url(/arquivos/icons8-flecha-derecha-larga-48.png);
    background-size: contain;
    width: 20px;
    background-repeat: no-repeat;
    display: inline-flex;
    height: 15px; */
}
a.botonFP.filtro-parcial[href=""] {
    opacity: 0.5;
}
.optionFilter {
  position: relative;
}

/*To remove button from IE11, thank you Matt */
.optionFilter select::-ms-expand {
     display: none;
}

.img-filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.img-filter-select_img {
  width: auto;
  object-fit: contain;
  max-width: 45px;
  height: 25px;
  display: inline-block;
  flex-basis: 20%;
  vertical-align: middle;
}


.filtros .select2-container.select2-container--default:after {
  content: '';
  background: url('/arquivos/flechaFiltroMaster.png') no-repeat;
  width: 15px;
  background-size: contain;
  height: 15px;
  color: #333;
  /*   -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg); */
  right: 15px;
  /*Adjust for position however you want*/
  top: 22px;
  padding: 0 0 2px;
  /*left line */
  position: absolute;
  pointer-events: none;
}

.optionFilter select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Add some styling */
  display: block;
  width: 100%;
  max-width: 320px;
  height: 50px;
  margin: 5px 0px;
  padding: 0px 24px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: #333;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #cccccc;
  -ms-word-break: normal;
  word-break: normal;
}

@media (max-width: 1500px){
  a.botonFP.filtro-parcial {
    width: 80%;
    justify-content: flex-end;
}
  .optionFilter select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    max-width: 320px;
    height: 50px;
    margin: 5px 0px;
    padding: 0px 12px;
    font-size: 12px;
    line-height: 1.75;
    color: #000;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    -ms-word-break: normal;
    word-break: normal;
    font-weight: 400;
}
  .optionFilter:after {
  right: 5px;
  }
 .filtros span {
    font-size: 14px;
}
    span.textop {
    display: none;
}
}
@media (max-width: 1368px) {
    span.select2.select2-container.select2-container--default {
        min-width: 155px;
    }
}
@media (max-width: 1200px) {
 form.filtrosP {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 2%;
    width: 96%;
}
  .page .filtros .filtroB form div.actionFilter p {
    color: #1d385f;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}
  a.botonFP.filtro-parcial {
    width: 100%;
    font-size: 12px;
    padding: 15px 55px;
    position: initial;
    border-radius: 15px;
}
  a.botonF {
    width: 80%;
    font-size: 12px;
    border-radius: 5px;
}
  .optionFilter select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 50px;
    margin: 5px 0px;
    padding: 0px 10px;
    font-size: 11px;
    line-height: 1.75;
    color: #000;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    -ms-word-break: normal;
    word-break: normal;
    font-weight: 400;
}

span.textop.marca:before {
    content: '';
    width: 35px;
    display: block;
    height: 35px;
    margin: 10px ;
}

span.textop.family:before {
    content: '';
    width: 35px;
    display: block;
    height: 35px;
    margin: 10px ;
}

span.textop.modelo:before {
    content: '';
    width: 35px;
    display: block;
    height: 35px;
    margin: 10px ;
}

span.textop.motor:before {
    content: '';
    width: 35px;
    display: block;
    height: 35px;
    margin: 10px ;
}
  .filtros .filtroB form .optionFilter {
    display: flex;
    flex-direction: row;
    width: max-content;
}
}

span.select2-container.select2-container--default.select2-container--open li:first-child {
    display:none;
}

input.select2-search__field {
    text-align: center;
}

li:hover img.img-filter-select_img {
filter: brightness(0) saturate(100%) invert(100%) sepia(7%) saturate(27%) hue-rotate(199deg) brightness(107%) contrast(105%);
}

 .select2-container--default .select2-results__option--selected img.img-filter-select_img {
filter: brightness(0) saturate(100%) invert(100%) sepia(7%) saturate(27%) hue-rotate(199deg) brightness(107%) contrast(105%);
}

.optionFilter:has(.textop.modelo) .select2-container--below .select2-selection__rendered::before {
    content: '';
    background: url("/arquivos/filter-Ano de fabricacion.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;
    padding: 0 0 2px;
    pointer-events: none;
}

.optionFilter:has(.textop.motor) .select2-container--below .select2-selection__rendered::before {
    content: '';
    background: url("/arquivos/filter-Cilindraje.png") no-repeat;
    width: 15px;
    background-size: contain;
    height: 15px;
    color: #333;
    padding: 0 0 2px;
    pointer-events: none;
}

/* MOBILE + TABLET: 2Ã—2 GRID */
@media (max-width: 1024px) {
    div#titleFilter {
    font-family: 'Poppins' !important;
    /* font-size: 2rem; */
    width: 100%;
    display: flex;
    font-weight: bold;
    color: rgb(51 140 222);
    /* position: absolute; */
    margin-top: 20px;
    align-items: center;
    height: 100%;
    justify-content: center;
    left: 0;
    top: 0;
}
  .filtros form .rowFilter .optionsFilter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 per row */
    gap: 12px; /* spacing between selects */
    width: 100%;
  }

  .optionFilter {
    width: 100% !important;
  }
.filtros .rowFilter {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    /* padding: 0 80px; */
    gap: 20px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}
.filtros p {
    font-family: 'Poppins';
    font-size: 25px;
    text-align: center;
    color: rgba(51, 140, 222, 1);
}.img-filter-select_img {
    width: auto;
    object-fit: contain;
    max-width: 25px;
    height: 25px;
    display: inline-block;
    flex-basis: 20%;
    vertical-align: middle;
}
}

/* VERY SMALL MOBILE: stack if needed */
@media (max-width: 480px) {
  .optionsFilter {
    grid-template-columns: 1fr; /* 1 per row if too tight */
  }
}

@media (max-width: 400px) {

.filtros span.select2.select2-container.select2-container--default {
    min-width: 160px;
    width: 100% !important;
}
}