body{
    margin: 0;
    box-sizing: border-box;
    --colorBase: #f7921f;
}


/*---------------------Header--------------------------------*/

.hdr{
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 650px;
    height: 600px;
    background-image: url(img_index/autofondo3.jpg);
    background-size: cover;
    background-position: center;
    
    transition: background-image 0.5s ease-in-out, opacity 0.5s ease-in-out;
   margin-bottom: 40px;
}

.hdr__barra{
  width: 100%;
  max-width: 650px;
  height: 80px;
  background-color: white;
  display: flex;
  flex-direction: row;
  justify-content:space-around;
  align-items: center;
  gap: 20px;
}


.boton__subiraviso{
  display: flex;
  justify-self: center;
  background-color: white;
  border: 2px solid var(--colorBase);
  color: var(--colorBase);
  font-family: sans-serif;
  font-weight: bold;
  width: 120px;
  height: 35px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  transition: background-color 1s ease;
  text-decoration: none;
}

.boton__subiraviso:hover{
  background-color: #494949;
}

.tu{
  font-family: sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.aviso{
  color: var(--colorBase);
  font-size: 19px;
}

.img_tuaviso{
  width: 75px;
  height: 22px; 
}


.hdr__encontra{
    font-family: sans-serif;
    color: white;
    font-size: 30px;
    font-weight: bold;
    border: 1px solid var(--colorBase);
    border-radius: 10px;
    padding: 10px;

}

.hdr__nav{
    width: 330px;
    height: 250px;
    max-width: 650px;
    max-height: 400px;
    background-color:white;
    border: 1px solid var(--colorBase);
    border-radius: 10px;
    overflow: hidden;
    transition: height 1s ease;
}

.hdr__nav.active{
    height: 0px;
    opacity: 0;
    overflow: hidden;
    transition: height 1s ease;
}

.hdr__ul{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    list-style-type: none;
    width: 240px;
    
}

.hdr__item{
    font-family: sans-serif;  
}

.hdr__item:hover{
    border: 2px solid var(--colorBase);
    border-top: none;
    border-left: none;
    border-right: none;
}

.hdr__link{
    text-decoration: none;
    color: #000;
}

.nav__buscar{
    display: flex;
    flex-direction: column;
    justify-self: center;
    gap: 5px;
}

.nav__filtros{
    padding: 10px;
    border-radius: 30px;
    width: 20px;
    background-color: #494949;
    color: white;
    
    margin: 0px;
    text-decoration: none;
    text-align: center;
}


.hdr__nav2{
  
    width: 335px;
    height: 0px;
    opacity: 0;
    overflow: hidden;
    max-width: 650px;
    max-height: 350px;
    background-color:#494949;
    border: 1px solid var(--colorBase);
    border-radius: 10px;

   transition: height 1s ease;
}

.hdr__nav2.active{
    height: 280px;
    opacity: 1;
}


.hdr__ul2{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    list-style-type: none;
    width: 240px;
    
}

.hdr__item2{
    font-family: sans-serif;  
}

.hdr__link2{
    text-decoration: none;
    color: white;
}

.link_tuaviso{
  text-decoration: none;
}




#busqueda{
    border-radius: 10px;
    padding: 20px;
    font-family: sans-serif;
    font-weight: bold;
    width: 240px;
    max-width: 355px;
}

#buscar{
    background-color: var(--colorBase);
    border-radius: 10px;
    color: azure;
    padding: 20px;
    font-family: sans-serif;
    font-weight: bold;
    width: 285px;
    cursor: pointer;
}

/*----------Prueba filtros------------------*/
.hdr__nav2 form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    color: white;
    font-family: sans-serif;
  }

  #formFiltros{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
}

  .filtro{
    display: flex;
    flex-direction: column;
  }
  
  .hdr__nav2 label {
    font-size: 14px;
  }
  
  .hdr__nav2 input,
  .hdr__nav2 select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 130px;
  }

  .btn__aplicarfiltro{
    font-family: sans-serif;
    font-size: 15px;
    background-color: var(--colorBase);
    border-radius: 10px;
    color: azure;
    font-weight: bold;
    padding: 5px;
    cursor: pointer;

    grid-column: span 2;
    justify-self: center;
    width: 300px;
    height: 60px;
  }



/*-------------------------------------------*/

@media (min-width:700px){

.hdr{
    max-width: 100%;
    background-image: url(img_index/autofondo.jpg);
    }

.hdr__barra{
    width: 100%;
    max-width: 100%;
    align-items:center;
    justify-content: space-around;
    gap: 650px;
    white-space: nowrap;
    }

.hdr__nav{
    width: 800px ;
    max-width: 800px;
    max-height: 400px; 
}

.hdr__nav2{
    width: 525px;
}

.img_tuaviso{
  width: 85px;
  height: 25px;
}

#formFiltros{
    width: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
}

