.centered, .centered-modal {
    display: flex;
    justify-content: center;
    align-items: center; 
  }

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;/*interfaz 1 30px interfaz 2 40px*/
    width: 250px;/*interfaz 1 150px interfaz 2 450px*/
    background-color: rgb(255, 255, 255);
    border-radius: 20px; /* Redondea las esquinas */
    transition: transform 0.3s, border-radius 0.3s; /* Agregamos transiciones suaves */
    cursor: pointer;
  }

  .search-bar i {
    color: rgb(35, 4, 148); /* Cambia el color del icono según tus preferencias */
    margin-right: 11px; /* Espacio entre el icono y el input */
  }

  .search-bar i:hover {
    color: rgb(255, 0, 0); /* Cambia el color a azul en hover */
  }
  
  .search-bar input {
    border: none;
    background: transparent;
    font-size: 13px;/*Interfaz 1 10px Interfaz 2 15px*/
    outline: none;
    width: 65%;
    transition: width 0.3s;
  }
  
  .search-bar:hover {
    transform: scale(1.05); /* Escalamos al 110% del tamaño original en hover */
    border-radius: 20px; /* Quitamos el redondeo en hover */
  }
  
  .search-bar input:focus {
    width: 75%; /* Expandimos el input al 100% al enfocarlo */
  }

  /*para celular
@media(max-width:858px){
    .search-bar {
        width: 300px;
    }
}*/

#modalFondoBusqueda {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  z-index: 999; /* Asegurar que el fondo esté detrás del modal */
}

#miModalBusqueda {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px; /* Establecer un ancho máximo para evitar que sea demasiado ancho en pantallas grandes */
  border-radius: 10px;
  max-height: 500px;
  padding: 20px;
  background: #fff;
  z-index: 1000;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.modal-search-bar {
  display: none;
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  height: 30px;/*interfaz 1 30px interfaz 2 40px*/
  width: 300px;/*interfaz 1 150px interfaz 2 450px*/
  background-color: rgb(238, 238, 238);
  border-radius: 20px; /* Redondea las esquinas */
  transition: transform 0.3s, border-radius 0.3s; /* Agregamos transiciones suaves */
  cursor: pointer;
}

.modal-search-bar i {
  color: rgb(35, 4, 148); /* Cambia el color del icono según tus preferencias */
  margin-right: 11px; /* Espacio entre el icono y el input */
}

.modal-search-bar input {
  border: none;
  background: transparent;
  font-size: 10px;/*Interfaz 1 10px Interfaz 2 15px*/
  outline: none;
  width: 65%;
  transition: width 0.3s;
}

.modal-search-bar:hover {
  border-radius: 20px; /* Quitamos el redondeo en hover */
}

.modal-search-bar input:focus {
  width: 75%; /* Expandimos el input al 100% al enfocarlo */
}

@media(max-width:1300px){
  .search-bar {
    width: 200px;/*interfaz 1 150px interfaz 2 450px*/
  }
}

@media(max-width:1090px){
  .search-bar {
    width: 160px;/*interfaz 1 150px interfaz 2 450px*/
  }
  .search-bar input {
    font-size: 10px;/*Interfaz 1 10px Interfaz 2 15px*/
  }
}


@media(max-width:1037px){
  .centered {
    display: none;
  }
  .modal-search-bar {
    display: flex;
  }
}



#listaArticulos{
  font-size: 30px;
  margin-top: 20px;
  list-style: none;
  color: #000000;
  max-height: 5 ;
}

.articulo{
  display: flex;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombreado */
  margin-bottom: 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.articulo:hover {
  background-color: #c5c5c5; /* Cambia el color de fondo al pasar el ratón por encima */
}

.detalles {
  margin-left: 20px;
  margin-top: 5px;
  flex: 70%; /* Ocupa el 65% del espacio disponible */
  padding-right: 20px; /* Espaciado derecho para separar del div de la imagen */
}

.detalles h3 {
  font-size: 15px;
}

.img-container{
  flex: 30%; /* Ocupa el 35% del espacio disponible */
  margin-right: auto;
}

.img-container img {
  max-width: 60px; 
  width: auto; 
  max-height: 60px; 
  height: auto; 
  border-radius: 5px;
  margin: 5px;
}


/*.articulo:nth-child(-n+5) {
  display: block;
}*/

.filtro{
  display: none;
}

#mensajeNoProductos{
  max-width: 80%;
  font-size: 20px;
  color: #707070;
  text-align: center;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}