@media only screen and (max-width: 991px) {
  html {
    font-size: 56.25%;
  }

  .row {
    flex-direction: column;
  }

  section,
  footer {
    padding: 7.5rem 5rem;
  }

  header {
    padding: 2.2rem 5rem;
  }

  section.hero {
    grid-template-columns: 1fr;
    background: linear-gradient(45deg,
        rgb(var(--grad-color-1)),
        rgb(var(--grad-color-2)));
  }

  #header-shape {
    display: none;
  }

  .hero-img {
    grid-row: 1;
  }

  nav ul a,
  nav a#logo {
    color: var(--white-shade-1);
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-content h1 {
    color: var(--white-shade-1);
  }

  .hero-content p {
    color: var(--white-shade-2);
  }

  .hero-content .primary-btn {
    background-color: var(--white-shade-1);
    color: var(--base-shade-1);
  }

  .hero-content .secondary-btn {
    color: var(--white-shade-1);
    border-color: var(--white-shade-1);
  }

  .btn-container {
    justify-content: center;
  }

  .download-app img {
    width: 30%;
  }

  .app-feature div {
    justify-content: center;
  }

  .app-feature p {
    text-align: center;
  }

  .download-app a img {
    width: 50%;
  }
}

@media only screen and (max-width: 767px) {
  html {
    font-size: 50%;


  }

  header {
    padding: 2rem 4rem;
  }

  #ham-menu {
    display: block;
    color: var(--white-shade-1);
  }

  nav a#logo,
  #ham-menu {
    font-size: var(--heading-font-size-2);
  }

  nav ul {
    background-color: #2a2929;
    ;
    position: fixed;
    left: -100vw;
    top: 70.4px;
    height: calc(100vh - 70.4px);
    width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: 1s;
    gap: 0;
    z-index: 9999;
  }

  nav ul.active {
    left: 0;
  }

  nav ul a {
    font-size: var(--heading-font-size-3);
  }

  .sticky nav ul a {
    color: var(--white-shade-1);
  }

  nav ul a:hover {
    color: var(--base-shade-1);
  }

  #scroll-top {
    height: 6rem;
    width: 6rem;
  }
}

@media only screen and (max-width: 575px) {
  html {
    font-size: 46.87%;

  }

  .courses {
    margin-top: -8rem;
  }

  .courses .row .column {
    margin-left: 0.7rem;
  }

  header {
    padding: 2rem 5rem;
    width: 100%;
  }

  #logo {
    width: 70%;

  }

  .sticky {
    width: 100%;

  }

  body {
    content: '';
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
  }

  .slider {
    padding: 0;
    margin-top: 70px; /* Espacio para el header sticky */
    position: relative;
    max-width: 100%;
    overflow: hidden;
  }

  .slides {
    display: flex;
    width: 100%;
    height: auto;
  }

  .slide {
    min-width: 100%;
    width: 100%;
    position: relative;
  }

  .slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .section-desc {
    justify-content: center;
    margin-top: 8rem;
  }

  .section-descT {
    text-align: justify;
    margin: 1rem 1rem 1rem;
    justify-content: center;
    display: flex;
  }

  .testimonial-imagestre {
    position: absolute;
    transform: translate(-22%, -50%);
    z-index: 10;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .testimonial-imagestre img {
    justify-content: center;
    width: 33%;
  }

  .testimonial-imagestre2 {
    position: absolute;
    transform: translate(-43%, -50%);
    z-index: 10;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .testimonial-imagestre2 img {
    justify-content: center;
    width: 33%;
  }

  .testimonial-imagestre3 {
    position: absolute;
    transform: translate(-43%, -50%);
    z-index: 10;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .testimonial-imagestre3 img {
    justify-content: center;
    width: 33%;
  }

  .testimonial-image {
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 8rem;

  }

  .testimonial-image img {
    justify-content: center;
    width: 100%;
  }

  .row {
    width: 100%;
    margin: 0 auto;
    flex-direction: column;
  }

  .courses .row {
    padding: 1rem;
    gap: 2rem;
  }

  .courses .column {
    margin-left: 0;
    width: 100%;
  }

  /* Footer y otros elementos movidos a componentes */
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }

  .logo-empresa {
    width: 200px;
    margin: 0 auto;
  }

  .libro-reclamaciones {
    width: 80px;
    margin: 0 auto;
  }

  .redes-sociales {
    justify-content: center;
    margin: 1rem 0;
  }

  .footer-content p {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
  }

  .politica {
    margin-left: 0;
  }

  /* WhatsApp y Chat responsive */
  .whatsapp-button {
    bottom: 20px !important;
    right: 20px !important;
    transform: none !important;
  }

  .whatsapp-button img {
    width: 60px !important;
    height: 60px !important;
  }

  .chat-box {
    width: 85% !important;
    right: 7.5% !important;
    left: 7.5% !important;
    bottom: 90px !important;
  }
}

@media screen and (max-width: 350px){
  form {
    margin-top: 7rem;
  }
  .logo-empresa {
    width: 200px;
    margin-left: 0.6rem;

  }

  .libro-reclamaciones {
    max-width: 65px;
    margin-left: -10rem;
  }

  .footer-content p {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-left: 3rem;
    
  }

  .redes-sociales {
    gap: 5px;
    margin-left: 0;
  }

}
