/* ========================================
   Bottom tab — mobile primary navigation, boletería
   ----------------------------------------
   Replaces the sidebar on small screens. Hidden on tablet+ (≥720px).
   Dashed top rule + mono caps labels + gold dot on the active tab.
   Touch targets stay ≥44px tall to keep tapping comfortable.
   ======================================== */

.bottom-tab {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  height: var(--bottom-tab-height);
  background: var(--bg-2);
  border-top: 1px dashed var(--line-strong);
  z-index: 150;
  padding: 6px 4px env(safe-area-inset-bottom);
  backdrop-filter: blur(8px);
}

/* button_to wraps its <button.tab> in a <form> — let the form
   collapse to a flex item so the button takes the row space. */
.bottom-tab > form { flex: 1; margin: 0; display: flex; }

.bottom-tab > .tab,
.bottom-tab > form > .tab {
  position: relative;
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 4px 3px;
  min-width: 0;
  cursor: pointer;
  transition: color 150ms;
}

/* Con 6 ítems (autenticado + Fichines) los labels largos no deben
   romper el layout: una sola línea, recortado con elipsis. */
.bottom-tab > .tab > .label,
.bottom-tab > form > .tab > .label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-tab > .tab:hover,
.bottom-tab > form > .tab:hover { color: var(--ink-soft); }
.bottom-tab > .tab.-active { color: var(--gold); }
.bottom-tab > .tab.-active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.bottom-tab > .tab > .icon,
.bottom-tab > form > .tab > .icon {
  width: 20px;
  height: 20px;
}
.bottom-tab > .tab.-active > .icon { color: var(--gold); }

@media (max-width: 720px) {
  .bottom-tab {
    display: flex;
  }
}
