span,
label {
  display: block;
}
p {
  line-height: 1.45rem;
}
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.presentation,
.whaIs,
.advantages,
.models,
.contact {
  width: 70%;
  padding: 1rem 3rem;
  display: flex;
  justify-content: center;
  align-content: center;

  > h2 {
    font-size: 2.5rem;
  }
}

.presentation {
  margin-top: 2rem;
  gap: 1rem;
  width: 70%;
  .info,
  .img-container {
    padding: 1em;
    width: 100%;

    h2 {
      font-size: 4rem;
      margin-bottom: 1rem;
      span {
        color: var(--colorPrimario);
      }
    }
    h3 {
      font-size: 1rem;
    }

    .contacto-container {
      margin-top: 1rem;
      display: flex;
      gap: 1rem;
      a {
        border-radius: 5px;
        padding: 0.8rem 1.5rem;
        text-align: center;
        text-decoration: none;
        background-color: var(--colorPrimario);
        color: #eee;
        transition: 0.35s all;
      }
      a:nth-last-child(1) {
        background-color: transparent;
        border: 1px solid #bebebe;
        color: #222;
      }

      a:nth-last-child(2):hover {
        transform: scale(1.1);
      }
      a:nth-last-child(1):hover {
        background-color: #eee;
      }
    }

    > ul {
      width: 50%;
      display: flex;
      gap: 2rem;
      margin-top: 2rem;
      padding: 0;
      justify-content: space-around;
      list-style: disc;
      font-size: 0.9rem;
      font-weight: 100;

      li {
        text-wrap: nowrap;
      }
    }
  }

  .img-container {

    width: 1080px;
    height: 376px;
    overflow: hidden;

    picture{
      width: 100%;
      height: auto;
      img {
        width: 100%;
        height: 100%;
        object-fit: scale-down;
      }
    }
  }
}

.whaIs {
  width: 100%;
  background-color: #fbfbfb;
  margin: 0;
  margin-top: 2rem;

  article {
    padding: 1rem;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    h1 {
      font-size: 2rem;
    }
    > p {
      display: block;
      font-size: 1.2rem;
      color: #222;
      width: 75%;
      text-align: center;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
  }
}

ul.grid-item {
  width: 60%;

  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0;
  list-style: none;

  li {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: start;
    display: flex;
    gap: 1rem;
    align-items: flex-start;

    .icon {
      padding: 10px;
      width: 40px;
      height: 40px;
      background-color: #eee;
      border-radius: 5px;
      filter: invert(1);
    }

    .info {
      h2 {
        margin-top: 0;
      }
      p {
        color: #5c5c5c;
        padding: 0;
        font-size: 0.9rem;
      }
    }
  }
}

.advantages {
  flex-direction: column;
  align-items: center;
  width: 100%;
  h3 {
    font-size: 1rem;
  }

  ul.grid-item {
    .icon {
      filter: invert(0);
      background-color: rgba(255, 0, 0, 0.227);
    }
  }
}

.models {
  content-visibility: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fbfbfb;
  width: 100%;

  > p {
    color: #222;
    font-size: 1rem;
    width: 60%;
    margin: 5px;
  }
  > ul {
    width: 80%;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    li {
      flex: 1;
      min-width: 20rem;
      max-width: 20rem;
      min-height: 30rem;
      padding: 0.5rem 1rem;
      display: flex;
      flex-direction: column;
      border: 1px solid #eee;
      gap: 1rem;
      border-radius: 10px;
      box-shadow: 1px 1px 1em #eee;
      .img-container {
        width: 100%;
        object-fit: scale-down;
        overflow: hidden;
        height: 200px;
        img {
          width: 100%;
          height: 200px;

          transition: 0.35s all;
          object-fit: scale-down;
        }
      }

      .img-container:hover {
        img {
          transform: scale(1.1);
        }
      }

      .apto {
        background-color: var(--colorPrimario);
        width: min-content;
        padding: 4.5px 20px;
        border-radius: 10px;
        background-color: rgba(255, 0, 0, 0.158);
        color: #f00606;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 0.75rem;
        border: 1px solid #f00606;
      }
      h4 {
        margin: 0;
        font-size: 1.4rem;
      }
      p {
        color: #5c5c5c;
        text-align: start;
        font-size: 0.9rem;
        margin-top: 5px;
        margin-top: 0;
        padding: 0;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
      }
      > a {
        text-decoration: none;
        text-align: center;
        border: 1px solid #c6c6c6;
        padding: 0.8rem;
        color: #5c5c5c;
        transition: 0.34s all;
        width: 90%;
        margin: auto;
        border-radius: 5px;
        margin-bottom: 1rem;
        background-color: #ddddddc2;
      }
      > a:hover {
        background-color: #eee;
      }
    }
  }
}

.contact {
  flex-direction: column;
  align-items: center;
  content-visibility: auto;
  > p {
    color: #202020;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 85%;
    font-size: 1.1rem;
  }
  .contact-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;

    ul {
      padding: 1rem;
      width: 70%;
      display: flex;
      gap: 2rem;
      align-items: center;
      justify-content: center;

      li {
        border: 1px solid #eee;
        flex: 1;
        padding: 1rem;
        height: 20rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;

        .icon {
          padding: 10px;
          width: 60px;
          height: 60px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: #f00606;
          filter: invert(0);
          img {
            width: 35px;
            filter: invert(1);
          }
        }
        p {
          font-size: 1rem;
          font-family: Verdana, Geneva, Tahoma, sans-serif;
          color: #202020;
          padding: 0;
          margin: 0;
        }
        button,
        a.button {
          width: 100%;
          border-radius: 5px;
          padding: 0.8rem;
          height: auto;
          font-size: .9rem;
          font-family: Verdana, Geneva, Tahoma, sans-serif;
        }

        button:nth-last-child(0) {
          background-color: #202020;
        }
      }
    }
  }
}
.forms-contact {
  overflow: hidden;
  overflow-y: scroll;
  content-visibility: auto;
  form {
    border-radius: 10px;
    padding: 1rem;

    span {
      display: flex;
      flex-direction: column;
      width: 90%;
      padding: 0.2rem;
      gap: 5px;

      input,
      select,
      textarea {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 0.7rem;
        font-size: 1rem;
        background-color: transparent;
      }

      textarea {
        resize: vertical;
        field-sizing: content;
        max-height: 10rem;
      }
    }

    button {
      width: 50%;
      border-radius: 5px;
      height: auto;
      padding: 0.8rem;
      margin-bottom: 1rem;
    }
  }
}
@media (width <=1680px) {
  .presentation,
  .whaIs,
  .advantages,
  .models,
  .contact {
    width: 85%;

    > article p,
    p {
      width: 100%;
      font-size: 1.1rem;
    }
  }
  .presentation {
    .info {
      h2 {
        font-size: 3.5rem;
      }
    }
  }
  ul.grid-item {
    width: 80%;
  }

  .models {
    ul {
      justify-content: center;
      align-items: center;
      li {
        min-width: 17rem;
        max-width: 17rem;
        a {
          text-wrap: nowrap;
        }
      }
    }
  }
  /*  */
}

