/* ─────────────────────────────────────────────────────────────────────────────
   Escala Digital — navbar.css
   Barra de navegación flotante (LumaBar adaptada)
───────────────────────────────────────────────────────────────────────────── */

.luma-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  /* Sin transform aquí — GSAP lo maneja con xPercent: -50 */
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
}

.luma-nav.is-ready {
  pointer-events: auto;
}

/* ─── Barra pill ─── */
.luma-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(4, 8, 20, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(41, 168, 255, 0.18);
  border-radius: 100px;
  padding: 10px 14px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ─── Glow blob activo ─── */
.luma-glow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 168, 255, 0.55) 0%, rgba(20, 100, 255, 0.22) 60%, transparent 100%);
  filter: blur(14px);
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: left;
}

/* ─── Item base ─── */
.luma-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition:
    color 0.28s ease,
    transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.28s ease;
  cursor: pointer;
}

.luma-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: filter 0.28s ease;
}

/* ─── Estado activo ─── */
.luma-item.is-active {
  color: #29A8FF;
  transform: scale(1.22);
  background: rgba(41, 168, 255, 0.08);
}

.luma-item.is-active svg {
  filter: drop-shadow(0 0 6px rgba(41, 168, 255, 0.7));
}

/* ─── Hover ─── */
.luma-item:not(.is-active):hover {
  color: rgba(255, 255, 255, 0.72);
  transform: scale(1.1);
}

/* ─── Tap activo en mobile — feedback táctil sin cuadrado azul ─── */
.luma-item:active {
  transform: scale(0.90);
  background: rgba(41, 168, 255, 0.14);
  transition: transform 0.1s ease, background 0.1s ease;
}

/* ─── Tooltip (debajo, porque la barra está arriba) ─── */
.luma-item::before {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(8, 14, 30, 0.94);
  border: 1px solid rgba(41, 168, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.luma-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .luma-nav { top: 16px; }
  .luma-bar { padding: 8px 10px; gap: 0; }
  .luma-item { width: 40px; height: 40px; }
  .luma-item svg { width: 18px; height: 18px; }
  .luma-glow { width: 38px; height: 38px; }
}

@media (max-width: 360px) {
  .luma-bar { padding: 6px 6px; gap: 0; }
  .luma-item { width: 36px; height: 36px; }
  .luma-item svg { width: 16px; height: 16px; }
  .luma-item::before { display: none; }
}
