/* rem and em do NOT depend on HTML fon size in media quaries
Instead 1rem=1em=16px

*/

/* ******************************** */
/* BELOW  1248px (smaller desktop)*/
/* ******************************** */

@media (max-width: 78em) {
  .section-sells {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .company-details {
    grid-template-columns: 1fr;
    margin-bottom: 10rem;
    row-gap: 9rem;
  }
}

/* ******************************** */
/* BELOW  928px (smaller desktop)    de pus icon nav*/
/* ******************************** */
@media (max-width: 58em) {
  html {
    /* 9px:16px=56.25% */
    font-size: 56.25%;
  }

  .section-sells {
    grid-template-columns: 1fr 1fr;
  }
}

/* ******************************** */
/* BELOW  672px (smaller desktop)*/
/* ******************************** */

@media (max-width: 42em) {
  .testimonials {
    grid-template-columns: 1fr;
    justify-content: center;
    row-gap: 1rem;
  }

  .testimonials-container {
    padding: 6.4rem;
  }

  .heading-secondary {
    font-size: 1.8rem;
  }
  .what-offer {
    font-size: 2rem;
  }

  .testimonial-text {
    font-size: 1.5rem;
  }

  .section-sells {
    grid-template-columns: 1fr;
    margin: 3rem;
  }

  .contact-list {
    grid-template-columns: 1fr;
    margin-bottom: 8rem;
  }

  .logos {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 2rem;
  }
  .langs {
    align-self: center;
  }

  /* ******************************** */
  /* BELOW  384px (smaller desktop)*/
  /* ******************************** */

  @media (max-width: 24em) {
    html {
      /* 9px:16px=56.25% */
      font-size: 36.25%;
    }

    .testimonials {
      row-gap: 0.8rem;
    }

    .testimonial-text {
      margin-bottom: 1px;
    }
    .contact-list {
      font-size: 1.8rem;
    }
  }

  /* Mobile Navigacion */

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: #1b1b1bbe;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* hide navigacion */
    /* 1Hide iti visually */
    opacity: 0;

    /* 2 Make it unaccessibile to mouse and keyboard */
    pointer-events: none;

    /* Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    column-gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
    color: #56b4be;
  }
}
