@font-face {
  font-family: 'Colfax';
  src: url(../fonts/Colfax-Regular.otf);
}

@font-face {
  font-family: 'Raleway-Thin';
  src: url(../fonts/Raleway-Thin.ttf);
}

@font-face {
  font-family: 'Raleway-Light';
  src: url(../fonts/Raleway-Light.ttf);
}

@font-face {
  font-family: 'Raleway';
  src: url(../fonts/Raleway-Regular.ttf);
}

@font-face {
  font-family: 'Raleway-Medium';
  src: url(../fonts/Raleway-Medium.ttf);
}


/*===== VARIABLES CSS =====*/
:root {
  --header-height: 0;
}

/*===== Colores =====*/
:root {
  --first-color: #3664F4;
  --dark-color: #070D1F;
  --dark-color-alt: #282B3A;
  --white-color: #E6E7E9;
}

/*===== Fuente y tipografia =====*/
:root {
  --body-font: 'Poppins', sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
}

@media screen and (min-width: 768px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*===== z index =====*/
:root {
  --z-fixed: 100;
}

/*===== BASE =====*/
*, ::before, ::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: var(--header-height) 0 0 0;
  font-weight: 500;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.bd-grid {
  max-width: 1900px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100%;
  grid-template-columns: 100%;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*===== HEADER =====*/

#header {
  position: fixed;
  z-index: 20;
  background-color: white;
  width: 100%;
  border-bottom: 1px solid rgb(226, 226, 226);
}

.header {
  margin-top: .5em;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 1.5rem;
  z-index: var(--z-fixed);
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header__logo img{
  width: auto;
  max-height: 75px;
}

.header__toggle {
  font-size: 1.5rem;
  color: black;
  cursor: pointer;
}

/*===== NAV =====*/
@media screen and (max-width: 1039px) {

  .anchor {
    display:block;
    height:70px; 
    margin-top:-70px; 
    visibility:hidden;
 }

  #header {
    padding-top: .5em;
    display: grid;
    grid-template-columns: 85% 15%;
    align-items: center;
  }

  .header__logo {
    margin: 0 auto 0 0;
    padding-left: 1em;
  }

  .header__toggle {
    margin: 0 0 0 auto;
    padding-right: 1em;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: white;
    color: black;
    width: 100%;
    height: 100vh;
    padding: 1.5rem 0;
    z-index: var(--z-fixed);
    -webkit-transition: .5s;
    transition: .5s;
  }
}

.nav__content {
  height: 100%;
  -ms-grid-rows: max-content max-content;
  grid-template-rows: -webkit-max-content -webkit-max-content;
  grid-template-rows: max-content max-content;
  row-gap: 2rem;
}

.nav__close {
  color: white;
  position: absolute;
  right: 1.5rem;
  font-size: 1.3rem;
  padding: .25rem;
  background-color: var(--dark-color-alt);
  border-radius: 50%;
  cursor: pointer;
}

.nav__img {
  display: none;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: .8rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.nav__img img {
  width: 100%;
  display: block;
}

.nav__name {
  display: none;
  color: var(--white-color);
}

.nav__menu {
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
}

.nav__item {
  margin: 1rem 0;
  text-align: left;
}

.nav__link {
  color: #b49c86; 
  font-family: Raleway-Medium;
  font-size: .8rem;
}

.nav__social {
  padding-top: .5rem;
}

.nav__social-icon {
  font-size: 1.2rem;
  color: var(--white-color);
  margin-right: 1rem;
}

.nav__social-icon:hover {
  color: var(--first-color);
}

/*Aparecer menu*/
.show {
  left: 0;
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 1040px) {
  body {
    margin: 0;
  }

  .anchor {
    display:block;
    height:85px; 
    margin-top:85px; 
    visibility:hidden;
 }

  .header {
    margin-top: 0;
  }
  .header__logo, .header__toggle {
    display: none;
  }
  .nav {
    width: 100%;
    height: 100%;
  }
  .nav__content {
    padding: 0 1em;
    grid-template-columns: repeat(2, -webkit-max-content);
    grid-template-columns: repeat(2, max-content);
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    -webkit-column-gap: 4rem;
    column-gap: 4rem;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-grid-columns: (max-content)(2);
  }
  .nav__close, .nav__profesion {
    display: none;
  }
  .nav__perfil {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .nav__img {
      /*
    width: 32px;
    height: 32px;
    */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-right: .5rem;
    margin-bottom: 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .nav__img img {
    padding: .2em 0;
    width: 250px;
  }
  .nav__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .nav__item {
    margin: 0 .25rem;
  }
  .nav__link {
    padding: .3rem;
    border-radius: .25rem;
  }
  
  .nav__link:hover {
    color: #807367; 
  }
  /*
  .active {
    background-color: var(--first-color);
    color: var(--white-color);
  }
  */
}

@media screen and (min-width: 1040px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  @media screen and (min-width: 1500px) {
    body {
      margin: 0;
    }
  
    .anchor {
      display:block;
      height:110px; 
      margin-top:-110px; 
      visibility:hidden;
   }
  
    .header {
      margin-top: 0;
    }
    .header__logo, .header__toggle {
      display: none;
    }
    .nav {
      width: 100%;
      height: 100%;
    }
    .nav__content {
      padding: 0 1em;
      grid-template-columns: repeat(2, -webkit-max-content);
      grid-template-columns: repeat(2, max-content);
      -ms-grid-rows: 1fr;
      grid-template-rows: 1fr;
      -webkit-column-gap: 4rem;
      column-gap: 4rem;
      -webkit-box-pack: justify;
      -ms-flex-pack: justify;
      justify-content: space-between;
      -ms-grid-columns: (max-content)(2);
    }
    .nav__close, .nav__profesion {
      display: none;
    }
    .nav__perfil {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
    }
    .nav__img {
        /*
      width: 32px;
      height: 32px;
      */
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      margin-right: .5rem;
      margin-bottom: 0;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
    }
    .nav__img img {
      padding: .2em 0;
      width: 400px;
    }
    .nav__list {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
    }
    .nav__item {
      margin: 0 .25rem;
    }
    .nav__link {
      padding: .5rem;
      border-radius: .25rem;
    }
    
    .nav__link:hover {
      color: #807367; 
    }
    /*
    .active {
      background-color: var(--first-color);
      color: var(--white-color);
    }
    */
  }
  

}