.filtro{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    
}

.btn__aplicarfiltro{
    grid-column: span 2;
    justify-self: center;
    width: 450px;
    height: 50px;
    
}


.hdr__ul{
        width: 740px;
        gap: 100px;
        margin-bottom: 30px;
}


.hdr__nav2 label {
    width: 150px;
    
  }
  
  .hdr__nav2 input,
  .hdr__nav2 select {
    width: 150px;
  }

#busqueda{

    width: 940px;
    max-width: 740px;
   
}

#buscar{

    width: 785px;
}



} 






/*--------------------Main----------------------------------*/

.mn{
    width: 100%;
    max-width: 650px;
    height: 100%;
    background-color:white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
}

/*-----------Publicidad--------------*/

.publicidad{
  width: 328px;
  height: 230px;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  overflow: hidden;
  padding-left: 10px;
}



.publicidad1{
  width: 326px;
  height: 200px;
  border-radius: 10px;
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 20px;
  background-image: url("img_index/peugeot308.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.publicidad1 p{
  margin: 10px;
}

.publicidad2{
  width: 326px;
  height: 200px;
  border-radius: 10px;
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 20px;
  background-image: url("img_index/concesionaria.jpg");
  background-position: center;
  background-size: cover;
}

.publicidad2 p{
  margin: 10px;
}

.publicidad3{
  width: 326px;
  height: 200px;
  border-radius: 10px;
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 20px;
  background-image: url("img_index/negocio.jpg");
  background-position: center;
  background-size: cover;
}

.publicidad3 p{
  margin: 10px;
}

.publicidad3_p{
  font-size: 40px;
}

.publicidad > div {
  transition: opacity 1s ease;
  opacity: 0;
  position: absolute;
 pointer-events: none;
}

.publicidad > div.visible {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}


/*-----------Carrusel----------------*/

.cont__auto{
  position: relative;
    width: 318px;
    height: 650px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 40px;
    border: 1px solid var(--colorBase);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 2px 10px 8px #c7c7c7;
}

.cont__auto:hover{
    border: 3px solid var(--colorBase);
}

.cont__img--auto{
    position: relative;
    width: 330px;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;   
   
}

.img__autos{
    width: 100%;
    height: 100%;
    object-fit:contain;
}

.carrusel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carrusel-inner img {
    min-width: 100%;
    flex-shrink: 0;
  }

.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
}

.btn-carrusel:hover{
    opacity: 0.7;
}

.btn-carrusel.prev { left: 10px; }
.btn-carrusel.next { right: 10px; }

.spn__nombre{
    margin-top: 20px;
    font-family: sans-serif;
    font-size: 25px;
    font-weight: bold;
}

.ul__autos{
font-family: sans-serif;
text-align: left;
font-size: 20px;
list-style-type: none;
}

.li__autos{
font-size: 18px;
margin-bottom: 5px;
}

.material-icons {
    font-size: 20px; /* Tamaño */
    color: var(--colorBase); /* Color */
    margin-right: 10px; /* Espaciado */
    vertical-align: middle; /* Alineación vertical */
  }

  

  .vendedor__logo{
    position: absolute;
    top: 260px;
    left: 210px;
    margin-top: 2px;
    width: 100px;
    height: 30px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    z-index: 10;
    opacity: 0.7;
  }


.precio__autos{
margin: 0;
font-size: 18px;
font-family: sans-serif;
}

.costo__autos{
margin: 0;
font-family: sans-serif;
font-size: 25px;
font-weight: bold;
}

.link__ver--autos{
  width: 280px;
  height: 20px;
  max-width: 300px;
  max-height: 80px;
  color: azure;
  font-family: sans-serif;
  font-size: 25px;
  background-color: var(--colorBase);
  border-radius: 10px;
  text-decoration: none;
  padding: 20px;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*---NO RESULTADO---*/

.cont__img--noresu{
    width: 250px;
    height: 200px;
    border-radius: 10px;
    margin-top: 20px;
}

.img__noresu{
    width: 100%;
    height: 100%;
}


.noresu{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    text-align: center;
    padding: 5px;
    background-color: var(--colorBase);
    font-weight: bold;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    border-radius: 10px;
}

/*-------------Agencias----------------*/
.agencias {
  margin: 20px auto;
  width: 100%;
  max-width: 900px;
}

.agencias__titulo {
  font-family:sans-serif;
  font-size: 25px;
 font-weight:400;
  margin-bottom: 10px;
  text-align: center;
}

.agencias_titulo2{
  color: var(--colorBase);
}


.carrusel-agencias {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.carrusel-agencias::-webkit-scrollbar {
  display: none; /* ocultar scrollbar */
}

.imgagencia {
 
  width: 120px;
  height: 120px;
  border-radius: 150px;
  border: 2px solid var(--colorBase);
  cursor: pointer;
}

.carrusel-agencias-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 3px;
}

.btn-agencias {
  display: none; /* ocultos por defecto */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--colorBase);
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 40%;
  z-index: 10;
}

