/* ==========================================================================
   Team Member Filter — Estilos v1.2.0
   ========================================================================== */

.tf-wrapper {
    /* max-width: 1100px; */
    margin: 0 auto;
    font-family: inherit;
}

/* ---- Barra de búsqueda ---- */
.tf-search-bar {
    position: relative;
    margin-bottom: 10px;
}

.tf-search-bar input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.tf-search-bar input::placeholder {
    color: #aaa;
}

.tf-search-bar input:focus {
    border-color: #888;
}

.tf-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.tf-search-icon svg {
    width: 18px;
    height: 18px;
}

/* ---- Filtros / Dropdowns ---- */
.tf-filters {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-top: 1px solid #e5e5e5;
}

.tf-select-wrapper {
    position: relative;
    flex: 1;
    border-right: 1px solid #e5e5e5;
}

.tf-select-wrapper:last-child {
    border-right: none;
}

.tf-select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 40px 20px 14px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.tf-select-wrapper select:focus {
    border-bottom-color: #888;
}

.tf-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #aaa;
    display: flex;
    align-items: center;
}

.tf-chevron svg {
    width: 16px;
    height: 16px;
}

/* ---- Barra de estado: filtros activos + contador ---- */
.tf-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 0 2px;
    min-height: 28px;
}

.tf-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-filters-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #333;
    text-transform: uppercase;
}

.tf-active-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* background: #f4f4f4; */
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 3px; */
    padding: 3px 10px 3px 12px;
    font-size: 13px;
    color: #333;
}

.tf-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.tf-tag-remove:hover {
    color: #333;
}

.tf-clear-all {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 16px;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
}

.tf-clear-all:hover {
    color: #555;
}

.tf-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---- Grid: 4 columnas, 400×500 ---- */
.tf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Card ---- */
.tf-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.2s ease;
}

.tf-card:hover {
    background: #fafafa;
}

.tf-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;   /* 400×500 */
    overflow: hidden;
    background: #f2f2f2;
}

.tf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.tf-card:hover .tf-card-img {
    transform: scale(1.03);
}

.tf-card-no-img {
    width: 100%;
    height: 100%;
    background: #e4e4e4;
}

.tf-card-body {
    padding: 16px 12px 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.tf-card-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.tf-card-cargo {
    margin: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* ---- Estados ---- */
.tf-results {
    transition: opacity 0.15s ease;
}

.tf-loading {
    opacity: 0.35;
    pointer-events: none;
}

.tf-no-results {
    color: #999;
    font-size: 14px;
    padding: 32px 0;
    text-align: center;
    grid-column: 1 / -1;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .tf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-filters {
        flex-direction: column;
    }

    .tf-select-wrapper {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .tf-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
