/* Vidas – Blog con filtros. Estilos exclusivos para no afectar a Vidas – Blog. */
.vblogf {
    --vblogf-label: #000;
    --vblogf-intro: #000;
    --vblogf-card: #fff;
    --vblogf-meta: #555;
    --vblogf-title: #000;
    --vblogf-excerpt: #000;
    --vblogf-more: #000;
    --vblogf-tab-text: #000;
    --vblogf-tab-border: #666;
    --vblogf-tab-active: #4e20e4;
    --vblogf-tab-active-text: #fff;
    --vblogf-btn-bg: #000;
    --vblogf-btn-icon: #fff;
    --vblogf-btn-bg-h: #4e20e4;
    --vblogf-btn-icon-h: #fff;
    --vblogf-max: 1392px;
    --vblogf-pad: 0px;
    --vblogf-cols: 2;
    --vblogf-gap: 30px;
    --vblogf-tab-gap: 42px;
    --vblogf-title-lines: 2;
    --vblogf-excerpt-lines: 3;
    position: relative;
    width: 100%;
    padding: 0 var(--vblogf-pad);
    box-sizing: border-box;
    background: transparent; /* el fondo de la sección depende solo del contenedor Elementor */
    color: var(--vblogf-intro);
    font-family: 'Soleil', sans-serif;
}
.vblogf, .vblogf * { box-sizing: border-box; }
.vblogf__inner { width: 100%; max-width: var(--vblogf-max); margin: 0 auto; }
.vblogf__label { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; font-size: 16px; line-height: 26px; font-weight: 400; text-transform: uppercase; color: var(--vblogf-label); }
.vblogf__asterisk { flex: 0 0 auto; width: 18px; height: 18px; }
.vblogf__intro { max-width: 859px; margin: 0 0 28px; font-size: 38px; line-height: 1.17; letter-spacing: -.02em; font-weight: 300; }

