/*
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
ul li {
  cursor: pointer;
  padding: 6px 20px;
  font-size: 48px;
  display: block;
}*/
/* BOTON MENU */
.boton-menu {
  opacity: 0.6;
  background-color: transparent;
  position: fixed;
  z-index: 1000;
  top: 5%;
  right: 5%;
  border: none;
  width: 36px;
  height: 30px;
  outline: none;
  transition: opacity 0.2s ease-out;
  padding: 0;
}

.boton-menu:focus {
  background-color: transparent !important;
}

.boton-menu:active {
  background-color: transparent !important;
}

.boton-menu:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  right: auto;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #d7a461,
    #d7a461 20%,
    transparent 20%,
    transparent 40%,
    #d7a461 40%,
    #d7a461 60%,
    transparent 60%,
    transparent 80%,
    #d7a461 80%,
    #d7a461 100%
  );
  transition: opacity 0.2s ease-out, width 0.2s 0.2s ease-out;
}

.boton-menu:after {
  opacity: 0;
  content: '×';
  color: white;
  position: absolute;
  top: 16px;
  left: -4px;
  font-family: Arial, sans-serif;
  font-size: 76px;
  line-height: 0;
  transition: opacity 0.4s ease-out;
}

.boton-menu:active {
  transform: translateY(2px);
}
.boton-menu:hover {
  opacity: 1;
}
.abrir .boton-menu {
  opacity: 1;
}
.abrir .boton-menu:before {
  opacity: 0;
  width: 0;
}
.abrir .boton-menu:after {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(360deg);
  transition: transform 0.4s 1s ease-out, opacity 0.4s 1s ease-out;
}

/* COMIENZO MENU  */
nav {
  z-index: 100;
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.75);
}
nav:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.75) !important;

  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 100%;
  transform: scale(0.04), translateY(9999px);
  overflow: hidden;
}
.abrir nav {
  top: 0;
}
.abrir nav:before {
  animation: menu-animation 0.8s ease-out forwards;
}

.menu {
  position: fixed;
  top: 50%;
  left: 45%; /* antes 50 */
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  perspective: 1000;
  color: #5f5d5d;
  display: inline-grid;
}

.menu a {
  color: #5f5d5d;
  background: transparent;
}

.menu a:hover {
  color: white;
  background: transparent;
}

ul.menu li {
  opacity: 0;
  text-align: center;
  transform: translate3d(0, 36px, 0);
  font-family: 'Gotham-XLight';
  font-size: 23px;
  line-height: 60px;
}

.abrir ul.menu li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.abrir ul.menu li:nth-child(1) {
  transition-delay: 0.75s;
}
.abrir ul.menu li:nth-child(2) {
  transition-delay: 0.85s;
}
.abrir ul.menu li:nth-child(3) {
  transition-delay: 0.95s;
}
.abrir ul.menu li:nth-child(4) {
  transition-delay: 1.05s;
}

/* SUB MENU */

.submenu {
  position: fixed;
  top: 50%;
  left: 58%; /* antes 63 */
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  perspective: 1000;
  color: #5f5d5d;
  /*display: none;*/
  display: inline-grid;
}

.submenu a {
  color: #5f5d5d;
  background: transparent;
}

.submenu a:hover {
  color: white;
  background: transparent;
}

ul.submenu li {
  opacity: 0;
  text-align: center;
  transform: translate3d(0, 36px, 0);
  font-family: 'Gotham-XLight';
  font-size: 23px;
  line-height: 60px;
  /*border-left: 1px solid #5f5d5d;*/
  padding-left: 40px; /* antes 60 */
}

/*
.borde-izq {
  border-left: 1px solid white;
  height: 85%;
  position: absolute;
}*/

/*
.abrir-submenu ul.submenu li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}*/

.abrir-submenu .borde-izq {
  opacity: 1;
  border-left: 1px solid #5f5d5d;
  height: 100%;
  position: absolute;
  animation-duration: 3s;
  animation-fill-mode: both;
  animation-name: fadeInTop;
}

.abrir-submenu ul.submenu li {
  opacity: 1;

  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* RESPONSIVO */

.collapsible {
  border-top: none;
  border-right: none;
  border-left: none;
  margin: 0;
  box-shadow: none;
}

ul.collapsible {
  padding-bottom: 20px;
}
.collapsible-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: none;
  padding: 0;
  background-color: transparent;
  border-bottom: none;
  padding-left: 15px;

  margin-bottom: -30px;
}

.collapsible-body {
  display: none;
  border-bottom: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

ul.submenu-resp li {
  opacity: 0;
  text-align: center;
  transform: translate3d(0, 36px, 0);
  font-family: 'Gotham-XLight';
  font-size: 14px;
  line-height: 35px;
}

/* EFECTO */
@keyframes menu-animation {
  0% {
    opacity: 0;
    transform: scale(0.04) translateY(300%);
  }
  40% {
    transform: scale(0.04) translateY(0);
    transition: ease-out;
  }
  40% {
    transform: scale(0.04) translateY(0);
  }
  60% {
    opacity: 1;
    transform: scale(0.02) translateY(0px);
  }
  61% {
    transform: scale(0.04);
  }
  99.9% {
    height: 0;
    padding-bottom: 100%;
    border-radius: 100%;
  }
  100% {
    transform: scale(2);
    height: 100%;
    padding-bottom: 0;
    border-radius: 0;
  }
}
