/* ============ BOTONES ============ */
.btn {
    padding: 8px 18px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
    font-size: var(--fs-md);
    transition: all 0.15s;
}

.btn:hover { background: #4ce0b3; }
.btn:active { transform: scale(0.97); }

.btn-ghost {
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-hover);
}

/* ============ CARDS GENÉRICAS ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

/* ============ TABLAS ============ */
table#posiciones {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    background: var(--bg-card);
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

table#posiciones thead th {
    background: #000;
    color: #fff;
    padding: 6px 4px;
    font-size: var(--fs-xs);
    text-align: center;
    font-weight: bold;
}

table#posiciones thead th:nth-child(2) {
    text-align: left;
    padding-left: 8px;
}

table#posiciones tbody tr {
    border-bottom: 1px solid var(--border);
}

table#posiciones tbody tr:hover {
    background: var(--bg-hover);
}

table#posiciones td {
    padding: 6px 4px;
    text-align: center;
}

table#posiciones td:nth-child(2) {
    text-align: left;
    padding-left: 8px;
}

table#posiciones td:nth-child(1) {
    font-weight: bold;
    color: var(--accent);
}

/* ============ LEYENDA ============ */
.leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: var(--fs-xs);
}

.leyenda span {
    display: inline-flex;
    align-items: center;
}

.leyenda .dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 5px;
    border: 1px solid var(--border);
}

/* ============ SEARCH BAR ============ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 6px 14px;
    margin-bottom: 12px;
}

.search-bar .material-icons {
    color: var(--text-dim);
    font-size: 20px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-size: var(--fs-md);
    padding: 6px 0;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.search-bar button:hover {
    color: var(--accent);
}

/* ============ FILTROS ============ */
.filters-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: bold;
    transition: all 0.15s;
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
}

.filter-btn .material-icons {
    font-size: 16px;
}