/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*===== VARIABLES CSS =====*/
:root{
    --header-height: 3rem;
    --font-medium: 500;
}

/*===== Colores =====*/
:root{
    --dark-color: #2A3B47;
    --text-color: #697477;
    --special-red:#FF725E;
}

/*===== Fuente y tipografia =====*/
:root{
    --body-font: "Poppins", sans-serif;
    --navze: 6.25rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
}
@media screen and (min-width: 768px){
    :root{
        --navze: 5rem;
        /* https://stackoverflow.com/questions/15649244/responsive-font-size-in-css */
        /* --navze: 6vw; */
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/*===== Margenes =====*/
:root{
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
}

/*===== z index =====*/
:root{
    --z-fixed: 100;
}

/*===== BASE =====*/
*,::before,::after{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
    /* https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp */
}
h1,h2,p{
    margin: 0;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    color: var(--text-color);
}

.img{
    max-width: 100%;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .logo .img {
    width: 40px;
    margin-right: 0.6rem;
    margin-top: -0.6rem;
  }
  
  .logo h3 {
    color: var(--special-red);
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .btn {
    background-color: var(--special-red);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-weight: var(--font-semi-bold);
    transition: .3s;
  }

  .btn:hover{
      background-color: #fff !important;
      color: var(--special-red) !important;
      box-shadow: 2px 2px 30px rgb(0 0 0 / 20%) !important;
  }

  .btn-nav {
    background-color: #fff !important;
    color:var(--special-red);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-weight: var(--font-semi-bold);
    transition: .3s;
  }

  .btn-nav:hover{
      /* background-color: #fff; */
      color: var(--special-red) !important;
      /* box-shadow: 2px 2px 30px rgb(0 0 0 / 20%); */
  }


/* ==========> Hamburger Menu <========== */
  
.hamburger-menu {
    position: relative;
    z-index: 99;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
  }
  
  .hamburger-menu .bar {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: #FF725E;
    border-radius: 3px;
    transition: 0.5s;
  }
  
  .bar::before,
  .bar::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #FF725E;
    border-radius: 3px;
    transition: 0.5s;
  }
  
  .bar::before {
    transform: translateY(-8px);
  }
  
  .bar::after {
    transform: translateY(8px);
  }
  
  .nav.active .hamburger-menu .bar {
    background-color: transparent;
  }
  
  .nav.active .bar::before {
    transform: translateY(0) rotate(-45deg);
  }
  
  .nav.active .bar::after {
    transform: translateY(0) rotate(45deg);
  }

  
  
/* ==========> Hamburger Menu <========== */



  /* section {
      height: 100vh;
  } */



  /* #home{
    background-color: bisque;
    height: 100vh;
  }
*/
  /* #about {
      background-color: aquamarine;
      height: 100vh;
  }

  #services {
      background-color: blueviolet;
      height: 100vh;
  }


  #features {
      background-color: chocolate;
      height: auto;
  }

  #partners{
      background-color: crimson;
      height: 100vh;
  } */

  #contact_info{
      /* background-color: deeppink; */
      /* height: 100vh; */
  } 

  .links a {
    margin-left: 4.5rem;
    display: inline-block;
    transition: 0.3s;
  }

  .links,.overlay{
      display: none;
  }

/* ===== MEDIA QUERIES =====*/
/* For small devices */
@media screen and (max-width: 600px) {
    #about,#contact_info{
      height: auto;
    }
  }


/*===== CLASS CSS ===== */

/*===== LAYOUT =====*/
.bd-grid{
    /* max-width: 1024px; */
    /* max-width: 1100px; */
    max-width: 1350px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.l-header{
    width: 100%;
    position: fixed;
    /* position: sticky; */
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    /* background-color: var(--first-color); */
    /* background-color: white; */
}

/*===== NAV =====*/
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media screen and (max-width: 768px){
    .nav__menu{
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        /* background-color: rgba(255,255,255,.3); */
        /* background-color: white; */
        transition: .5s;
        /* backdrop-filter: blur(10px); */
        box-shadow: -1px 0 4px rgb(14 55 63 / 15%);
    }
}

@media screen and (max-width: 955px) {
    .hamburger-menu {
      display: flex;
    }
    .links {
        position: fixed;
        top: 0;
        right: 0;
        max-width: 450px;
        width: 65%;
        height: 100%;
        /* background-color: var(--mainColor); */
        background-color: #fff;
        z-index: 95;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.5s;
      }
    
      .links ul {
        flex-direction: column;
      }
    
      .links a {
        color: #FF725E !important;
        margin-left: 0;
        padding: 2rem 0;
      }
    
      .links .btn {
        background: none;
      }
    
      .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        pointer-events: none;
        transition: 0.5s;
      }
    
      .nav.active .links {
        transform: translateX(0);
        box-shadow: 0 0 50px 2px rgba(0, 0, 0, 0.4);
      }    

      .nav.active .overlay {
        pointer-events: all;
        opacity: 1;
      }
    
}

/* @media screen and (max-width: 1000px){
    .l-header{
        background-color: yellow !important;
    }
} */

/* https://stackoverflow.com/questions/26696254/media-queries-firing-at-wrong-width */
@media only screen and (max-width: 955px) {
    .nav__menu {
      /* background-color: pink; */
      display: none;
    }
    .hamburger-menu{
        display: flex;
    }
}



.nav__item{
    margin-bottom: var(--mb-4);
}
.nav__link{
    position: relative;
    color: var(--dark-color);
}
.nav__link:hover{
    color: var(--first-color);
}
.nav__logo{
    color: var(--white-color);
}
.nav__toggle{
    color: var(--special-red);
    font-size: 1.5rem;
    cursor: pointer;
}

/*=== Show menu ===*/
.show{
    right: 0;
}

/*Active menu*/
.active__menu::after{
    position: absolute;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 1.3rem;
    background-color: var(--first-color);
}

.flex-container {
    /* We first create a flex layout context */
    display: flex;
    
    /* Then we define the flow direction 
       and if we allow the items to wrap 
     * Remember this is the same as:
     * flex-direction: row;
     * flex-wrap: wrap;
     */
    /* flex-flow: row wrap; */

      /* Then we define how is distributed the remaining space */
  /* justify-content: center; */
}




/* ===== MEDIA QUERIES =====*/
/* For small devices */
/* @media screen and (max-width: 320px) {

} */

@media screen and (min-width: 768px){
    body{
        margin: 0;
    }
    .section{
        /* padding-top: 4em; */
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .section-title{
        margin-bottom: 3rem;
    }
    .section-title::after{
        width: 64px;
        top: 3rem;
    }

    .nav{
        height: calc(var(--header-height) + 1rem);
    } 

    .nav__list{
        display: flex;
    }
    .nav__item{
        margin-left: var(--mb-4);
        margin-bottom: 0;
    }
    /* .nav__toggle{
        display: none;
    } */
    .nav__link{
        color: var(--white-color);
    }
    .nav__link:hover{
        color: var(--white-color);
    }
    .active__menu::after{
        background-color: var(--special-red);
    }

@media screen and (min-width: 1024px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
}

}

@media screen and (max-width: 870px) {
  
    .logo h3 {
      font-size: 1.25rem;
    }

}

/* https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries */
/* If the browser window is 900px or smaller */
@media screen and (max-width: 900px) and (orientation: landscape) { 

    .links a {
        padding: 1rem 0;
    }

}


/* ===== FOOTER=====*/
.footer{
  /* background-color: #5361FF; */
  /* background-color: #FAFAFF; */
  /* padding-top:7.1rem !important; */

}
.footer__container{
  row-gap: 2rem;
}
.footer__title{
  font-size: var(--normal-font-size);
  /* color: var(--white-color); */
  color:#FF725E;
  margin-bottom: var(--mb-2);
}
.footer__link{
  padding: .25rem 0;
  /* color:white; */
  color:black;
}
.footer__text:hover{
  color: #FF725E !important;
  cursor: pointer;
}
.footer__link:hover{
  color: #FF725E;
  cursor: pointer;
}
.footer__social{
  font-size: 1.4rem;
  margin-right: var(--mb-1);
  /* color:white; */
  color:black;
}
.footer__social:hover{
  color: #FF725E;
}

.footer__text{
  /* color:white; */
  color:black;
}

.footer__copy {
  margin-top: 6rem;
  text-align: center;
  font-size: .813rem;
  color: var(--text-color);
}

@media screen and (min-width: 768px){

  .footer__container{
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

}

@media screen and (max-width: 768px){

  .footer__copy {
    margin-bottom: 1rem;
  }  

}


/* ===== FOOTER=====*/



  /* https://stackoverflow.com/questions/1144805/scroll-to-the-top-of-the-page-using-javascript?noredirect=1&lq=1   */
  /* Due to the code that I am using from the Scroll To Top Button With Scroll Progress | HTML, CSS & Javascript I will have to copy this and comment out the original code. This is necessary in order to incorporate this image with the new code snippet  */
  #top-page {
    /* width: 50px; This is a bit too big so will have to change this */
    width: inherit;
    /* position: fixed; If this is commented out then right and bottom will have no effect on the element */
    right: 5px;
    bottom: 40px;
    cursor: pointer;
    color: white;
    /* display: none; */
  }
/* 
  #top-page {
    width: 50px;
    position: fixed;
    right: 5px;
    bottom: 40px;
    cursor: pointer;
    color: white;
    display: none;
  } */

  .img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
  }
  
  /* // <!-- Scroll To Top Button With Scroll Progress | HTML, CSS & Javascript - https://www.youtube.com/watch?v=dvtDGyftss0 --> */

  #progress {
    position: fixed;
    bottom: 20px;
    right: 10px;
    height: 70px;
    width: 70px;
    display: none;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }


  #progress-value {
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background-color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 35px;
    color: #001a2e;
  }


/* Loading Screen */

.loading {
  font-family:"Poppins", sans-serif;;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 15px solid #f3f3f3;
  border-top-color: #FF725E;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.updating-text {
  font-size: 18px;
  font-weight: bold;
}

/* Larger size for desktop and tablet screens */
@media screen and (min-width: 768px) {
  .loading_screen_logo {
    max-width: 50%;
    height: auto;
    padding-bottom:50px;
  }
}

/* Smaller size for mobile screens */
@media screen and (max-width: 767px) {
  .loading_screen_logo {
    max-width: 80%;
    height: auto;
    padding-bottom:50px;
  }
}