:root {
  --bg: #000000;
  --fg: #ffffff;
  --blur: 10px;
  --transition: 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Contenedor botón */
.menucon {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: auto;
  z-index: 101;
}

.menucon .acc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0;
  line-height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menucon .acc-btn:hover {
  background: rgba(255, 255, 255, 0);
}

/* 🍔 Hamburguesa (20px) */
.menucon .hamburger {
  width: 20px;              /* ancho total */
  height: 14px;             /* alto total */
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menucon .hamburger span {
  display: block;
  width: 100%;
  height: 2px;              /* grosor */
  background: #ffffff;      /* color cerrado */
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    background 0.35s ease;
  transform-origin: center;
}

/* Estado abierto → X */
.menucon .acc-btn.active .hamburger span {
  background: #ffffff;
}

.menucon .acc-btn.active .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menucon .acc-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menucon .acc-btn.active .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  visibility: hidden;
  transition: visibility 0.4s;
}

.menu-overlay.open {
  visibility: visible;
  transition: none;
}

/* Panel lateral */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #060606;
  z-index: 101;
  display: flex;
  padding-left: 20px;
  align-items: center;

  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

.menu-overlay.open .menu-panel {
  transform: translateX(0);
}

/* Menú */
.menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-panel li {
  margin: 16px 0;
  font-size: 24px;
}

.menu-panel a {
  color: var(--fg);
  text-decoration: none;
  font-size: 21px;
  transition: 0.5s;
}

.menu-panel a:hover {
  color: #8b8b8b;
}

/* Desktop */
@media (min-width: 1000px) {
  .menucon {
    display: none;
  }
}