.sidebar .menu .menu-item {
  position: relative;
  display: inline-block;
  color: white;
}

.sidebar .menu .menu-item::before,
.sidebar .menu .menu-item::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: inherit;
  margin: 0;
}

.sidebar .menu .menu-item:hover::before {
  color: #a855f7; /* morado neón */
  animation: menu-glitch 0.25s steps(2, end) both;
  opacity: 1;
}

.sidebar .menu .menu-item:hover::after {
  color: #facc15; 
  animation: menu-glitch 0.25s steps(2, end) reverse both;
  opacity: 1;
}


.glitch-text {
  position: relative;
  display: inline-block;
  color: white;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: inherit;
  margin: 0;
}

.glitch-text:hover::before {
  color: #a855f7; 
  animation: menu-glitch 0.25s steps(2, end) both;
  opacity: 1;
}

.glitch-text:hover::after {
  color: #facc15; 
  animation: menu-glitch 0.25s steps(2, end) reverse both;
  opacity: 1;
}


@keyframes menu-glitch {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-2px); }
  40%  { transform: translateX(-1px); }
  60%  { transform: translateX(1px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Glitch permanente para títulos como DASHBOARD */
.glitch-title {
  position: relative;
  display: inline-block;
  color: #facc15; /* color base */
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: inherit;
  margin: 0;
}

.glitch-title::before {
  color: #a855f7; /* morado */
  animation: menu-glitch 0.25s steps(2, end) infinite;
}

.glitch-title::after {
  color: #facc15; 
  animation: menu-glitch 0.25s steps(2, end) infinite reverse;
}