/* Pestañas: píldora morada con movimiento GSAP entre hover y selección. */
.vblogf__tabs {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
}
.vblogf__tab {
    position: relative;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-width: 91px;
    min-height: 39px;
    padding: 7px 21px;
    border: 1px solid var(--vblogf-tab-border);
    border-radius: 999px;
    background: transparent;
    color: var(--vblogf-tab-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.vblogf__tab > span { position: relative; z-index: 1; pointer-events: none; }
.vblogf__tab.is-active { background: var(--vblogf-tab-active); border-color: var(--vblogf-tab-active); color: var(--vblogf-tab-active-text); }
.vblogf__tab:not(.is-active):hover { border-color: var(--vblogf-tab-active); }
.vblogf__tab:focus-visible { outline: 2px solid var(--vblogf-tab-active); outline-offset: 3px; }
.vblogf__tab-highlight { display: none; }
/* Con GSAP la píldora es una capa única que desliza por debajo de las pestañas. */
.vblogf.has-tabs-gsap .vblogf__tab { background: transparent !important; }
.vblogf.has-tabs-gsap .vblogf__tab { color: var(--vblogf-tab-text); }
.vblogf.has-tabs-gsap .vblogf__tab.is-highlighted { color: var(--vblogf-tab-active-text); border-color: transparent; }
.vblogf.has-tabs-gsap .vblogf__tab-highlight {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: block;
    height: 39px;
    width: 90px;
    border-radius: 999px;
    background: var(--vblogf-tab-active);
    pointer-events: none;
    will-change: transform, width, height;
}
.vblogf__panel { width: 100%; min-width: 0; }
.vblogf__panel:focus-visible { outline: 1px solid var(--vblogf-tab-active); outline-offset: 8px; }

/* Las tarjetas siguen siendo artículos reales como en el widget original. */
.vblogf__track {
    display: grid;
    grid-template-columns: repeat(var(--vblogf-cols), minmax(0, 1fr));
    gap: var(--vblogf-gap);
    margin-top: var(--vblogf-tab-gap);
}
.vblogf__card { display: flex; min-width: 0; container-type: inline-size; }
.vblogf__card[hidden] { display: none !important; }
.vblogf__card-in {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    aspect-ratio: 495 / 325;
    padding: 5.4cqw 6.3cqw 4.5cqw;
    border-radius: 3.7cqw;
    background: var(--vblogf-card);
}
.vblogf__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 2.4cqw;
    color: var(--vblogf-meta);
    font-size: 2.25cqw;
    line-height: 1.35;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
}
.vblogf__cat { overflow: hidden; text-overflow: ellipsis; }
.vblogf__date { flex: 0 0 auto; }
.vblogf__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--vblogf-title-lines);
    overflow: hidden;
    padding: 0;
    margin: 0;
    color: var(--vblogf-title);
    font-family: inherit;
    font-weight: 400;
    font-size: 11.5cqw;
    line-height: 1.06;
    letter-spacing: -.035em;
}
.vblogf__title-link, .vblogf__title-link:hover, .vblogf__title-link:focus { color: inherit; text-decoration: none; }
.vblogf--card-link .vblogf__title-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.vblogf--card-link .vblogf__card-in { cursor: pointer; }
.vblogf__card-in:focus-within { outline: 2px solid var(--vblogf-tab-active); outline-offset: 3px; }
.vblogf__title-link:focus-visible { outline: none; }
.vblogf__foot { margin-top: auto; padding-top: 4cqw; }
.vblogf__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--vblogf-excerpt-lines);
    overflow: hidden;
    max-width: 100%;
    margin: 0 0 0 1.6cqw;
    padding: 0;
    color: var(--vblogf-excerpt);
    font-size: 4.05cqw;
    line-height: 1.20;
    font-weight: 300;
    letter-spacing: -.02em;
}
.vblogf__btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.3cqw;
    height: 5.3cqw;
    margin: 3.7cqw 0 0 1.8cqw;
    border-radius: .7cqw;
    background: var(--vblogf-btn-bg);
    color: var(--vblogf-btn-icon);
    overflow: hidden;
    text-decoration: none;
    transition: background-color .35s ease, color .35s ease;
    will-change: transform;
}
.vblogf__btn:hover, .vblogf--card-link .vblogf__card-in:hover .vblogf__btn { background: var(--vblogf-btn-bg-h); color: var(--vblogf-btn-icon-h); }
.vblogf__btn-in { display: block; position: relative; width: 66%; height: 66%; }
.vblogf__btn-arrow { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.vblogf__btn-arrow--b { visibility: hidden; }
.vblogf__filter-empty, .vblogf__empty { margin: 28px 0 0; font-size: 18px; line-height: 1.5; }
.vblogf__filter-empty[hidden] { display: none !important; }
.vblogf__more-wrap { display: none; margin-top: 28px; padding-left: 23px; }
.vblogf__more, .vblogf__more:hover, .vblogf__more:focus { font-size: 15px; font-weight: 400; color: var(--vblogf-more); text-decoration: none; }
.vblogf__more:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
    .vblogf__intro { font-size: 30px; }
}
@media (max-width: 767px) {
    .vblogf__label { gap: 8px; font-size: 11px; line-height: 18px; }
    .vblogf__asterisk { width: 14px; height: 14px; }
    .vblogf__intro { font-size: 22px; line-height: 26px; }
    .vblogf__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
        padding: 2px 0 4px;
        scroll-snap-type: x proximity;
    }
    .vblogf__tabs::-webkit-scrollbar { display: none; }
    .vblogf__tab { min-width: 78px; min-height: 36px; padding: 7px 16px; font-size: 12px; scroll-snap-align: start; }
    .vblogf.has-tabs-gsap .vblogf__tab-highlight { display: none; }
    .vblogf.has-tabs-gsap .vblogf__tab.is-active { background: var(--vblogf-tab-active) !important; border-color: var(--vblogf-tab-active); }
    .vblogf.has-tabs-gsap .vblogf__tab.is-hovered:not(.is-active) { color: var(--vblogf-tab-text); border-color: var(--vblogf-tab-border); }
    .vblogf__track {
        display: flex;
        gap: var(--vblogf-gap);
        margin-right: calc(-1 * var(--vblogf-pad));
        padding-right: var(--vblogf-pad);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .vblogf__track::-webkit-scrollbar { display: none; }
    .vblogf__card { flex: 0 0 calc(100% - 20px); scroll-snap-align: start; }
    .vblogf__card-in { aspect-ratio: 333 / 245; padding: 6.9cqw 7.2cqw 7.2cqw; border-radius: 3.6cqw; }
    .vblogf__meta { margin-bottom: 2.4cqw; font-size: 3cqw; }
    .vblogf__title { font-size: 12.8cqw; }
    .vblogf__excerpt { font-size: 4.65cqw; line-height: 1.24; }
    .vblogf__btn { width: 9cqw; height: 9cqw; margin: 5.7cqw 0 0 1cqw; border-radius: 1.2cqw; }
    .vblogf__more-wrap { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .vblogf__tab, .vblogf__btn { transition: none; }
    .vblogf__track { scroll-behavior: auto; }
}
