.banner-conteiner {
  background-color: #000;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: center;
  margin-bottom: 1em;
  object-fit: scale-down;
  width: 100%;
}
.contenedor-img {
  display: flex;
  justify-content: center;
  transition: 1s ease;
}
.contenedor-img img {
  align-content: center;
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}
.modelos-slider {
  align-content: center;
  align-items: center;
  background-color: rgba(182, 179, 177, 0.069);
  display: flex;
  height: 50%;
  justify-content: center;
  margin: auto;
  margin-bottom: 1em;
  overflow: hidden;
  padding: 0.5em;
  width: 95%;

  ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    overflow: scroll;
    overflow-y: hidden;
    padding: 1em;
    scroll-behavior: smooth;
  }

  li.caja {
    border: 1px solid rgba(134, 134, 134, 0.451);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    height: 20em;
    margin-bottom: 0.5em;
    width: 50em;

    img {
      height: auto;
      object-fit: contain;
      width: 18em;
    }
    .modelos-tarjeta {
      align-content: center;
      background-color: #282828;
      border-radius: 0 5px 5px 0;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      padding: 0.5em;
      text-align: center;
      width: 100%;
    }

    p {
      font-size: 0.9rem;
      margin-bottom: 0;
      margin-top: 1px;
      text-overflow: ellipsis;
    }
    h2 {
      border-bottom: 2px solid #fff;
      color: #fff;
      margin: 0;
      padding-bottom: 0.3em;
    }

    .sub-titulo {
      align-items: center;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      padding-top: 1em;

      h3,
      h4 {
        color: #fff;
        margin: 0;
      }
      p {
        margin: 0;
      }
    }

    .btn-modelos {
      align-content: flex-end;
      align-items: flex-end;
      display: flex;
      gap: 1em;
      height: 100%;
      justify-content: center;
      margin-bottom: 2px;
      width: 100%;
      a {
        align-items: center;
        background-color: var(--colorPrimario);
        border-radius: 5em;
        color: #fff;
        cursor: pointer;
        display: flex;
        height: 2.5em;
        justify-content: center;
        letter-spacing: 0.8px;
        text-align: center;
        text-decoration: none;
        width: 10em;
      }
    }
  }
}

