/*Google fonts*/
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap");
/*----- VARIABLES CSS -----*/
/*Varibles en general*/
/*Colores*/
:root {
  --first-color: #EFD50C;
  --text-color: #B7B7B7;
  --bg-color: #141313;
  --white-color: #fff;
  --icon-color: #ED4C50; 
}
/*Fuente y Tipografia*/
:root {
  --body-font: 'Montserrat', sans-serif;
  --big-font-size: 3rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.93rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.5rem; 
}
@media screen and (min-width: 768px) {
    :root {
      --big-font-size: 6rem;
      --h2-font-size: 1.5rem;
      --normal-font-size: 1rem; } 
}
/*z index*/
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000; 
}
/*----- BASE -----*/
*, ::before, ::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
body {
  margin: 3rem 0 0 0;
  font-family: var(--body-font);
  font-weight: initial;
  background-color: var(--bg-color);
  overflow: hidden;
}
h1, h2, h3 {
  margin: 0;
  font-weight: bold;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  font-size: var(--normal-font-size);
}
/* Content */
.d-block {
  display: block;
}
.d-inline {
  display: inline-block;
}
/* Layout */
.bd-grid {
  display: grid;
  grid-template-columns: 100%;
  max-width: 1200px;
  margin-left: 1rem;
  margin-right: 1rem;
}
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-color);
  color: var(--first-color);
  z-index: var(--z-fixed);
}
/* Pages */
/* Nav */
.nav {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--bg-color);
    width: 100%;
    height: 40%;
    padding: 2rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 10px 10px 10px #000;
    transition: .5s;
  }
}
.nav__list {
  text-align: center;
}
.nav__item {
  margin-bottom: 1.5rem;
}
.nav__link {
  padding: .5rem;
  color: var(--text-color);
}
.nav__link:hover {
  color: var(--first-color);
}
.nav__logo {
  font-size: var(--normal-font-size);
}
.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
}
/* Aparecer menu */
.show {
  top: 3rem;
}
/* Home*/
.main-home {
  height: calc(100vh - 3rem);
  padding-left: 1rem;
  background-color: var(--bg-color);
}
.home {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  row-gap: 2.3rem;
  align-content: flex-end;
  overflow: hidden;
}
.home__title {
  position: absolute;
  top: 3%;
  font-size: var(--big-font-size);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: var(--text-color);
}
.home__img {
  position: absolute;
  top: 7%;
  left: 20%;
  width: 484px;
  z-index: var(--z-normal);
}
.home__information {
  padding-left: 4.25rem;
  padding-right: 2rem;
  color: var(--text-color);
}
.home__subtitle {
  font-size: var(--h2-font-size);
  color: var(--first-color);
}
/* Components */
.icon-box {
  color: var(--icon-color);
  font-size: 3rem;
}
.icon-box--small {
  font-size: 1rem;
}
.box {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
}
.box--dark {
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: 10px 10px 30px #000 ;
  border-radius: 1rem;
  text-align: center;
}
.box__medium {
  width: 150px;
  height: 150px;
  padding: 1.5rem .75rem;
  margin-right: 2rem;
}
.box__medium--title {
  font-size: 3rem;
  color: var(--white-color);
}
.box__medium-description {
  font-size: var(--normal-font-size);
  margin-bottom: .5rem;
}
.box__medium-detail {
  font-size: var(--small-font-size);
}
.box__small {
  width: 70px;
  height: 70px;
  padding: .75rem 0;
  margin-bottom: .625rem;
}
.box__small-title {
  font-size: var(--small-font-size);
  color: var(--white-color);
}
.box__small-detail {
  font-size: var(--smaller-font-size);
}

/* Media queries */
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .main-home {
    height: 100vh;
    padding: 0;
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-right: 2rem;
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .home {
    height: 100vh;
    grid-template-columns: 402px 322px;
    grid-template-rows: 152px;
    justify-content: center;
    padding-bottom: 2rem;
  }
  .home__title {
    top: 23%;
    left: 0;
    right: 0;
    writing-mode: initial;
    transform: initial;
    text-align: center;
  }
  .home__img {
    width: 569px;
    top: 32%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .home__information {
    padding: 0;
  }
}
@media screen and (min-width: 1200px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}