/* MENU STYLES */

:root {
    --sidebar-height: 42px;
    --sidebar-width: 50px;
    --sidebar-width-open: 250px;
}

.primary-nav {
  position: fixed;
  z-index: 999;
}

.menu { position: relative; }

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.open-panel {
  border: none;
  background-color: #fafafa;
  padding: 0;
}

.hamburger {
  background: var(--color1);/* #fff;*/
  position: relative;
  display: block;
  text-align: center;
  padding: 13px 0;
  width: var(--sidebar-width);
  height: var(--sidebar-height);
  left: 0;
  top: 0;
  z-index: 1000;
  cursor: pointer;
}

.hamburger:before {
  content: "\2630"; /* hamburger icon */
  display: block;
  color: #000;
  /*line-height: 32px;*/
  font-size: 16px;
}

.openNav .hamburger:before {
  content: "\2715"; /* close icon */
  display: block;
  color: #000;
  /*line-height: 32px;*/
  font-size: 16px;
}

.hamburger:hover:before { color: #777; }

.primary-nav .menu li { position: relative; }

.menu .icon {
  position: absolute;
  top: 1em;
  right: 15px;
  pointer-events: none;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0.6;
  font-size: 12px;
  text-align: center;
}

.menu, .menu a, .menu a:visited {
  color: #aaa;
  text-decoration: none!important;
  position: relative;
}

.menu a {
  display: block;
  white-space: nowrap;
  /* padding: 1em; */
  padding: 1em 1em 0.4em 1em;
  /* padding-right: 1em; */
  /* padding-left: 1em; */
  /* padding-top:1em; */
  /* padding-bottom:0.4em; */
  font-size: 14px;
}

.menu a:hover { color: #fff; }

.menu { margin-bottom: 3em; }

.menu-dropdown li .icon { color: #777; }

.menu-dropdown li:hover .icon { 
  color: #fff;
  opacity:1;
}

.menu label {
  margin-bottom: 0;
  display: block;
}

.menu label:hover { cursor: pointer; }

.menu input[type="checkbox"] { display: none; }

input#menu[type="checkbox"] { display: none; }

.sub-menu-dropdown { display: none; }

#container {
  position: absolute;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu:checked + ul.menu-dropdown {
  left: 0;
  -webkit-animation: all .45s cubic-bezier(0.77, 0, 0.175, 1);
  animation: all .45s cubic-bezier(0.77, 0, 0.175, 1);
}

.sub-menu-checkbox:checked + ul.sub-menu-dropdown {
  display: block!important;
  -webkit-animation: grow .45s cubic-bezier(0.77, 0, 0.175, 1);
  animation: grow .45s cubic-bezier(0.77, 0, 0.175, 1);
}

.openNav #container {
  position: absolute;
  transform: translate3d(200px, 0, 0);
  transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
  width: calc(100% - var(--sidebar-width-open));
}

.downarrow {
  background: transparent;
  position: absolute;
  right: 50px;
  top: 12px;
  color: #777;
  width: 16px;
  height: 16px;
  text-align: center;
  display: block;
  opacity: 0.6;
}

.downarrow:hover { 
  color: #fff;
  opacity: 1; 
}

.menu {
  position: absolute;
  display: block;
  left: -200px;
  top: 0;
  width: var(--sidebar-width-open);
  transition: all 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  background-color: #000;
  z-index: 999;
}

.menu-dropdown {
  top: 0;
  overflow-y: auto;
}

.overflow-container {
  position: relative;
  height: calc(100vh - var(--sidebar-height)) !important;
  overflow-y: auto;
  /* border-top: var(--sidebar-height) solid #fff; */
  z-index: -1;
  display: block;
}

.menu a.logotype {
    display: flex;
    align-items: center;
    height: var(--sidebar-height);
    padding-left: 70px;
    background: var(--color1);
    color: #000!important;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none!important;
    box-sizing: border-box;
}

.menu a.logotype span { font-weight: 400; }

.menu a.logotype:hover { color: #777; }

.sub-menu-dropdown { 
  background-color: #333;
  padding-left: 15px !important;
}

.menu:hover {
  position: absolute;
  left: 0;
  top: 0;
}

.openNav .menu:hover {
  position: absolute;
  left: -200px;
}

.openNav .menu { 
  transform: translate3d(200px, 0, 0);
  transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Text meant only for screen readers. */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;/* Above WP toolbar. */
}

.menu-section {
    position: relative;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255,255,255,0.35);
    padding: 18px 60px 8px 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

/* pequeña línea derecha */
.menu-section::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 60%;

    width: 40px;
    height: 2px;

    background: rgba(255,255,255,0.25);

    transform: translateY(-50%);
}

.blink-icon {
    animation: pulseMenu 1.2s 10;
}

@keyframes pulseMenu {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.18);
        opacity: 0.55;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* REDES SOCIALES SIDEBAR */

.sidebar-social {
   position: absolute;
   bottom: 0;
   left: 0;

   width: 100%;
   height: 52px;

   display: flex;
   align-items: center;
   justify-content: center;
    
   background: rgba(255,255,255,0.03);
   border-top: 1px solid rgba(255,255,255,0.08);

   z-index: 5;
}

.sidebar-social a {
   display: flex;
   align-items: center;
   justify-content: center;

   width: 28px;
   height: 28px;

   opacity: 0.65;
   transition: all .25s ease;
   padding: 1em 0.4em 0.4em 0.4em;
}

.sidebar-social a:hover {
   opacity: 1;
   transform: translateY(-2px) scale(1.08);
}

.sidebar-social img {
   width: 18px;
   height: 18px;
   display: block;
}