@keyframes hybrid {
  to {
    background-color: #12d2048e;
  }
  from {
    background-color: #0458d2;
  }
}
.hybrid {
  animation-direction: alternate-reverse;
  animation-duration: 1.7s;
  animation-iteration-count: infinite;
  animation-name: hybrid;
  background-color: #0458d2;
  border-radius: 2px;
  color: #fff;
  letter-spacing: 2px;
  padding: 4px;
  text-transform: uppercase;
  transition: ease-in;
}
.control-modelos {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-top: -2em;
  padding: 1em;
  position: relative;
}
.control-modelos button {
  align-content: center;
  align-items: center;
  background-color: var(--colorPrimario);
  border-radius: 40%;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 35px;
  justify-content: center;
  padding: 0.8em;
  text-align: center;
  text-decoration: none;
  width: 35px;
}
.somos {
  align-content: center;
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}
.img-somos {
  display: flex;
  width: 100%;
}
.img-somos picture {
  width: 100%;
}
.img-somos img {
  display: flex;
  object-fit: contain;
  width: 100%;
}
.somos-text {
  background-color: var(--colorPrimario);
  box-shadow: 1px 1px 1px 0 #000;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.somos-text h2 {
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 2vw;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 2%;
  text-align: center;
  width: 100%;
}
.somos-text h2 span {
  color: #fff;
  display: block;
  font-size: 0.9vw;
  font-weight: 700;
}
.somos-text p {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: 0;
  padding: 1em;
  text-align: start;
  white-space: pre-line;
}
.btn-somos-conteiner {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 1%;
  width: 100%;
}
.btn-somos-conteiner .button {
  background-color: var(--WhatsAap);
  width: 15em;
}
.btn-somos-conteiner .button:hover {
  background-color: #0d6d11;
}
.btn-somos-conteiner a img {
  margin-right: 5px;
  width: 1em;
}
.btn-somos-conteiner .button:nth-child(2) {
  background-color: var(--colorPrimario);
  border: 1px solid #fff;
}
.btn-somos-conteiner .button:nth-child(2):hover {
  background-color: #fff;
  border: 1px solid var(--colorPrimario);
  color: var(--colorPrimario);
}
.maps {
  background-color: rgb(29, 26, 26);
  border: none;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: center;
  margin-bottom: 1em;
  text-align: center;
  width: 100%;
}
.maps h2 {
  color: #fff;
  font-family: var(--ToyotaFont);
}
.maps iframe {
  border: none;
  height: 40vh;
  transition: 0.5s;
  width: 100%;
}
.tpa {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: flex-start;
  justify-content: center;
  margin-bottom: 0.9em;
  position: relative;
  width: 100%;
  content-visibility: auto;
  picture {
    width: 100%;
    img {
      width: 100%;
    }
  }
  .tpa-text {
    align-items: center;
    background-color: #eb0a1dcc;
    border-radius: 5px;
    box-shadow: -3px 3px 4px rgb(114, 113, 114);
    display: flex;
    flex-direction: column;
    position: absolute;
    text-align: center;
    left: 50%;

    bottom: 2rem;
    transform: translateX(-50%);
    min-width: 40%;
    gap: 1rem;
    padding: 1rem;
    max-height: 100%;
    img {
      justify-content: center;
    }

    h2,
    p {
      color: #eee;
      line-height: 1.5;
      font-size: 1rem;
      margin: 0;
    }
    h2 {
      font-size: 1.2em;
    }
    > a {
      align-content: center;
      align-items: center;
      background-color: #fff;
      border-radius: 17px;
      color: #000;
      display: flex;
      font-weight: 700;
      justify-content: center;
      text-align: center;
      text-decoration: none;
      padding: 1rem;
      border: 1px solid transparent;
    }
    > a:hover {
      background-color: var(--colorPrimario);
      border: 1px solid #eee;
      color: #eee;
    }
  }
}

@media only screen and (max-width: 900px) {
  .tpa-text {
    width: 75%;
    h2 {
      font-size: 1rem;
    }
    p {
      font-size: 0.6rem;
      margin: 0;
    }
  }
}
.test-drive {
  align-items: flex-end;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  content-visibility: auto;

  a {
    width: 100%;
    picture {
      width: 100%;

      img {
        width: 100%;
        object-fit: contain;
      }
    }
  }
  .test-drive-importante {
    background-color: var(--colorPrimario);
    color: #fff;
    text-align: center;
    width: 100%;

    >p{
      font-size: .85rem;
      display: block
    }
  }
}



