/* General */
body {
  background-color: #2C3542;
  color: #ABABAB;
  font-family: 'Futura', 'Nunito', 'Century Gothic', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.primary {
  color: #2C3542;
}

.accent {
  color: #87733E;
}

h1, h2, h3, h4, h5 {
  color: #2C3542;
  font-weight: 400;
}

h1 {
  font-size: 2.5em;
  letter-spacing: -1px;
  position: relative;
}

h1::before {
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  border-left: 2px solid #87733E;
  content: "";
  display: block;
  height: 2em;
  position: absolute;
  transform: rotate(42deg);
  top: -0.4em;
  left: -0.65em;
  width: 0;
}

a {
  color: #2C3542;
  display: block;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: #ABABAB
}

/* Icons */
.material-icons {
  direction: ltr;
  display: inline-block;
  font-family: 'Material Icons';
  font-size: 1.4em;  /* Preferred icon size */
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  position: relative;
  text-transform: none;
  top: 0.25em;
  word-wrap: normal;
  white-space: nowrap;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;
  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support for IE. */
  font-feature-settings: 'liga';
}

/* Top Navigation */
.top-navigation {
  background-color: #e9e7e2;
  height: 80px;
}

.logo::before {
  background-color:#fff;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  transform: skewX(-45deg);
  left: calc(330px / -2);
  height: 330px;
  width: 330px;
  z-index: 2;
}

.logo::after {
  background-color: rgba(255, 255, 255, 0.1);
  content: "";
  display: block;
  position: absolute;
  top: 0;
  transition: transform 200ms ease-in-out;
  transform: skewX(-45deg);
  left: calc(360px / -2);
  height: 360px;
  width: 360px;
  z-index: 1;
}

.logo:hover::after {
  transform: scale(1.4) skewX(-45deg);
}

#logo {
  display: block;
  height: auto;
  position: absolute;
  margin: 20px 25px;
  width: 140px;
  z-index: 2;
}

nav {
  text-align: right;
  position: absolute;
  padding: 10px;
  width: 70%;
  top: 25px;
  right: 20px;
}

nav a {
  color: #2C3542;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 5px 15px;
}

nav a::after {
  border-right: 2px solid transparent;
  border-left: 2px solid transparent;
  border-bottom: 2px solid #87733E;
  bottom: 0;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
  content: "";
  height: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 150ms ease;
  width: 100%;
}

nav a:hover {
  text-decoration: none;
}

nav a:hover::after {
  opacity: 1;
}

nav .top {
  font-size: 26px;
}

.mobile-menu {
  background-color: #fbfaf9;
  display: none;
  height: auto;
  left: 0;
  padding: 10px 0;
  position: absolute;
  top: 80px;
  width: 100%;
  z-index: 4;
}

.mobile-menu.open {
  display: block;
}

#mobileTrigger .close {
  display: none;
}

#mobileTrigger.open .menu {
  display: none;
}

#mobileTrigger.open .close {
  display: inline-block;
}

/* Home */
.container {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  max-width: 1400px;
}

.wrapper {
  margin: 0 auto 0 10%;
  max-width: 600px;
  position: relative;
  width: 48%;
  z-index: 2;
}

#hero {
  align-items: center;
  background: url('../quienes-somos.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  height: 600px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#hero::after {
  background-color: rgba(44, 53, 66, 0.6);
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#hero .tagline {
  bottom: 100px;
  color: #fff;
  font-size: 36px;
  margin: 0 30px;
  max-width: 680px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#compromiso,
#nosotros {
  background-color: #fff;
  padding: 60px 40px 90px;
  position: relative;
  overflow: hidden;
}

#nosotros::after {
  background-color: #2C3542;
  content: "";
  display: block;
  height: 150%;
  position: absolute;
  right: calc(-80%);
  top: -50%;
  transform: skewX(-45deg);
  width: 100%;
}

a.more {
  color: #87733E;
}

#servicios {
  align-items: center;
  background-color: #2C3542;
  background: url('../servicios.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-flow: column wrap;
  height: 600px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 60px 40px;
  position: relative;
}

#servicios::after {
  background-color: rgba(44, 53, 66, 0.4);
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform: skewX(-45deg);
  width: 100%;
}

#servicios h1 {
  color: #fff;
  font-size: 3em;
  margin: 0.5em 0 0.2em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  width: 100%;
  z-index: 2;
}

#servicios h1::before {
  display: none;
}

