body {
  font-size: 1rem;
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
span {
  display: initial;
}

.repuestosOriginales {
  align-content: center;
  align-items: center;
  background-image: url("/public/images/repuestos/banner/repuestos-banner.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 70vh;
  justify-content: center;
  margin: auto;
  width: 100%;
}

.repuestosOriginales h1 {
  background-color: rgba(206, 206, 206, 0.749);
  border-radius: 5px;
  color: var(--colorPrimario);
  font-size: 4rem;
  margin-top: 0;
  padding: 1.5em;
  text-align: center;
  text-shadow: 2px 1px 2px #f9f9f9fc;
}

.productos {
  width: 80%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 1em;
  gap: 1em;
  transition: 0.34s all;

  & .categorias {
    padding: 1em;
    margin-top: 3em;
    & h2 {
      font-size: 1rem;
    }
    & ul {
      display: flex;
      gap: 5px;
      flex-direction: column;
      border: 1px solid #eee;
      padding: 1em;
      overflow: hidden;
      overflow-y: scroll;
      height: 90vh;
      padding-left: 0.8em;

      & span {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.6em;
        cursor: pointer;
        font-size: 0.8rem;
        align-items: flex-start;
        font-style: italic;

        & p {
          padding: 0;
          margin: 0;
          color: #222;
          font-size: 0.8rem;
          pointer-events: none;
        }
        & p:nth-child(1) {
          font-size: 0.7rem;
          color: #757070;
          pointer-events: none;
        }
        & p:nth-child(2)::before {
          content: url("../img/arrow-cat.svg");
        }
      }
    }
  }

  & .productos-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;

    & > span {
      color: #222;
      display: flex;
      align-items: center;
      justify-content: center;

      padding: 0.4em 0.7em;
      cursor: pointer;
      & p {
        color: #222;
      }
    }
    & > span::before {
      content: "x";
      margin-right: 5px;
      border: 1px solid #222;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 10px;
      height: 10px;
      text-align: center;
      padding: 10px;
    }
    .search-container {
      display: flex;
      justify-content: flex-start;
      width: 100%;
      flex-direction: column;
    }
    h3 {
      font-size: 1.5rem;
      color: #222;
      & span {
        color: var(--colorPrimario);
        font-style: italic;
      }
    }

    & form {
      display: flex;
      border: 1px solid #696969;

      & input {
        border: none;
        outline: none;
        padding-left: 5px;
        font-style: italic;
      }
      & button {
        background: #f2f2f2;
        border: none;
        padding: 0;
        border-radius: 0;
        width: 30px;
        height: min-content;

        & img {
          width: 100%;
        }
      }
    }

    & ul {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      padding: 5px;
      gap: 0.7em;
      padding: 1rem;
      align-items: flex-start;
      background-color: #d8d8d836;
      height: 90vh;
      overflow: hidden;
      overflow-y: scroll;
      justify-content: center ;

      & li {
        background-color: #fff;
        width: 30%;
        padding: 0.8rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;

        .img-container {
          width: 200px;

          img {
            width: 100%;
            object-fit: scale-down;
          }
        }
        > h2 {
          font-size: 1.2rem;
        }

        > h3 {
          font-size: 1.4rem;
          margin: 5px;
        }

        > .btn-wp {
          width: min-content;
          border-radius: 15px;
          padding: 0.7rem 2rem;
          background-color: var(--WhatsAap);
          margin-bottom: 1rem;
          margin-top: 1rem;
          color: #eee;
        }
      }

      & a {
        text-decoration: none;
        display: flex;
        padding: 1em;
        gap: 10px;
        width: 100%;
        color: inherit;
        align-items: center;
        justify-content: center;

        & .img-container {
          padding: 5px;
          width: 15%;

          & img {
            width: 100%;
            object-fit: scale-down;
          }
        }

        & .info-container {
          width: 70%;
          padding-left: 1em;
          display: flex;
          flex-direction: column;

          & h2 {
            font-size: 1.2rem;
          }
          & h3 {
            margin: 10px;
            color: inherit;
            font-size: 1.3rem;
          }
          & small {
            color: #06b359;
            margin: 10px;
          }
          & span {
            display: block;
            border: 1px solid #bdbbbb;
            color: #eee;
            padding: 5px;
            margin-top: 5px;
            font-size: 0.6rem;
            width: min-content;
            border-radius: 3px;
            background-color: rgb(50, 53, 243);
            box-shadow: 0px 1px 4px #949eac98;
          }
        }
      }
    }
  }

  .modal-load {
    position: absolute;
    flex-direction: column;

    padding: 1em;
    inset: 0;
    background-color: #d8d8d8f5;
    display: flex;
    align-items: center;
    justify-content: center;

    .load {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 3px solid rgb(77, 74, 74);
      border-top: 3px solid transparent;
      animation: load 0.4s linear infinite;
    }
  }
}

@keyframes load {
  to {
    transform: rotate(0deg);
  }
  from {
    transform: rotate(360deg);
  }
}
.formulario-contenedor h2,
h3 {
  color: var(--colorPrimario);
  font-size: 2rem;
  margin-bottom: 0;
}

.formulario-contenedor h3 {
  margin-bottom: 2em;
}

.formulario-contenedor {
  align-items: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 2em;
  width: 100%;
}

.forms-repuestos {
  align-content: center;
  align-items: center;
  background-color: var(--colorPrimario);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  padding: 1em;
  width: 50%;
}
.forms-repuestos p {
  font-size: 1em;
}
.form-repuestos-elements {
  align-content: flex-start;
  align-items: flex-start;
  display: flex;
  justify-content: start;
  margin-left: 10%;
  margin-right: 10%;
  width: 90%;
}
.form-repuestos-elements span {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.form-repuestos-elements label {
  display: flex;
  margin-bottom: 10px;
}

.form-repuestos-elements label::after {
  content: "*";
  margin-left: 2px;
}
.form-repuestos-elements input {
  border: none;
  margin-bottom: 1em;
  margin-right: 1em;
  max-width: 100%;
  outline: none;
  padding: 10px;
}

.form-repuestos-elements select {
  display: flex;
  max-width: 100%;
  padding: 10px;
}

.form-repuestos-elements textarea {
  border: none;
  display: flex;
  outline: none;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.form-repuestos-elements .errorForms {
  border: 1px solid rgb(255, 255, 255);
  outline: 1px double rgb(255, 255, 255);
  background-color: #dadada;
  color: rgb(0, 0, 0);
}

.form-repuestos-elements .validForms {
  border: 1px solid rgb(111, 255, 111);
  outline: 1px solid rgb(111, 255, 111);
}

.forms-repuestos button {
  border: 1px solid #fff;
  font-weight: 400;
}

.forms-repuestos button:hover {
  background-color: #fff;
  color: var(--colorPrimario);
}

#error {
  color: #fff;
}

@media only screen and (max-width: 750px) {
  .repuestosOriginales {
    background-image: url(../img/mobile/banner/repuestos-banner.webp);
    background-size: contain;
    max-height: 320px;
    width: 100%;
  }
  .repuestosOriginales h1 {
    font-size: 2rem;
    padding: 1rem;
  }

  .productos {
    width: 100%;
    position: relative;
    & .categorias {
      display: none;
    }
    & .categorias::before {
      content: "----";
      padding: 1em;
      top: 0;
      left: 10px;
      background-color: #06b359;
      display: block;
      position: absolute;
    }

    & .productos-container {
      width: 100%;

      & form {
        justify-content: space-between;
        width: 100%;
        box-shadow: 0px 1px 5px #8e6262;

        & input {
          width: 100%;
        }
      }

      & ul {
        width: 100%;
        & li {
          width: 100%;

          & a {
            justify-content: space-between;
            .img-container {
              width: 50%;
            }
            .info-container {
              padding: 0;

              & h2 {
                font-size: 0.9rem;
              }
            }
          }
        }
      }
    }

    .modal-load {
      background-color: #eee;
      justify-content: flex-start;
    }
  }

  .formulario-contenedor {
    text-align: center;
    padding: 0.5rem;
    & h2 {
      font-size: 1.5rem;
    }
    & h3 {
      font-size: 1rem;
    }
  }
  .forms-repuestos {
    width: 100%;
  }
  .form-repuestos-elements {
    flex-direction: column;
  }

  .form-repuestos-elements label {
    margin-bottom: 2px;
  }
  .form-repuestos-elements textarea {
    border-radius: 5px;
    margin-top: 5px;
  }
}