@media only screen and (max-width: 1100px) {
  .sub-menu a {
    padding: 0.5em;
  }
}
@media only screen and (max-width: 750px) {
  header {
    width: 100%;
  }
  nav {
    margin: 0;
    width: 100%;
  }
  main {
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
  .banner-conteiner {
    height: auto;
    margin-bottom: 1em;
    margin-top: 15%;
  }
  .top-header {
    display: none;
  }
  .header-sec {
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }
  .logo-conteiner {
    margin: 0;
    min-height: 10px;
    padding: 1em;
    width: 100%;
  }
  .checkbtn {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 1em;
  }
  .sub-menu {
    align-items: flex-start;
    background-color: #212529;
    border-bottom: 1px solid #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: inherit;
    left: -100%;
    overflow-y: scroll;
    padding-bottom: 3em;
    position: absolute;
    text-align: center;
    top: 100px;
    transition: all 0.5s;
    width: 100%;
    z-index: 1;
  }
  .sub-menu li {
    align-content: center;
    align-items: flex-start;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: center;
    line-height: 30px;
    margin: 10px 0;
    margin-left: 10px;
  }
  .sub-menu li a {
    padding: 0;
  }
  nav ul li a {
    font-size: 20px;
  }
  li a:hover,
  li a.active {
    background: none;
    color: red;
  }
  #check:checked ~ ul {
    left: 0;
  }
  .menu-hmg {
    align-content: center;
    align-items: center;
    border: 1px solid rgb(84, 80, 80);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 40px;
    justify-content: center;
    padding: 2px;
    width: auto;
  }

  .usados-menu:hover {
    align-content: flex-end;
    align-items: flex-start;
    display: flex;
    justify-content: flex-start;
    text-align: start;
  }
  .usados-menu ul {
    align-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
  }
  .usados-menu li {
    align-items: flex-start;
    margin: 0;
    padding: 0;
    text-align: start;
    width: 100%;
  }
  .usados-menu ul li a {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .usados-menu:hover ul {
    background-color: transparent;
    margin: 0;
    padding: 0;
  }
  .sub-menu .contacto-mobile {
    display: flex;
  }

  .modelos-slider {
    align-items: stretch;

    li.caja {
      height: auto;
      flex-direction: column;
      align-items: center;
      height: 100%;
      justify-content: space-between;

      img {
        margin-bottom: 1rem;
        padding: 1rem;
      }
      h2 {
        text-transform: uppercase;
        font-size: 1rem;
        padding: 1rem;
      }

      p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        max-height: calc(1.5em * 3); /* altura para 3 líneas */
      }
      .modelos-tarjeta {
        border-radius: 0;
      }
      .btn-modelos {
        flex-direction: column;
        a {
          width: 100%;
        }
      }
    }
  }
  .control-modelos {
    display: none;
  }
  .somos {
    align-items: center;
    flex-direction: column;
  }
  #btn-somos-wp {
    font-size: 1rem;
  }
  #btn-somos-contact {
    font-size: 1rem;
  }
  .somos-text {
    align-content: center;
    align-items: center;
    border-radius: 0;
    height: auto;
    justify-content: center;
    margin: 0;
    max-height: 100%;
    padding: 0;
    width: 100vw;
  }
  .somos-text h2 {
    font-size: 1rem;
  }
  .somos-text h2 span {
    font-size: 1rem;
  }
  .somos-text p {
    font-size: 1rem;
    padding: 0;
    padding: 0.5em;
  }
  .btn-somos-conteiner {
    align-items: center;
    flex-direction: column;
    gap: 1em;
    height: auto;
    justify-content: center;
    margin-bottom: 2em;
    padding: 0;
  }
  .btn-somos-conteiner button {
    width: 60%;
  }
  .tpa {
    align-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    margin: 0;
    width: 100%;

    .tpa-text {
      align-content: center;
      align-items: center;
      background-color: #70171f94;
      height: auto;
      justify-content: center;
      width: 100%;
      bottom: 0;
      border-top: 1px solid #ff2222;
      border-radius: 0px;
      h2 {
        color: #fff;
        font-size: 0.6rem;
        margin: 0;
        text-shadow: 0.1px 0.1px #222;
      }
      p {
        text-align: 0.8rem;
        display: none;
      }
      img {
        width: 100px;
      }
      > a {
        padding: 0.5rem;
        font-size: 0.7rem;
      }
    }
  }

  .tpa-text p {
    font-size: 0.7rem;
    text-shadow: 0.1px 0.1px #222;
  }
  .test-drive {
    flex-direction: column;
    position: static;
  }
  .btn-jf {
    min-width: 7em;
  }
  #test-drive-img {
    display: none;
  }
  #test-drive-mobile {
    display: flex;
  }

  .tpa-text button {
    height: 3em;
    width: 3em;
  }
  .test-drive-import {
    align-items: center;
    background-color: #010101;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 1%;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
  }

  .contenedor-img img {
    display: none;
  }
}
