:root{
    --naranja-soft: hsl(35, 77%, 62%);
    --rojo-soft: hsl(5, 85%, 63%);

    --blanco-off: hsl(36, 100%, 99%);
    --gris-azul: hsl(233, 8%, 79%);
    --gris-azul-oscuro: hsl(236, 13%, 42%);
    --azuy-muy-oscuro: hsl(240, 100%, 5%);
}

html{
    font-size: 62.5%;
    box-sizing: border-box;
}

*,*:after, *:before{
    box-sizing: inherit;
    padding: 0;
    margin: 0;
}

.contenedor{
    width: 95%;
    max-width: 120rem;
    margin: 0 auto;
}

body{
    font-size: 1.6rem;
    font-family: "Inter", serif;
    line-height: 1.6;
}

a{
    text-decoration: none;
}

ul, li{
    list-style: none;
}

h1,h2,h3{

}

img{
    width: 100%;
}

/**Header**/
.navbar{
    margin: 3rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    width: auto;
}

.btn-open{
    display: none;
}

.btn-close{
    display: none;
}

.ul{
    display: flex;
    gap: 2rem;
}

.ul li a{
    color: var(--gris-azul-oscuro);
}

.ul li a:hover{
    color: var(--rojo-soft);
}

@media (max-width: 500px) {
  .btn-open{
    display: block;
  }

  .btn-close{
    display: block;
   position: absolute;
   right: 2rem;
   background-color: white;
   border: none;
   cursor: pointer;
  }

  .nav{
    display: none;
    position: absolute;
    width: 70%;
    top: 0;
    right: 0;
    background-color: var(--blanco-off);
    padding: 2rem;
    bottom: 0;
    box-shadow:  0 0 0 100vmax rgba(0, 0, 0, .5);
  }

  .nav.visible{
    display: block;
  }

  .ul{
    flex-direction: column;
    gap: 3rem;
    align-items: start;
    margin-top: 15rem;
  }

  .ul li a{
    color: var(--azuy-muy-oscuro);
    font-size: 2rem;
}
}

/*main*/


.first, .second, .third{
    margin-bottom: 5rem;
}

/**First**/
.first img{
    margin-bottom: 2rem;
}


.info-title{
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.second-text{
    margin-bottom: 1.5rem;
    color: var(--gris-azul-oscuro);
}

.second-btn{
    border: none;
    padding: 1.5rem 2rem;
    background-color: var(--rojo-soft);
    text-transform: uppercase;
    letter-spacing: .6rem;
    font-weight: bolder;
    color: var(--azuy-muy-oscuro);
    cursor: pointer;
}

.second-btn:hover{
    color: var(--blanco-off);
    background-color: var(--azuy-muy-oscuro);
}

/**Second**/
.second{
    background-color: var(--azuy-muy-oscuro);
    color: var(--blanco-off);
    padding: 0rem 2rem;
}

.second-bi{
    padding: 2rem 0;
    border-bottom: 1px solid var(--gris-azul-oscuro);
}

.second-bi:last-of-type{
    border: 0;
}

.second-bi-title-main{
    margin-bottom: 2rem;
    color: var(--naranja-soft);
    font-size: 3.2rem;
}

.second-bi-title{
    font-size: 2.1rem;
    margin-bottom: .5rem;
}

.second-bi-title:hover{
    color: var(--naranja-soft);
    cursor: pointer;
}

.second-bi-text{
    color: var(--gris-azul);
}


/**desktop - first and second**/ 
@media (min-width: 767px) {
    .first-second{
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;
    }
  
    .first-info{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  
    .info-title, .first-info-second{
      flex: 0 0 calc(50% - 2rem);
    }
  }


/**Third**/
.third-block{
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 2rem;
    place-content: center;
    margin-bottom: 2.5rem;
}

.num{
    color: var(--rojo-soft);
}

.third-info-title{
    color: var(--azuy-muy-oscuro);
    margin-bottom: .5rem;
}

.third-info-title:hover{
    color: var(--rojo-soft);
    cursor: pointer;
}

.third-info-text{
    color: var(--gris-azul-oscuro);
}

/**desktop**/
@media (min-width: 767px) {
  .third{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}