/* ============================================
   Z-NAV-BOTTOM - Mobile Bottom Navigation
   ============================================ */

/* Solo visible en móvil/touch */
.znavbottom {
  display: none;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .znavbottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: white;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .znavbottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    min-width: 60px;
    border: none;
    background: transparent;
    color: #86868b;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .znavbottom-item:active {
    transform: scale(0.95);
  }

  .znavbottom-item.active {
    color: #007AFF;
  }

  .znavbottom-item i {
    font-size: 22px;
    line-height: 1;
  }

  .znavbottom-item span {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
  }

  /* Badge para notificaciones */
  .znavbottom-item-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    background: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  .znavbottom-item {
    position: relative;
  }

  /* Variante con fondo oscuro */
  .znavbottom.dark {
    background: #1d1d1f;
    border-top-color: #333;
  }

  .znavbottom.dark .znavbottom-item {
    color: #86868b;
  }

  .znavbottom.dark .znavbottom-item.active {
    color: #0A84FF;
  }
}
