/* titles change */
.titlesContainers {
  width: 80%;
  margin: 50px auto 80px;
  display: flex;
  max-width: 1183px;
  position: relative;
  color: #000000;
  font-size: 16px;
  line-height: 20px;
}

.titlesContainers::after {
  content: "";
  height: 3px;
  background: #d6001a;
  width: calc((102% / 6) + 1%);
  position: absolute;
  bottom: -16px;
  -webkit-transition: left 0.5s ease-in-out;
  -o-transition: left 0.5s ease-in-out;
  transition: left 0.5s ease-in-out;
}

.titlesContainers[data-title-selected-id="1"]::after {
  left: -1%;
}

.titlesContainers[data-title-selected-id="2"]::after,
.titlesContainers[data-title-selected-id="7"]::after,
.titlesContainers[data-title-selected-id="8"]::after,
.titlesContainers[data-title-selected-id="9"]::after,
.titlesContainers[data-title-selected-id="10"]::after,
.titlesContainers[data-title-selected-id="11"]::after,
.titlesContainers[data-title-selected-id="12"]::after,
.titlesContainers[data-title-selected-id="13"]::after {
  left: calc((100% / 7) - 0.5%);
}

.titlesContainers[data-title-selected-id="3"]::after {
  left: calc((100% / 7) * 2 - 0.5%);
}

.titlesContainers[data-title-selected-id="4"]::after {
  left: calc((100% / 7) * 3 - 0.5%);
}

.titlesContainers[data-title-selected-id="5"]::after {
  left: calc((100% / 7) * 4 - 0.5%);
}

.titlesContainers[data-title-selected-id="6"]::after {
  left: calc((100% / 7) * 5);
}

.titlesContainers[data-title-selected-id="18"]::after {
  left: calc((100% / 7) * 6);
}

.titlesContainers::before {
  content: "";
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
  width: 102%;
  position: absolute;
  bottom: -15px;
  left: -1%;
}

.titleChange {
  text-align: center;
  cursor: pointer;
  flex-basis: 100%;
}

.titleChange.selected {
  font-weight: 600;
}

.mainDiv {
  display: none;
}

.mainDiv.selected {
  display: block;
}

/* end titles change */

.brandsContainer {
  display: grid;
  width: 70%;
  margin: 0 auto 80px;
  grid-template-columns: repeat(5, 1fr);
  gap: 65px;
}

.brandBox:hover img {
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

.brandBox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandImg {
  max-width: 97%;
  display: block;
  height: auto;

  transition: all 0.6s ease-out;
  -moz-transition: all 0.6s ease-out;
  -webkit-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
}

.brandBox:hover .brandImg {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

#revestimientosFilter,
#otrosFilter {
  position: relative;
  width: 350px;
  display: none;
  margin: 0 auto;
  height: auto;
  overflow: hidden;
  margin-bottom: 30px;
}

#revestimientosTitle,
#otrosTitle {
  position: relative;
  float: left;
  color: black;
  line-height: 32px;
}

#revestimientosSelect,
#otrosSelect {
  position: relative;
  float: left;
  width: 240px;
  margin-left: 30px;
  height: 32px;
  color: black;
  padding-left: 20px;
  background-image: url("../../files/downArrow.svg");
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: 55%;
}

@media screen and (max-width: 768px) {
  .brandsContainer {
    width: 85%;
    gap: 10px 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .titlesContainers {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    margin: 35px auto 20px;
  }

  .titleChange {
    flex: 0 0 auto;
    padding: 0 15px 0px;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
  }

  .titlesContainers::before {
    display: none;
  }

  .titlesContainers::after {
    display: none;
  }

  .titleChange.selected {
    text-decoration-color: #ed1b2e;
  }

  .brandBox {
    min-height: 150px;
  }

  #revestimientosFilter,
  #otrosFilter {
    width: 90%;
  }

  #revestimientosSelect,
  #otrosSelect {
    width: calc(100% - 100px);
  }
}