/* =========================
   Botón hamburguesa + Drawer
   ========================= */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease;
}

.menu-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle__bars > span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle.is-open .menu-toggle__bars > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__bars > span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle__bars > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.menu-backdrop {
  z-index: 40;
}

.menu.is-open ~ .menu-backdrop {
  display: block;
}
