/* Sidebar Menu Styles */
.menuBox {
  position: fixed;
  z-index: 2200 !important;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  top: 0;
  right: 0;
  background: #239F40;
  color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
  opacity: 0;
}
.menuBox.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.menuBox .menubg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 1999 !important;
  pointer-events: none !important; /* Deja pasar los clics */
}
.menuBox ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 60px;
  position: relative;
  z-index: 2001 !important;
  pointer-events: auto !important;
}
.menuBox ul li.navmenu {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.menuBox ul li.navmenu > a {
  display: block;
  padding: 22px 32px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.menuBox ul li.navmenu > a:hover {
  background: #1b7e32;
}
.menuBox ul li.navmenu ol {
  display: none;
  background: #1b7e32;
  margin: 0;
  padding: 0 0 0 10px;
}
.menuBox ul li.navmenu.active ol {
  display: block;
}
.menuBox ul li.navmenu ol li a {
  display: block;
  padding: 18px 40px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menuBox ul li.navmenu ol li a:hover {
  background: #239F40;
}
.menuBox .plus {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  user-select: none;
}
.menuBox .plus:after {
  content: '+';
  font-size: 1.3rem;
}
.menuBox li.navmenu.active .plus:after {
  content: '-';
}
.menuBox .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
}
@media (max-width: 600px) {
  .menuBox {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Botón hamburguesa SIEMPRE visible y grande */
.hamburger {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  cursor: pointer;
  z-index: 2101;
  position: relative;
}
.hamburger-box {
  width: 40px !important;
  height: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-inner {
  display: block;
  width: 32px !important;
  height: 4px !important;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s;
}
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 32px !important;
  height: 4px !important;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  top: 10px;
}

/* FORZAR tamaño y visibilidad del botón hamburguesa */
nav .hamburger {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  border-radius: 8px !important;
  z-index: 2101 !important;
  position: relative !important;
  box-sizing: content-box !important;
  margin-left: 16px !important;
}

nav .hamburger-box {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

nav .hamburger-inner {
  display: block !important;
  width: 36px !important;
  height: 5px !important;
  background: #fff !important;
  border-radius: 2px !important;
  position: relative !important;
  transition: all 0.3s !important;
}

nav .hamburger-inner::before,
nav .hamburger-inner::after {
  content: '';
  display: block !important;
  width: 36px !important;
  height: 5px !important;
  background: #fff !important;
  border-radius: 2px !important;
  position: absolute !important;
  left: 0 !important;
  transition: all 0.3s !important;
}

nav .hamburger-inner::before {
  top: -12px !important;
}

nav .hamburger-inner::after {
  top: 12px !important;
}

/* Ocultar el botón hamburguesa cuando el menú lateral está abierto */
.menuBox.active ~ .hamburger,
.menuBox.active + .hamburger {
  display: none !important;
}

/* Animación tipo 'spin' para el botón hamburguesa */
.hamburger--spin .hamburger-inner {
  transition: background 0.3s 0.1s ease;
}
.hamburger--spin.active .hamburger-inner {
  background: transparent;
}
.hamburger--spin .hamburger-inner::before,
.hamburger--spin .hamburger-inner::after {
  transition: transform 0.3s 0.1s cubic-bezier(.4,0,.2,1), top 0.3s 0.1s cubic-bezier(.4,0,.2,1);
}
.hamburger--spin.active .hamburger-inner::before {
  transform: rotate(45deg);
  top: 0;
}
.hamburger--spin.active .hamburger-inner::after {
  transform: rotate(-45deg);
  top: 0;
} 