:root {
    --fm-azul-marca: #3aa0d1; /* Ajustar al HEX exacto del logo si no coincide */
    --fm-azul-oscuro: #1e2a5e;
}

.fm-filtro-wrap {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.fm-search-bar {
    position: relative;
    margin-bottom: 32px;
}

.fm-search-bar input {
    width: 100%;
    padding: 10px 4px;
    font-size: 17px;
    font-weight: 400;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
    letter-spacing: 0.2px;
}

.fm-search-bar input::placeholder {
    color: #999;
}

.fm-search-bar input:focus {
    border-bottom: 1px solid var(--fm-azul-marca);
}

.fm-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.fm-pill {
    background: transparent;
    border: 1px solid var(--fm-azul-marca);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fm-azul-marca);
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fm-pill:hover {
    background: rgba(58, 160, 209, 0.1);
}

.fm-pill.active {
    background: var(--fm-azul-marca);
    color: #fff;
    border-color: var(--fm-azul-marca);
}

#fm-resultados {
    transition: opacity 0.2s ease;
}

#fm-resultados.fm-cargando {
    opacity: 0.4;
}

.fm-lista-miembros {
    display: grid;
    grid-template-columns: repeat(var(--fm-columnas, 3), 1fr);
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .fm-lista-miembros {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fm-lista-miembros {
        grid-template-columns: 1fr;
    }
}

.fm-miembro {
    text-align: center;
}

.fm-foto-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.fm-foto img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.25s ease;
}

.fm-overlay {
    position: absolute;
    inset: 0;
    background: #16315A; /* Ajustar al color de marca que usaste en Elementor */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.fm-foto-wrap:hover .fm-overlay {
    opacity: 1;
}

.fm-overlay-nombre {
    margin: 0 0 12px;
    font-size: 20px;
    color: #fff;
}

.fm-overlay-bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.fm-overlay-bio p {
    margin: 0;
}

.fm-nombre {
    margin-top: 12px;
    font-size: 18px;
    color: #1e2a5e;
}

.fm-sin-resultados {
    text-align: center;
    padding: 40px 0;
    color: #666;
}