@import url(custom-select.css);

.wrapper-catalog {
  margin: 0 auto;
  height: auto;
  text-align: center;
}

.container-img{
  background-image: url('../img/linea-productos.png');
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
}


.container-overlay{
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem;
  color: white;
}

.container-overlay h1 {
  color: white;
  font-size: 300%;
}


.buttons-container {
  display: flex;
  flex-wrap: wrap;
  margin: 32px auto;
  justify-content: center;
  gap: 20px;
  position: sticky;
  /* Change to sticky */
  top: 0;
  background-color: white;
  box-shadow: 2px 7px 12px -7px rgba(0,0,0,0.25);
  -webkit-box-shadow: 2px 7px 12px -7px rgba(0,0,0,0.25);
  -moz-box-shadow: 2px 7px 12px -7px rgba(0,0,0,0.25);
  z-index: 700;
  padding: 16px 0;
}

#buttons {
  display: flex;
}


.button-value,
.button-value-1,
.button-value-2 {
  padding: 8px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  transition: .3s;
}

.button-value:hover:not(.active-1),
.button-value-1:hover:not(.active-1),
.button-value-2:hover:not(.active-1) {
  background-color: rgb(231, 230, 230);
  transform: scale(1.1);
}

.button-value:first-child,
.button-value-1:first-child,
.button-value-2:first-child {
  border-radius: 5px 0px 0px 5px;
}

.button-value:last-child,
.button-value-1:last-child,
.button-value-2:last-child {
  border-radius: 0px 5px 5px 0px;
}

.active-1 {
  background-color: #324c80;
  color: #ffffff !important;
  font-weight: bold;
}

.image-container {
  text-align: center;
}

img {
  max-width: 100%;
  width: 100%;
  object-fit: contain;
}

.container-title {
  color: #000;
  padding: 8px;
}

.container-title h5 {
  font-size: 20px;
  margin: 16px auto;
}

.container-title .container-categories {
  display: flex;
  flex-wrap: wrap;
}

.product-category {
  background-color: rgb(233, 231, 231);
  border: 1px solid rgb(233, 231, 231);
  display: inline-block;
  border-radius: 5px;
  margin-right: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: .3s ease;
  padding: 8px;
}

.product-category:hover {
  transform: scale(1.1);
}

.android-so:hover {
  background-color: #6cfa56 !important;
}

.wm-so:hover {
  background-color: #2039f7 !important;
  color: white !important;
}

.wc-so:hover {
  background-color: #71b7f5 !important;
}

.win-so:hover {
  background-color: #2d48fa !important;
  color: white !important;
}

.no-so:hover {
  background-color: #494949 !important;
  color: white !important;
}

.manufactura-span:hover {
  background-color: #fa892d !important;
}

.almacen-span:hover,
.distribucion-span:hover {
  background-color: #966944 !important;
  color: white !important;
}

.salud-span:hover {
  background-color: white !important;
}

.campo-span:hover {
  background-color: #e3e18a !important;
}

.retail-span:hover {
  background-color: #016313 !important;
  color: white !important;
}

.hide {
  display: none;
}

.button-show-more {
  background-color: transparent;
  color: #324c80;
  padding: 8px 16px;
  margin: 8px auto;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.contenido {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  display: flex;
}

.mostrador {
  width: 100%;
  transition: .5s ease;
}

.mostrador {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 32px;
  margin-bottom: 32px;
}

.mostrador .item {
  max-width: 210px;
  text-align: center;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: .3s;
  height: fit-content;
}

.mostrador .item:hover {
  background-color: #e6e6e6;
}

.mostrador .item img {
  width: 100%;
  max-height: 50%;
  margin-bottom: 8%;
}

.mostrador .item .descripcion {
  color: #707070;
  font-weight: bold;
}

.seleccion {
  transition: .5s ease;
  display: none;
  visibility: hidden;
  width: 0%;
  border: 1px solid #ccc;
  background-color: white;
  position: sticky;
  top: 30%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  height: fit-content;
  /* background-color: green; */
}

.cerrar {
  position: absolute;
  right: 0;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.info {
  padding: 20px;
}

.info img {
  display: block;
  margin: 30px auto;
  width: 40%;
}

.info h2 {
  color: #707070;
  margin-bottom: 10px;
}

.info p {
  font-size: 14px;
  color: #707070;
  margin-bottom: 10px;
}

.info .precio {
  font-size: 30px;
  font-weight: bold;
  color: #f85151;
  margin-bottom: 10px;
  display: block;
}

.info .fila {
  display: flex;
  align-items: flex-end;
}

.info .fila label {
  display: block;
  margin-bottom: 10px;
}

.info .fila select {
  width: 100px;
  font-size: 18px;
  padding: 6px;
  margin-right: 30px;
}

.info .fila button {
  height: 40px;
  border: none;
  padding: 0 10px;
  color: #fff;
  background-color: #f85151;
}

@media (max-width: 838px) {
  img {
    max-width: 100%;
    width: 100%;
    object-fit: contain;
  }

  .mostrador {
    grid-template-columns: auto auto auto;
    grid-column-gap: 16px;
  }
}

@media (max-width: 720px) {
  #buttons {
    display: none;
  }

  .buttons-container {
    display: none;
  }
}

@media (max-width: 636px) {
  .mostrador {
    grid-template-columns: auto auto;
    grid-column-gap: 16px;
  }

  .contenido {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    display: flex;
    flex-direction: column-reverse;
  }

  .mostrador .item {
    max-width: max-content;
  }

  .seleccion {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
  }
}

@media (max-width: 400px) {
  .mostrador {
    grid-template-columns: auto;
    grid-column-gap: 16px;
  }
}