/* =====================================================
   Médicos Filtro — Estilos base
   SIN !important — Elementor controla todos los colores
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.mf-wrapper {
    font-family: 'DM Sans', sans-serif;
    width: 100%;
}

/* ── Filtros ── */
.mf-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.mf-btn {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    background-color: transparent;
    color: #3aafa9;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    line-height: 1.4;
    transition: background-color .2s ease, color .2s ease;
}

.mf-btn--active {
    background-color: #2d6e6a;
    color: #ffffff;
}

/* ── Grid ── */
.mf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* ── Card ── */
.mf-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(42,90,90,.10);
    display: flex;
    flex-direction: column;
}

.mf-card--oculta {
    display: none !important;
}

.mf-card--aparece {
    animation: mfFadeIn .38s ease both;
}

@keyframes mfFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Imagen ── */
.mf-card__imagen {
    width: 100%;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.mf-card__imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.mf-card__imagen-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5f5;
}

.mf-card__imagen-placeholder svg {
    width: 80px;
    opacity: .55;
}

/* ── Info ── */
.mf-card__info {
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mf-card__texto { flex: 1; min-width: 0; }

.mf-card__nombre {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3aafa9;
    margin: 0 0 4px;
    line-height: 1.25;
}

.mf-card__cargo {
    font-size: .85rem;
    color: #6b8080;
    margin: 0;
    line-height: 1.3;
}

/* ── Botón card ── */
.mf-card__btn {
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    background-color: #e8836a;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.4;
}

/* Neutralizar estilos del tema sobre enlaces */
.mf-card__btn:hover,
.mf-card__btn:focus,
.mf-card__btn:active,
.mf-card__btn:visited {
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
    filter: none;
    box-shadow: none;
}

/* ── Sin resultados ── */
.mf-sin-filtro,
.mf-sin-resultados {
    text-align: center;
    color: #6b8080;
    font-size: 1rem;
    margin: 2rem 0;
    width: 100%;
    grid-column: 1 / -1;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {
    .mf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    .mf-card__info {
        flex-direction: column;
        align-items: flex-start;
    }
    .mf-card__btn { width: 100%; text-align: center; }
}

@media ( max-width: 480px ) {
    .mf-grid { grid-template-columns: 1fr !important; }
}
