/* ==========================================================================
   hebra-nav.css — Navegación Gestual Orgánica SVG (Tirar hacia Arriba)
   ========================================================================== */

/* Contenedor transparente: pointer-events: none para que botones y clics atraviesen */
.hebra-nav-container {
  position: fixed;
  bottom: max(16px, var(--sab));
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  z-index: 60;
  pointer-events: none; /* CERO BLOQUEO DE BOTONES FUERA DEL HILO */
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overflow: visible;
}

/* El SVG abarca el contenedor pero solo sus figuras pintadas capturan el toque */
.hebra-nav-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
  touch-action: none;
}

/* Únicamente el cuerpo del hilo y su hitbox reciben eventos de interacción */
.hebra-strand-path {
  pointer-events: none; /* La interacción la maneja la hitbox transparente */
  transition: filter 0.2s ease;
}

/* Hitbox transparente engrosada que cubre el contorno y los huecos de los nodos */
.hebra-strand-hitbox {
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.hebra-strand-hitbox:active {
  cursor: grabbing;
}

/* Sombra suave orgánica y acabado físico */
.hebra-strand-path {
  filter: drop-shadow(0 6px 16px rgba(17, 33, 66, 0.18));
}

/* Punto blanco indicador en el centro del hueco del nodo activo */
.hebra-active-dot {
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(17, 33, 66, 0.35));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Indicador de flecha hacia arriba al tocar un nodo (Guía gestual) */
.hebra-tap-arrow-hint {
  position: absolute;
  top: 32px;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 65;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hebra-tap-arrow-hint.visible {
  opacity: 1;
  animation: hebraArrowFloat 1.2s ease-in-out infinite alternate;
}

.hebra-tap-arrow-hint.fade-out {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-10px) !important;
}

.hebra-tap-chevron-svg {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 8px rgba(17, 33, 66, 0.65));
}

@keyframes hebraArrowFloat {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(-7px);
  }
}