/* =====================================================================
   Pestañas (piel sobre M.Tabs)
     <ul class="tabs"><li class="tab"><a href="#panel" class="active">...</a></li></ul>
   ===================================================================== */
.tabs {
    height: 44px;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs .tab {
    flex: 1;
    min-width: 80px;
}

.tabs .tab a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px;
    border-radius: 8px 8px 0 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.tabs .tab a:hover {
    background: var(--surface);
    color: var(--text);
}

.tabs .tab a.active {
    color: var(--text);
}

.tabs .tab a .material-icons {
    font-size: 18px;
}

.tabs .indicator {
    height: 2.5px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-ring);
}

/* Contador dentro de una pestaña (vacío = oculto) */
.contador-tab {
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
}

.contador-tab:empty {
    display: none;
}

.contador-tab.completo {
    background: var(--ok-soft);
    color: var(--ok);
}

@media (max-width: 480px) {
    .tabs .tab a {
        font-size: var(--text-xs);
        padding: 0 6px;
        gap: 4px;
    }

    .tabs .tab a .material-icons {
        font-size: 16px;
    }
}

