/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/* Font size 10px / 16px -->0.625= 62.5% 
Percentage of user's font-size setting */
/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .gallery {
    grid-template-columns: repeat(1fr);
  }

  .gallery img {
    width: 100%;
  }

  .testimonial-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 22.5em) {
  html {
    font-size: 31%;
  }

  .grid--2-cols,
  .grid--3-cols {
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
  }

  .step-number,
  .program-ter {
    text-align: center;
  }

  .program-2 {
    display: flex;
    flex-direction: column-reverse;
  }
  .logo {
    width: 10%;
  }

  .step-img {
    width: 55%;
  }

  .footer {
    padding: 2rem;
  }

  .grid--footer {
    grid-template-columns: 1fr 1fr;
    font-size: 1.6rem;
  }

  .question * {
    width: 95%;
    justify-content: center;
  }

  .margin-question {
    width: 30%;
  }
}

/*****************************************************/

/* BELLOW 944px (Tablets)*/

/*****************************************************/

@media (max-width: 59em) {
  /*8px/16px = 50% */
  html {
    font-size: 50%;
  }

  .header {
    padding: 1% 1%;
  }

  /* MOBILE NAVIGATION*/

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /*100 view port height unit*/
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /*Hide navigation*/
    /*Allows NO transitions at allow*/
    /* display: none; */

    /*1) Hide it visually*/
    opacity: 0;

    /*2) Make it unnaccessible to mouse and keyboard */
    pointer-events: none;

    /*3) Hide it form 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;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}


/*****************************************************/

/* BELLOW 768px (MiniIpad)*/

/*****************************************************/

/*Mini iPad 768px/16px*/
@media (max-width:48em){
  html{
    font-size: 44%;
  }
}

/*****************************************************/

/* BELLOW 650px (MiniIpad)*/

/*****************************************************/
/*Mini iPad 650px/16px*/
@media (max-width:40em){
  html{
    font-size: 38%;
  }

  .step-img {
    width: 55%;
  }
}

/*****************************************************/

/* BELLOW 428px (Iphone y Samsung Galaxy)*/

/*****************************************************/
/*428px/16px*/

@media (max-width: 27em) {
  html {
    font-size: 40%;
  }

  .testimonials,
  .grid--3-cols, .grid--2-cols {
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
  }

  .how-program {
    align-items: center;
  }

  .logo {
    width: 10%;
  }

  .heading-primary {
    font-size: 3.2rem;
  }
  .program-img {
    width: 60%;
  }

  .testimonial-text {
    width: 100%;
  }

  .nav-cta {
    font-size: 1rem;
  }

  .btn--form {
    margin-top: 2rem;
    margin-left: 25rem;
  }

  .other-names ul li {
    font-size: 1rem;
  }

  .checkbox-program ul li label,
  .other-names {
    font-size: 1.2rem;
  }

  .footer {
    padding: 2rem;
  }

  .grid--footer {
    grid-template-columns: 1fr;
    align-items: center;
    font-size: 1.6rem;

    column-gap: 3.2rem;
    row-gap: 3.2rem;
    margin-bottom: 2rem;
  }

  .step-img-box:nth-child(3){
    grid-row:4;
  }

  .logo-col{
    align-items: center;
  }

 
  .sticky .header {
    
    height: 10rem;

  }

  .container {
    max-width: 140rem;
    padding: 0 1.8rem;
    margin: 0 auto;
  }
  
  
}
