main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  align-items: center;
  margin-bottom: 1em;
  position: relative;
}
main p {
  color: #202020;
}
main h2 {
  margin-bottom: 2em;
}
main article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 1em;
  border-bottom: 1px solid #222;
}
main article h1 {
  background-color: #1881d6;
  padding: 1em;
  color: #eee;
  text-align: center;
  border-radius: 5px;
  width: 100%;
  margin: 0;
}
main article .action {
  width: 100%;
  margin: 0;
}
main article .action ul {
  display: flex;
  width: 100%;
  padding: 0;
  background-color: #56838f0e;
}

main article .action ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 1em;
  margin: auto;
  width: 20%;
}
main article .action ul a {
  color: #222;
  text-decoration: none;
  padding: 1em;
}
main article .action ul figure {
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: space-evenly;
}

main article .action ul img {
  width: 3.5em;
  object-fit: contain;
  padding-bottom: 5%;
}

.portada-container {
  display: flex;
  width: 70%;
  justify-content: center;
}
.portada-container img {
  object-fit: scale-down;
  width: 100%;
}

article p {
  color: #222;
  font-size: 1rem;
}

.especificacion {
  width: 95%;
  text-align: center;
}
.especificacion ul {
  display: flex;
  gap: 1em;
  padding: 0;
  flex-wrap: wrap;
}

.especificacion ul li {
  border: 1px solid #9b9696;
  width: 32%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0.5em;
}

.especificacion ul li img {
  width: 60%;
  object-fit: scale-down;
}

.especificacion ul li p {
  font-size: 0.8rem;
}

.versiones-container {
  width: 100%;
  text-align: center;
  padding: 1em;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.versiones-container .versiones {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.versiones-box {
  width: 45%;
  border: 1px solid #20202027;
  transition: 0.35s all;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.versiones-box ul {
  display: flex;
  padding: 1em;
  width: 100%;
  gap: 1em;
  justify-content: center;
  align-items: flex-start;
}
.versiones-box img {
  width: 50%;
}
.versiones-box ul li {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  transition: 0.34s all;
}
.versiones-box ul .color-active {
  border: 2px solid #222;
  padding: 3px;
}

.versiones-box ul li button {
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.versiones-box .blanco-perlado {
  background-color: #f4f4f2;
}
.versiones-box .negro-mica {
  background-color: #21130d;
}
.versiones-box .rojo-metalizado {
  background-color: #8a0309;
}
.versiones-box .gris-azulado {
  background-color: #8e9da7;
}
.versiones-box .gris-oscuro-metalizado {
  background-color: #a6a6a6;
}
.versiones-box .azul-metalizado {
  background-color: #15296d;
}
.versiones-box .gris-plata {
  background-color: #c9cec7;
}
.versiones-box .super-blanco {
  background-color: #f4f4f2;
}

.versiones-box .celeste-metalizado {
  background-color: #1a7daf;
}
.versiones-box .plata-metalizado {
  background-color: #d3d3d3;
}

.versiones-box .bronce-metalizado {
  background-color: #856a61;
}

.versiones-box .urban-khaki {
  background-color: #747e73;
}

.versiones-box small {
  color: #8a8a8a;
  margin: 0;
}

.versiones-box small:nth-last-child(2) {
  text-transform: capitalize;
  margin-bottom: 1em;
}

.versiones .caracteristicas ul li {
  display: flex;
  gap: 1em;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.versiones .caracteristicas .content {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100%;
  flex-wrap: wrap;
}
.versiones .caracteristicas .content img {
  width: 40px;
}

.diferenciales {
  width: 90%;
  text-align: center;
}
.diferenciales-container {
  width: 100%;
  padding: 1em;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.diferenciales-container ul {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 0;
  align-items: stretch;
}
.diferenciales-container ul li {
  width: 90%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.diferenciales-container .content {
  display: flex;
  flex-direction: column;
  width: 90%;
}

.diferenciales-container .content img {
  width: 100%;
  object-fit: scale-down;
}
.diferenciales h3 {
  color: #868686;
  margin-bottom: 0;
}
.diferenciales p {
  font-size: 1rem;
  text-wrap: balance;
}

.galeria {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;

  .galeria-container {
    display: flex;
    width: 80%;
    gap: 1rem;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    content-visibility: auto;

    > img {
      object-fit: cover;
      width: 300px;
      height: 200px;
      border-radius: 5px;
      transition: 1s;
      cursor: pointer;
    }
    > img:active {
      transform: scale(1.1);
    }
  }

  .modal-galeria {
    background-color: #202020f6;
    position: fixed;
    width: 100%;
    z-index: -1;
    inset: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    transition: 0.35s;
    padding: 2rem;

    .modal-img-galeria {
      width: 60%;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid #eeeeee9f;
      border-radius: 5px;
      background-color: #000;

      > img {
        width: 100%;
        height: auto;
        object-fit: scale-down;
      }
    }
  }
  .modal-galeria-active {
    opacity: 1;
    z-index: 1;
  }

  button {
    width: 40px;
    height: 40px;
    background-color: #000;
    img {
      width: 20px;
    }
  }
}

.legales {
  padding: 1em;
  margin: 0;
}
.info-legales {
  padding: 1em;
  border-top: 1px solid #202020;
}
.info-legales p {
  display: block;
  margin: 0;
  text-align: start;
}

@media only screen and (max-width: 760px) {
  main article h1 {
    padding: 0.5em;
    text-wrap: balance;
    font-size: 1.1rem;
  }
  main h2 {
    margin: 0.8em;
  }
  main article .action ul {
    flex-direction: column;
    align-items: center;
  }
  main article .action ul img {
    width: 2em;
    margin: 0;
  }
  main article .action ul a {
    padding: 0;
  }

  main article .action ul li {
    margin: 0;
    width: 100%;
  }
  main article .action ul figure,
  figcaption {
    width: 100%;
    margin: 0;
  }

  .versiones-container .versiones {
    flex-direction: column;
    gap: 1em;
  }

  .versiones-box {
    width: 100%;
    border: 1px solid #202020;
  }

  .diferenciales-container ul {
    flex-direction: column;
    width: 100%;
  }

  .especificacion ul {
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-x: scroll;
    width: 100%;
    scroll-snap-type: x mandatory;
  }

  .especificacion ul li {
    width: 100vw;
  }
  .especificacion ul li img {
    width: 95vw;
  }

  .diferenciales-container ul {
    align-items: center;
  }

  .versiones-box ul {
    justify-content: space-between;
  }
  .versiones-box ul:nth-child(1) {
    flex-direction: column;
    gap: 1em;
  }
}
