/*Menu*/
body{

    padding: 0;
}

.logo{
  position: absolute;
  float: left;
  height: 46px;
  width: 46px;
  margin: auto;
  margin-top: 0.5%;
  margin-bottom: 2%;
  margin-left:5%;
}

header{
  width: 100%;
  transition: all 4s;
}

header ul{
  padding: 0;
  margin: auto;
  list-style: none;
  font-family: "Loew";
}

#flechita{
  transform: translateY(-3px);
}

.menu{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 5.2vw;
  background: #f3f3f3;
  z-index: 1000;
  box-shadow: 2px 2px 5px #999; 
}

.menu > li{
  position:relative;
  display: inline-block; 
}

.menu > li > a{
  display: flex;
  margin: auto;
  padding: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2vw;
  color: #222944;
}

.menu li:hover{
  background: rgba(169, 146, 106, 0.8);
  transition: all 0.5s;
}

.menu li:hover a{
  color: #ffffff;
}

.menu-fixed{
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  box-shadow: 2px 2px 5px #999;
}

.logo-fixed{
  position: fixed;
  float: left;
  z-index: 1001;
}

.children{
  position: absolute;
  background: #f3f3f3;
  top: 5.2vw;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s;
  z-index: 9999;
}

.children  li  a{
  display: block;
  margin: auto;
  padding: 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2vw;
  color: #222944 !important;
}

.children li a:hover{
  background: #A9926A;
  color: #fff !important;
  transition: all 0.2s;
}

.menu > li:hover #flechita{
  animation-name: rotate;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.menu li:hover .children{
  visibility: visible;
  opacity: 1;
  box-shadow: 2px 2px 5px #999; 
}

.menu li:hover .children li:hover{
  background: rgba(169, 146, 106, 0.8);
  transition: all 0.2s;
}

#iconossub{
  position: absolute;
  right: 20px;
}

/*.subchildren{
  position: absolute;
  background: #f3f3f3;
  left:100%;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s;
  z-index: 9999;
  color: #A9926A !important;
}

.subchildren  li  a{
  color: #A9926A !important;
}

.children li:hover .subchildren{
  visibility: visible;
  opacity: 1;
  box-shadow: 2px 2px 5px #999; 
}

.children > li:hover i{
  animation-name: semirotate;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.children li:hover .subchildren li:hover{
  background: #A9926A;
  transition: all 0.2s;
}

.subchildren li:hover a{
  color: #FFF !important;
}*/

.menu_bar 
{
  display: none;
}
#flechasu {
  transform: rotate(-90deg);
   margin-left: 60px;
}
#flechasc {
  transform: rotate(-90deg);
   margin-left: 95px;
}

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

  
  .menu{
  position: fixed;
  display: block;
  justify-content: none;
  width: 65%;
  height: 100%;
  background: #A9926A;
  overflow-y: scroll;
  
  }
  .menu > li{
  position: relative;
  display: block;

  }

  .menu > li > a{
  
  margin: 0;
  padding: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 4vw;
  color: #FFF;

  }
  
  .logo{
      display: none;
  }
  .logo-fixed{
      display: none;
  }
  /*menu bar*/ 
  .menu_bar {
    display:block;
    width:100%;
    top:0;
    background: #A9926A;
    box-shadow: 2px 2px 5px #999;
  }

  .bt-logo{
    margin-left: 1px;
    height: 40%;
    width: 20%;
  }
  .menu_bar .bt-menu {
    display: block;
    padding: 20px;
    background: #f3f3f3;
    overflow: hidden;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
  }

  .menu_bar span {
    float: right;
    font-size: 40px;
  }
  .bt-menu .material-icons{
    color: #A9926A;
    position: absolute;
    width: 100%;
    height: 100%;
    left:80%;
    top:7%;
  }
  /*Menu*/
  header nav {
    width: 65%;
    height: calc(100% - 80px);
    position: fixed;
    left:-100%;
    margin: 0;
    overflow: scroll;
    z-index: 1000;
  }
  header nav ul li ul li {
    display: block;
    float:none;
    border-bottom:1px solid rgba(255,255,255,.5);
  }
  header nav ul li ul li  a {
    display: block;
  }

  header nav ul li {
    display: block;
    float:none;
    border-bottom:1px solid rgba(255,255,255,.5);
  }

  header nav ul li a {
    display: block;
  }
 /*submenu*/ 
 .children{
  display: none;
  }
  .children li:hover .subchildren{
    display: none;
  }
  header nav ul li:hover .children { 
    display: none;
  }
  header nav ul li .children {
    width: 100%;
    position: relative;
    background: #f3f3f3;
  }
  .menu li:hover .children li:hover{
    background: #f3f3f3;
    transition: all 0.2s;
  }
  header nav ul li .children li a {
    margin-left:20px;
    font-size: 3.5vw;
    color: #A9926A !important;
  }

  /*sub sub menu*/
  .subchildren{
    display: none;
  }
  header nav ul li ul li  .subchildren {
    position: relative;
    left: 0;
    visibility: visible;
    background: #A9926A;
    opacity: 1;
    box-shadow: 2px 2px 5px #999; 
  }
  header nav ul li ul li  .subchildren li a {
    margin-left:40px;
    font-size: 3.5vw;
    color: #f3f3f3 !important;
  }
  .subchildren li:hover a{
    color: #A9926A !important;
  }

  header nav ul li .caret {
    float: right;
  }
  
  #flechasu {
    transform: rotate(360deg);
     margin-left: 30px;
  }
  #flechasc {
    transform: rotate(360deg);
     margin-left: 60px;
  }

}
@media screen and (max-height:  450px){
  .bt-menu .material-icons{
    position: absolute;
    left:95%;
  }
  .menu > li > a{

  font-size: 2vw;
  padding: 15px;

  }
  .menu{
 
  width: 45%;
  height: 100%; 
}
.bt-logo{
  margin-left: 1px;
  height:10%;
  width: 5%;

}
header nav ul li ul li  .subchildren li a {
 
  font-size: 2vw;
 
}
 header nav ul li .children li a {
    margin-left:20px;
    font-size: 2vw;
  }

}

/*medias para IPAD*/
@media only screen  and (min-device-height : 768px)  and (max-device-width : 1024px) 
 {

  .logo{
    position: absolute;
    float: left;
    height: 50px;
    width: 50px;
    margin: auto;
    margin-bottom: 5%;
    margin-left:5%;

  }
  .logo-fixed{
    position: fixed;
    z-index: 1001;
  }
  .menu{
    /*la relga acontinuacion fue removida para evitar mal funcionamientoe equipos mobiles con relacion parecida a la de iphonex*/
    /*height: 6vw;*/

  }
 }
 @media only screen  and (min-device-width: 768px)  and (max-device-height : 1024px) and (orientation: portrait)
 {
  .menu{
 
    height: 100%;
  
  }
  #mainbannerresponsive{
    display: none;

  }
  #mainbanner{
    display: block;
  }

    .bt-logo{
      margin-left: 1px;
      height: 20%;
      width: 10%;
    }
    .bt-menu .material-icons{
      color: #A9926A;
      position: absolute;
      width: 100%;
      height: 100%;
      left:80%;
      top:5%;
    }
 }

 @media only screen  and (min-device-width: 2560px)  and (max-device-height : 1600px){
   .logo{
     bottom: 90%;
     height: 7%;
     width: 5%;
   }
 }