#compromiso {
  background-color: #fbfaf9;
}

#compromiso .wrapper {
  margin: 0 auto;
}

#compromiso p {
  color: #808080;
  text-align: left;
}

#compromiso img {
  display: block;
  margin: 30px 30px 40px auto;
  width: 80px;
}

#contacto {
  background-color: #fff;
  clear: both;
}

ul.servicios {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: relative;
  max-width: 1140px;
  width: 100%;
  z-index: 2;
}

ul.servicios li {
  background-color: #f8f8f8;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  color: #141005;
  margin: 10px;
  border-radius: 6px;
  padding: 10px;
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: all 400ms ease;
  width: 25%;
}

ul.servicios li::after {
  background-image: url('../img/noise.png');
  content: "";
  display: block;
  height: 100%;
  opacity: 0.2;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

ul.servicios li::before {
  border-bottom: 0 solid transparent;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-top: 35px solid #c6a039;
  content: "";
  display: block;
  left: -35px;
  position: absolute;
  top: 0;
  transition: left 200ms ease-in-out;
  z-index: -1;
}

ul.servicios li:hover {
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.7);
}

ul.servicios h3 {
  color: #141005;
  margin: 0;
  padding: 0.5em 0;
}

ul.servicios .desc {
  color: #28200b;
  font-size: 16px;
  padding: 0 10px 10px;
}

a.services {
  background-color: #243241;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 5px 15px 10px;
  position: relative;
  text-align: center;
  transition: all 400ms ease;
  z-index: 2;
}

a.services:hover {
  background-color: #196ee6;
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

a.services span {
  padding-left: 5px;
}

#contacto {
  padding: 60px 40px 90px;
}

/**
 * Services
 */

#hero.services {
  background-image: url('../servicios.jpg');
}

#hero.nosotros {
  background-image: url('../nosotros.jpg');
}

#hero.nosotros .tagline,
#hero.services .tagline {
  font-size: 30px;
}

.nosotros h2,
.services h2 {
  color: #fff;
  margin-top: -30px;
}

.servicios-wrapper {
  background-color: #fbfaf9;
  overflow: hidden;
}

.nosotros-wrapper {
  background-color: #fbfaf9;
  overflow: hidden;
  padding: 30px 60px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 1024px;
}

.nosotros-wrapper .content-wrapper {
  max-width: 600px;
}

.nosotros-wrapper h1 {
  margin-top: 1.3em;
}

#nav-servicios {
  float: left;
  width: 32%;
}

#content-servicios {
  float: left;
  width: 68%;
  padding: 30px 60px;
  box-sizing: border-box;
}

#content-servicios h1 {
  font-size: 1.8em;
}

#content-servicios .li {
  display: none;
}

#content-servicios .li.active {
  display: block;
}

#nav-servicios .servicios {
  width: 300px;
  margin: 40px auto;
}

#nav-servicios .servicios li {
  width: 100%;
}

.servicios li.active {
  background-color: #243241;
  color: #fff;
}

#nav-servicios .servicios li.active::before {
  left: -70px;
}

#mobileTrigger {
  display: none;
}

@media screen and (max-width: 830px) {
  #logo {
    width: 100px;
  }

  .logo::before {
    height: 250px;
    left: calc(250px / -2);
    width: 250px;
  }

  .logo::after {
    height: 280px;
    left: calc(280px / -2);
    width: 280px;
  }

  #nosotros::after {
    right: -130%;
  }

  .wrapper {
    margin-right: 10%;
    max-width: none;
    width: auto;
  }

  #hero {
    height: 400px;
  }

  #hero .tagline {
    font-size: 28px;
  }
}

@media screen and (min-width: 741px) {
  .mobile-menu.open,
  .mobile-menu {
    display: none;
  }
}

@media screen and (max-width: 740px) {
  nav {
    right: 0;
  }

  nav a {
    display: none;
  }

  nav.mobile-menu a {
    display: block;
  }

  nav #mobileTrigger {
    display: inline-block;
  }
}

@media screen and (max-width: 590px) {
  #nosotros::after {
    top: -10%
  }

  #logo {
    margin: 5px 15px;
    width: 80px;
  }

  .logo::before {
    background-color: transparent;
    background-image: linear-gradient(to right, #FFF 85%, transparent);
    height: 80px;
    transform: none;
  }

  .nosotros-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 320px) {
  .nosotros-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}
