/* Dock flotante estilo liquid glass — usado en todas las páginas autenticadas */

.lg-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(20, 22, 30, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Highlight glass interno (efecto liquid) */
.lg-dock::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    transparent 60%
  );
}

.lg-dock-btn {
  position: relative;
  min-width: 56px;
  padding: 6px 8px 5px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.70);
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  text-decoration: none;
}

.lg-dock-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
}

.lg-dock-btn:active {
  transform: scale(0.92);
}

.lg-dock-btn.active {
  background: rgba(91, 118, 255, 0.18);
  color: #5b76ff;
  box-shadow: inset 0 0 0 1px rgba(91, 118, 255, 0.30);
}

/* (puntito indicador eliminado — el label en negrita ya marca el activo) */

.lg-dock-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Labels SIEMPRE visibles debajo del icono */
.lg-dock-btn .lg-dock-lbl {
  position: static;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0.85;
  pointer-events: none;
  line-height: 1;
}
.lg-dock-btn.active .lg-dock-lbl { opacity: 1; font-weight: 700; }

/* Separador entre grupos (logout aparte) */
.lg-dock-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* Responsive: en móvil, el dock se queda igual pero más estrecho */
@media (max-width: 480px) {
  .lg-dock {
    bottom: 14px;
    padding: 6px;
    gap: 2px;
  }
  .lg-dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }
  .lg-dock-btn svg { width: 20px; height: 20px; }
}

/* Padding bottom global para que el contenido no quede tapado por el dock */
body.with-lg-dock {
  padding-bottom: 100px;
}

/* Modo claro */
:root[data-theme="light"] .lg-dock {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 4px 14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
:root[data-theme="light"] .lg-dock-btn {
  color: rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] .lg-dock-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.92);
}
:root[data-theme="light"] .lg-dock-btn.active {
  background: rgba(59, 86, 247, 0.12);
  color: #3b56f7;
  box-shadow: inset 0 0 0 1px rgba(59, 86, 247, 0.30);
}
:root[data-theme="light"] .lg-dock-btn.active::after {
  background: #3b56f7;
  box-shadow: 0 0 8px rgba(59, 86, 247, 0.6);
}
:root[data-theme="light"] .lg-dock-sep {
  background: rgba(0, 0, 0, 0.10);
}
