.btn-rounded-secondary {
  color: #FFFFFF;
  border: solid #FFFFFF 1px;
  letter-spacing: 0.09em;
  display: inline-block;
  text-align: center;
  width: 210px;
  position: absolute;
  bottom: 31px;
  right: 50%;
  transform: translateX(50%);
}

.btn-rounded-secondary:hover {
  background-color: #FFFFFFE6;
  color: #000000;
}

.carousel {
  height: 100%;

  .carousel-inner {
    height: 100%;

    .carousel-item {
      height: 100%;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .desktop-image {
        display: none;
      }
    }
  }
}

section {
  height: 100vh;
}

.section-text, .carousel-item.overlay {
  position: relative;

  .overlay {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #000000b3;
  }

  h2 {
    color: #FFFFFF;
  }
}

.carousel-item.overlay h2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.section-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  * {
    z-index: 1;
  }

  h2 {
    margin: 0 20px 8px;
  }

  p {
    color: #FFFFFF;
    margin-top: 20px;
    font-weight: 350;
    width: 70%;
    margin: 45px 0;
    line-height: 1.3;
  }
}

#section1 {
  /* 110px es la altura del header */
  height: calc(100vh - 110px);
  height: auto;
}

#section2 {
  background-image: url('https://www.colombianrunners.com.co/public/assets/images/equipo-completo.webp');
}

#section3 {
  height: auto;

  h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 93px;
    text-align: center;
    padding: 30px 20px;
    height: 20%;
    margin: 0;
  }

  .carousel {
    height: 80%;
    padding: 0 30px 45px;
  }
}

#section4 {
  background-image: url('https://www.colombianrunners.com.co//public/assets/images/entrenamiento-adaptado.webp');
}

#section5 {
  background-image: url('https://www.colombianrunners.com.co//public/assets/images/running-para-superar.webp');
}

#section6 {
  display: flex;
  align-items: center;

  .content {
    width: 40%;
    padding: 0 25px;

    h2 {
      font-weight: bold;
      margin-bottom: 30px;
    }

    p {
      margin-bottom: 70px;
    }
  }

  #carousel-teams {
    width: 60%;
  }
}

.btn-rounded-secondary {
  color: #FFFFFF;
  border: solid #FFFFFF 1px;
  letter-spacing: 0.09em;
  display: inline-block;
  text-align: center;
  width: 210px;
}

.btn-rounded-secondary:hover {
  background-color: #FFFFFFE6;
  color: #000000;
}

body h2 {
  font-size: 61px;
}

.p-section {
  font-size: 20px;
}

@media (min-width: 800px) {
  .carousel .carousel-inner .carousel-item {
    .mobile-image {
      display: none;
    }

    .desktop-image {
      display: block;
    }
  }
}


@media (max-width: 768px) {

  body {

    .btn-rounded-secondary {
      font-size: 12px;
      width: 185px;
    }

    h2 {
      font-size: 50px;
    }

    .p-section {
      font-size: 17px;
    }

    #section3 h2 {
      font-size: 80px;
    }

    #section6 {
      flex-direction: column;
      text-align: center;
      height: auto;

      .content {
        width: 100%;
        padding: 60px 25px;
      }

      #carousel-teams {
        width: 100%;
      }
    }
  }
}

@media (max-width: 551px) {
  body #section3 h2 {
    font-size: 65px;
  }
}

@media (max-width: 431px) {

  body {
    h2 {
      font-size: 40px;
    }
    
    .p-section {
        font-size: 15px;
    }
    
    #section3 h2 {
      font-size: 60px;
    }
    
    .btn-rounded-secondary {
      font-size: 11px;
      width: 170px;
    }
  }
}