@media (width <=1400px) {
  .presentation,
  .whaIs,
  .advantages,
  .models,
  .contact {
    width: 90%;
    article {
      width: 100%;
    }
    > article p,
    p {
      width: 100%;
      font-size: 1rem;
    }
  }
  .presentation {
    .info {
      h2 {
        font-size: 2.6rem;
      }

      .img-container {
        width: 100px;
        height: 306px;
      }
    }
  }
  ul.grid-item {
    width: 90%;
  }

  .models {
    ul {
      justify-content: center;
      align-items: center;
      li {
        min-width: 17rem;
        max-width: 17rem;
        a {
          text-wrap: nowrap;
        }
      }
    }
  }
  /*  */
}

@media (width <=750px) {
  .presentation,
  .whaIs,
  .advantages,
  .models,
  .contact {
    padding: 0.5rem;
    width: 95%;

    > h2 {
      font-size: 1.4rem;
      text-align: center;
    }
    h3 {
      text-align: center;
      font-size: 0.9rem;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      color: #5c5c5c;
    }
    article {
      width: 100%;
      padding: 0;
      h1 {
        font-size: 1.6rem;
      }
    }
    > article p,
    p {
      width: 100%;
      font-size: 1rem;
      padding: 0;
    }
  }
  .presentation {
    flex-direction: column;
    margin-top: 0.5rem;

    .info {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      padding: 0.5rem;
      h2 {
        font-size: 2rem;
      }
      h3 {
        font-size: 0.8rem;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
      }
      > ul {
        display: none;
        li {
          flex: 1;
        }
      }
    }

    .img-container {
      width: 100%;
      height: 100%;
    }

    .contacto-container {
      margin-top: 2rem;
      flex-direction: column;
    }
  }
  ul.grid-item {
    width: 90%;
    flex-direction: column;
    display: flex;

    h2 {
      font-size: 1rem;
    }
  }

  .models {
    ul {
      justify-content: center;
      align-items: center;
      li {
        min-width: 17rem;
        max-width: 17rem;
        a {
          text-wrap: nowrap;
        }
      }
    }
  }

  .contact {
    .contact-list {
      padding: 0;
      ul {
        width: 100%;
      }
    }
  }
  .forms-contact {
    padding: 1rem;
    form {
      width: 100%;
      h2 {
        text-align: center;
      }
    }
  }
  /*  */
}
