/* ============================================== */
/* HEADER */
/* ============================================== */

header{
  position:fixed;
  top:0;
  left: 0;
  width: 100%;
  display: block;
  z-index: 999999999;
  background: transparent;
}

/* ============================================== */
/* LOGO */
/* ============================================== */

.logo-desktop{
  width: 50px;
  padding: 0;
  position: absolute;
  left: 50%;
  top:10px;
  border: 2px solid #f1c898;
  margin-left: -25px;
}

.logo-footer{
  width: 100px;
  display: block;
  margin: 40px auto;
}

/* ============================================== */
/* NAVIGATION */
/* ============================================== */

.navigation{
	width: 90%;
	display: block;
  background:#101215;
  margin: 0 auto;
}

.navigation:after{
  content: "";
  clear: both;
  display: block;
}

.navigation ul{
	margin:0;
	width: 100%;
  float: left;
	list-style: none;
}

.navigation ul .left{float: left;}
.navigation ul .right{float: right;}

.navigation ul li{
	display: block;
	float: left;
  position: relative;
}

.navigation ul li a{
	padding: 20px 20px;
	color:#dedede;
	display: block;
  text-transform: uppercase;
  cursor: pointer !important;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 12px;
}

.navigation ul li a.active{color:#f1c898;position: relative;}
.navigation ul li a.active:after{
  content: " ";
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 20px;
  margin-left: -10px;
  height: 2px;
  background: #f1c898;
}

.navigation .menu{float: right;}

.navigation ul li:hover a, /* -- se queda deleccionado --*/
.navigation ul li a:hover,
.navigation .menu a:hover{
	color:#dedede;
  opacity: 0.6;
}

/* ============================================== */
/* NAVIGATION-ASIDE */
/* ============================================== */

.navigation-aside,
.navigation-aside-right{
  overflow: hidden;
  height: 100vh;
  position: fixed;
  top:0;
  width: 5%;
  z-index: 999;
  background: #101215;
}

.navigation-aside-right{right: 0;}

.navigation-aside ul,
.navigation-aside-right ul{
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  top:50%;
  left: 50%;
  background: transparent;

  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.navigation-aside li a{
  display: block;
  float: left;
  width: 100%;
  padding: 10px;
  text-align: center;
  color:white;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 12px;
  text-transform: uppercase;
}

.navigation-aside li a.active{
  color:#f1c898;
}

.navigation-aside ul li a:hover{
  color:#f1c898;
}

.navigation-aside-right ul li a{
  padding: 5px 0;
  display: block;
  overflow: hidden;
  width:60%;
  height: auto;
}

.navigation-aside-right ul li a span{

  height: 2px;
  display: block;
  float: right;
  overflow: hidden;
  background: white;
  width:30%;

  -webkit-transition:all 350ms ease;
  -moz-transition:all 350ms ease;
  -ms-transition:all 350ms ease;
  transition:all 350ms ease;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
}

.navigation-aside-right ul li a.active span{
  background: #f1c898;
  width:50%;
}

@media screen and (max-width: 768px){
  .navigation-aside,
  .navigation-aside-right{
    display: none;
  }
}



/* ============================================== */
/* HAMBURGUER */
/* ============================================== */

.hamburguer{
  position: relative;
  width:30px;
  float: right;
  height:50px;
  cursor:pointer;
  margin:0 10px;
  display: none;
  z-index: 999;
}

.hamburguer span{
  position:absolute;
  display:block;
  height:3px;
  opacity: 1;
  top:10px;
  right:0;
  background: #f1c898;
  width:100%;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
}

.hamburguer span:nth-child(1){top:30%;}
.hamburguer span:nth-child(2){top:49.8%;}
.hamburguer span:nth-child(3){top:70%;}

.hamburguer.active span:nth-child(1){width:65%;}
.hamburguer.active span:nth-child(2){width:25%;}
.hamburguer.active span:nth-child(3){width:85%;}

/* ============================================== */
/* RESPONSIVE */
/* ============================================== */


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

  header{
    position:fixed;
  }

  body {
    display: block;
    left:0;
    position: relative;
    height: 100%;
  }

  /* Logo */

  .logo-desktop{
    top:5px;
    width: 40px;
    margin-left: -20px;
  }

  /* Hamburguer */

  .hamburguer{
    display: block;
  }

  /* Body */

  .body-active {
    left:-250px;
  }

  /* Navigation */

  .navigation{
    width: 100%;
  }

  .navigation ul{
    display: block;
    position: absolute;
    top:50px;
    width: 250px;
    right:-250px;
    overflow-y: scroll;
    height: 100vh;
    padding: 0;

  }

  .navigation.active ul{
    right:0;
  }

  .navigation.active ul,
  .navigation ul li{
    width: 100%;
  }

  .navigation ul li a.active{color:black;}

  .navigation ul li a.active{
    background: #f1c898;
    border-bottom: none;
  }

  .navigation ul li{
    display: block;
    float: left;
    position: relative;
  }

  .navigation ul li a.active:after{
    display: none;
  }

  .navigation ul .left,
  .navigation ul .right{width: 100%;}

  /* Navigation abierto cerrado */

  .navigation.active ul{
    background: #101215;
  }

  .navigation ul.cerrados { /* esto es lo que tarda en regresar */
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
  }

  .navigation ul li{ /* esto es antes de empezar */
    left: 50%;
    opacity: 0 !important;
  }

  .navigation ul.abiertos .left li,
  .navigation ul.abiertos .right li{ /* esto es cuando ya empezo */
    left: 0%;
    opacity: 1 !important;
  }

  /* a partir de aqui es cuando se meten */

  .navigation.active ul.abiertos .left li:nth-child(1){
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
  }
  .navigation.active ul.abiertos .left li:nth-child(2){
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
  }
  .navigation.active ul.abiertos .left li:nth-child(3){
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
  }
  .navigation.active ul.abiertos .right li:nth-child(1){
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
  }
  .navigation.active ul.abiertos .right li:nth-child(2){
    -webkit-transition-delay: 0.4s;
    transition-delay: 0.4s;
  }
  .navigation.active ul.abiertos .right li:nth-child(3){
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
  }

  /* a partir de aqui es cuando se salen */

  .navigation ul .left li:nth-child(1){
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
  }
  .navigation ul .left li:nth-child(2){
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
  }
  .navigation ul .left li:nth-child(3){
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
  }

  .navigation ul .right li:nth-child(1){
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
  }
  .navigation ul .right li:nth-child(2){
    -webkit-transition-delay: 0.4s;
    transition-delay: 0.4s;
  }
  .navigation ul .right li:nth-child(3){
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
  }

  
}

/* ============================================== */
/* ANIMATION */
/* ============================================== */

.navigation ul li a,
.body-active,
.navigation ul,
.button,
.hamburguer span,
.navigation,
  .navigation ul .left li,
  .navigation ul .right li,
body{
  -webkit-transition:all 250ms ease;
  -moz-transition:all 250ms ease;
  -ms-transition:all 250ms ease;
  transition:all 250ms ease;
}