.btn-agencias:hover{
  opacity: 0.7;
}

.btn-agencias.prev {
  left: 5px;
}

.btn-agencias.next {
  right: 5px;
}



/*--------------Promocion-------------*/

.destacados {
    margin: 20px auto;
    width: 100%;
    max-width: 900px;
  }
  
  .destacados__titulo {
    font-family:sans-serif;
    font-size: 25px;
   font-weight:400;
    margin-bottom: 10px;
    text-align: center;
  }

  .destacados_titulo2{
    color: var(--colorBase);
  }

  
  .carrusel-destacados {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }
  
  .carrusel-destacados::-webkit-scrollbar {
    display: none; /* ocultar scrollbar */
  }
  
  .card-destacado {
    flex: 0 0 auto;
    width: 180px;
    height: 230px;
    border-radius: 12px;
    border: 2px solid var(--colorBase);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    scroll-snap-align: start;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    position: relative;
  }
  
  .card-destacado span {
    background: rgba(0,0,0,0.4);
    padding: 2px 5px;
    border-radius: 5px;
    margin-bottom: 3px;
  }
  
  .card-destacado .btn__verpromo {
    margin: 5px 0 10px;
    background-color: #494949;
    color: var(--colorBase);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    border: none;
  }

  .carrusel-destacados-wrapper {
  
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 3px;
  }
  
  .btn-destacado {
    display: none; /* ocultos por defecto */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--colorBase);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 40%;
    z-index: 10;
  }

  .btn-destacado:hover{
    opacity: 0.7;
  }
  
  .btn-destacado.prev {
    left: 5px;
  }
  
  .btn-destacado.next {
    right: 5px;
  }



@media (min-width:650px){

    .mn{
        max-width: 100%;
    }

    .publicidad{
      width: 100%;
      max-width: 1000px;
      height: 500px;
      justify-self: center;
    }

    .publicidad1{
      width: 100%;
      max-width: 1000px;
      height: 400px;
    }

    .publicidad2{
      width: 100%;
      max-width: 1000px;
      height: 400px;
    }

    .publicidad3{
      width: 100%;
      max-width: 1000px;
      height: 400px;
    }

  .cont__auto{
    width: 600px;
  }

  .cont__img--auto{
    width: 580px;
  }

  .vendedor__logo{
    top: 280px;
    left: 380px;
  }

  .link__ver--autos{
    width: 400px;
    max-width: 400px;
  }

  .cont__img--noresu{
    width: 350px;
    height: 300px;
}

.noresu{
    width: 400px;
    height: 40px;
}

.btn-destacado {
    display: block;
  }

  .btn-agencias {
    display: block;
  }

  .destacados{
  max-width: 1200px;
  }


  .carrusel-destacados-wrapper{
    width: 100%;
    max-width: 1200px;
    padding-inline: 5px;
  }


} 

.btn_vermas{
  display: flex;
  justify-self: center;
  align-self: center;
  width: 200px;
  height: 40px;
  background-color: white;
  border-radius: 10px;
  margin-top: 60px;
  cursor: pointer;
  border: 1px solid var(--colorBase);
  box-shadow: 1px 2px 10px 1px #494949;
  
}

.spn_vermas{
  color: var(--colorBase);
  font-size: 20px;
  text-align: center;
  animation: fadeText 3s ease-in-out infinite;
}

@keyframes fadeText {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}



/*----------------------Footer-----------------------------*/

.ftr{
    width: 100%;
    max-width: 650px;
    height: 380px;
    max-height: 380px;
    background-color: var(--colorBase);
    border: 2px solid #000 ;
    color: azure;
    font-family: sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    font-size: 15px;
}

.cont__1{
  width: 100%;
    max-width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 10px;
}

.cont__1 a{
  text-decoration: none;
  color: white;
  white-space: nowrap;
}

.ftr_tu{
  font-family: sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.ftr_aviso{
  color: white;
  font-size: 19px;
}

.ftr_separador{
  background-color: white;
  width: 100%;
  max-width: 150px;
  height: 2px; 
}

.cont_insta{
  width: 100px;
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.imginsta{
width: 20px;
height: 20px;
border-radius: 5px;
}


@media (min-width:650px){

    .ftr{
      width: 100%;
        max-width: 100%;
        flex-direction: row;
        gap: 60px;
    }

    .ftr_separador{
      background-color: white;
      width: 100%;
      max-width: 2px;
      height: 150px; 
    }



} 