/* Formaciones: filtros compartidos y refresh visual de las superficies Yoga. */
.yg-fx {
    --fx-ink: #26362c;
    --fx-green: #647d5a;
    --fx-green-dark: #405a43;
    --fx-sage: #dfe8da;
    --fx-mist: #f2f5ee;
    --fx-cream: #fbfaf6;
    --fx-line: #d9ded3;
    --fx-shadow: 0 18px 48px rgba(43, 58, 46, 0.1);
}
.yg-fx .yg-archive-wrap { max-width: 1320px; }
.yg-fx:not(.is-enhanced) .yg-filters { display: flex; }
.yg-fx:not(.is-enhanced) .yg-filterbar__mobile-toggle { display: none; }

.yg-fx .yg-fx__layout {
    display: grid;
    grid-template-columns: minmax(220px, 258px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    padding-top: 46px;
    padding-bottom: 72px;
}

.yg-fx .yg-filterbar {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100dvh - 116px);
    overflow: auto;
    z-index: 5;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}
.admin-bar .yg-fx .yg-filterbar { top: 128px; max-height: calc(100dvh - 148px); }
.yg-fx .yg-filterbar > .yg-archive-wrap,
.yg-fx .yg-archive-results > .yg-archive-wrap { padding: 0; }
.yg-fx .yg-archive-results { min-width: 0; padding: 0; }

.yg-fx .yg-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    border: 1px solid var(--fx-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(47, 62, 50, 0.06);
}
.yg-fx__filter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.yg-fx__filter-title {
    margin: 0;
    color: var(--fx-ink);
    font-family: var(--yg-font-title);
    font-size: 1.25rem;
    line-height: 1.2;
}
.yg-fx .yg-filters__clear,
.yg-fx__active-clear { color: var(--fx-green-dark); font-size: .86rem; text-underline-offset: 3px; }
.yg-fx .yg-filters__group {
    flex: none;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--fx-line);
}
.yg-fx .yg-filters__label {
    margin: 0 0 9px;
    color: var(--fx-ink);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: none;
}
.yg-fx .yg-filters__input {
    min-height: 44px;
    box-sizing: border-box;
    border-color: var(--fx-line);
    border-radius: 10px;
    background: var(--fx-cream);
}
.yg-fx__choices { display: grid; gap: 7px; }
.yg-fx__choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: var(--yg-text);
    font-size: .91rem;
    cursor: pointer;
}
.yg-fx__choice input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--fx-green-dark);
}
.yg-fx__choice:has(input:checked) { color: var(--fx-ink); font-weight: 650; }
.yg-fx__scope-link {
    display: inline-flex;
    margin-top: 13px;
    color: var(--fx-green-dark);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.yg-fx__scope-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.yg-fx__scope-link:focus-visible { outline: 2px solid var(--fx-green); outline-offset: 3px; border-radius: 3px; }
.yg-fx .yg-filters__actions { display: block; padding-top: 20px; }
.yg-fx .yg-filters__submit { width: 100%; min-height: 46px; }
.yg-fx.is-enhanced .yg-filterbar__mobile-toggle { display: none; }
@media (min-width: 769px) { .yg-fx.is-enhanced .yg-filters__submit { display: none; } }

.yg-fx__active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}
.yg-fx__active-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 31px 7px 12px;
    border: 1px solid #c8d5c2;
    border-radius: 999px;
    background: var(--fx-mist);
    color: var(--fx-green-dark);
    font-size: .84rem;
    line-height: 1.15;
    text-decoration: none;
    position: relative;
}
.yg-fx__active-chip::after { content: "×"; position: absolute; right: 11px; top: 50%; translate: 0 -52%; font-size: 1.05rem; }
.yg-fx__active-clear { margin-left: 3px; }

/* Sistema visual compartido por madre, geograficas, Profesorado y Online. */
.yg-fx--refresh { background: var(--fx-cream); color: var(--yg-text); }
.yg-fx--refresh .yg-archive-wrap { max-width: 1320px; }
.yg-fx--refresh .yg-fx__hero {
    padding: 62px 0 58px;
    border-bottom: 1px solid var(--fx-line);
    background: linear-gradient(135deg, #f4f1e8 0%, #eef3e9 58%, #f9f7f0 100%);
    overflow: hidden;
}
.yg-fx__hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(400px, 1.07fr);
    align-items: center;
    gap: clamp(38px, 6vw, 86px);
}
.yg-fx--refresh .yg-archive-head__title {
    max-width: 12ch;
    margin-bottom: 18px;
    color: var(--fx-ink);
    font-size: clamp(2.55rem, 4.8vw, 4.65rem);
    line-height: .99;
    letter-spacing: -.035em;
}
.yg-fx--refresh .yg-archive-head__intro { max-width: 58ch; margin-bottom: 26px; font-size: 1.06rem; line-height: 1.72; }
.yg-fx__benefits { display: grid; gap: 12px; margin: 0 0 28px; }
.yg-fx__benefit { display: flex; align-items: center; gap: 11px; color: var(--fx-ink); font-size: .94rem; }
.yg-fx__benefit-icon {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.yg-fx__benefit-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.yg-fx__hero-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.yg-fx__hero-links a { color: var(--fx-green-dark); font-weight: 700; text-decoration: none; }
.yg-fx__hero-links .yg-btn-filled,
.yg-fx__hero-links .yg-btn-filled:hover { color: #fff; }
.yg-fx__hero-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.yg-fx__hero-media {
    min-height: 410px;
    aspect-ratio: 4 / 3;
    border-radius: 130px 18px 130px 18px;
    overflow: hidden;
    background: #dfe6d8;
    box-shadow: var(--fx-shadow);
}
.yg-fx__hero-image,
.yg-fx__guide-image,
.yg-fx__media-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.yg-fx__media-placeholder { background: linear-gradient(145deg, #dae4d5, #f1eee2); }

.yg-fx--refresh .yg-archive-head__count { margin: 0 0 9px; color: var(--fx-green-dark); font-size: .93rem; font-weight: 700; }
.yg-fx--refresh .yg-section__title { margin: 0 0 23px; color: var(--fx-ink); font-size: clamp(1.65rem, 2.4vw, 2.2rem); }
.yg-fx--refresh .yg-card-grid { gap: 22px; }
.yg-fx--refresh .yg-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yg-fx--refresh .yg-card-retiro { height: 100%; border-color: var(--fx-line); border-radius: 15px; box-shadow: 0 7px 24px rgba(43, 58, 46, .075); }
.yg-fx--refresh .yg-card-retiro__link { display: flex; height: 100%; flex-direction: column; }
.yg-fx--refresh .yg-card-retiro__media { isolation: isolate; aspect-ratio: 16 / 10; overflow: hidden; background: #e6e8df; }
.yg-fx--refresh .yg-card-retiro__media.is-safe-media::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: 0;
    background-image: var(--yg-card-image);
    background-position: center;
    background-size: cover;
    filter: blur(16px) saturate(.7);
    opacity: .38;
    transform: scale(1.08);
}
.yg-fx--refresh .yg-card-retiro__img { position: absolute; inset: 0; z-index: 1; object-fit: contain; }
.yg-fx--refresh .yg-card-retiro__badge { z-index: 2; }
.yg-fx--refresh .yg-card-retiro__body { display: flex; flex: 1; flex-direction: column; padding: 18px 19px 20px; }
.yg-fx--refresh .yg-card-retiro__disciplina { background: #eef3ea; border-color: #d5dfd0; color: var(--fx-green-dark); }
.yg-fx--refresh .yg-card-retiro__title { min-height: 2.5em; color: var(--fx-ink); }
.yg-fx--refresh .yg-card-retiro__price { margin-top: auto; padding-top: 4px; }

.yg-fx__teacher-cta {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 76px;
    padding-top: 27px;
    padding-bottom: 27px;
    border: 1px solid #cfdac9;
    border-radius: 17px;
    background: var(--fx-mist);
}
.yg-fx__teacher-cta-mark { width: 50px; height: 50px; border: 1px solid #aebfa6; border-radius: 50% 50% 42% 58%; position: relative; }
.yg-fx__teacher-cta-mark::after { content: "↗"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--fx-green-dark); font-size: 1.3rem; }
.yg-fx__teacher-cta h2 { margin: 0 0 4px; color: var(--fx-ink); font-size: 1.45rem; }
.yg-fx__teacher-cta p { margin: 0; }

.yg-fx__editorial { padding: 82px 0 88px; background: #eef2e9; }
.yg-fx__editorial-inner { display: grid; gap: 68px; }
.yg-fx--refresh .yg-archive-editorial__block { max-width: none; margin: 0; }
.yg-fx__guide-lead { display: grid; grid-template-columns: minmax(330px, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(34px, 5vw, 70px); }
.yg-fx__guide-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px 90px 16px 90px; box-shadow: var(--fx-shadow); background: #dce5d6; }
.yg-fx__guide-copy h2,
.yg-fx__faq h2,
.yg-fx__closing h2 { color: var(--fx-ink); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.1; }
.yg-fx__guide-copy ul { columns: 2; column-gap: 32px; padding-left: 20px; }
.yg-fx__guide-copy li { break-inside: avoid; margin-bottom: 8px; }
.yg-fx__guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.yg-fx__guide-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 25px 23px; border: 1px solid #d2dccc; border-radius: 14px; background: rgba(255, 255, 255, .72); }
.yg-fx__guide-card h3 { margin: 0 0 12px; color: var(--fx-ink); font-size: 1.2rem; }
.yg-fx__guide-card p:last-child { margin-bottom: 0; }
.yg-fx__guide-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #b7c7af; border-radius: 50%; color: var(--fx-green-dark); font-size: .75rem; font-weight: 700; }
.yg-fx__teacher-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.yg-fx__teacher-details article,
.yg-fx__teacher-other { padding: 28px; border: 1px solid #d2dccc; border-radius: 14px; background: rgba(255, 255, 255, .72); }
.yg-fx__teacher-details h2,
.yg-fx__teacher-other h2 { margin-top: 0; color: var(--fx-ink); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.18; }
.yg-fx__teacher-details ul { columns: 1; }
.yg-fx__teacher-other { margin-top: 20px; }
.yg-fx__teacher-other p:last-child { margin-bottom: 0; }
.yg-fx__faq > h2 { max-width: 18ch; margin: 0 auto 28px; text-align: center; }
.yg-fx__faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; max-width: 980px; margin: 0 auto; }
.yg-fx__faq details { align-self: start; border: 1px solid #d2dccc; border-radius: 12px; background: rgba(255, 255, 255, .8); }
.yg-fx__faq summary { position: relative; padding: 18px 48px 18px 19px; color: var(--fx-ink); font-weight: 700; cursor: pointer; list-style: none; }
.yg-fx__faq summary::-webkit-details-marker { display: none; }
.yg-fx__faq summary::after { content: "+"; position: absolute; right: 19px; top: 50%; translate: 0 -50%; color: var(--fx-green-dark); font-size: 1.3rem; }
.yg-fx__faq details[open] summary::after { content: "−"; }
.yg-fx__faq-answer { padding: 0 19px 18px; }
.yg-fx__faq-answer p { margin: 0; }
.yg-fx__closing { padding: 42px; border-radius: 18px; background: var(--fx-green-dark); color: #fff; text-align: center; }
.yg-fx__closing h2 { margin-top: 0; color: #fff; }
.yg-fx__closing .yg-btn-outline { border-color: rgba(255,255,255,.68); color: #fff; }

@media (max-width: 1100px) and (min-width: 769px) {
    .yg-fx__hero-inner { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 38px; }
    .yg-fx__hero-media { min-height: 340px; }
    .yg-fx .yg-fx__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .yg-fx--refresh .yg-card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yg-fx__guide-grid { grid-template-columns: 1fr; }
}

/* Fuera de las superficies Yoga refresh se mantiene el tratamiento compacto. */
.yg-fx:not(.yg-fx--refresh) .yg-fx__layout { gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.yg-fx:not(.yg-fx--refresh) .yg-filters { padding: 0 12px 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.yg-fx:not(.yg-fx--refresh) .yg-filters__group { padding-bottom: 20px; }

@media (max-width: 768px) {
    .yg-fx .yg-fx__layout { display: block; padding-top: 24px; padding-bottom: 48px; }
    .yg-fx .yg-filterbar,
    .admin-bar .yg-fx .yg-filterbar { position: static; max-height: none; overflow: visible; margin-bottom: 24px; }
    .yg-fx.is-enhanced .yg-filterbar__mobile-toggle { display: inline-flex; min-height: 48px; border-radius: 11px; }
    .yg-fx .yg-filters { padding: 18px; margin-top: 12px; }
    .yg-fx.is-enhanced .yg-filters:not(.is-open) { display: none; }
    .yg-fx .yg-filters__group { padding: 16px 0; }
    .yg-fx .yg-filters__actions { padding-top: 18px; }
    .yg-fx__active { margin-bottom: 16px; }

    .yg-fx--refresh .yg-fx__hero { padding: 38px 0 34px; }
    .yg-fx__hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
    .yg-fx--refresh .yg-archive-head__title { max-width: 14ch; font-size: clamp(2.3rem, 12vw, 3.55rem); }
    .yg-fx__hero-media { min-height: 0; aspect-ratio: 16 / 10; border-radius: 72px 14px 72px 14px; }
    .yg-fx__hero-links { display: grid; }
    .yg-fx--refresh .yg-card-grid--3 { grid-template-columns: 1fr; }
    .yg-fx--refresh .yg-card-retiro__media { aspect-ratio: 16 / 9; }
    .yg-fx__teacher-cta { grid-template-columns: 46px minmax(0, 1fr); margin: 0 20px 54px; padding: 22px 20px; }
    .yg-fx__teacher-cta-mark { width: 42px; height: 42px; }
    .yg-fx__teacher-cta .yg-btn-outline { grid-column: 1 / -1; text-align: center; }

    .yg-fx__editorial { padding: 54px 0 60px; }
    .yg-fx__editorial-inner { gap: 48px; }
    .yg-fx__guide-lead { grid-template-columns: 1fr; gap: 28px; }
    .yg-fx__guide-media { aspect-ratio: 16 / 10; border-radius: 14px 62px 14px 62px; }
    .yg-fx__guide-copy ul { columns: 1; }
    .yg-fx__guide-grid,
    .yg-fx__faq-grid,
    .yg-fx__teacher-details { grid-template-columns: 1fr; }
    .yg-fx__guide-grid { margin-top: 34px; }
    .yg-fx__closing { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .yg-fx .yg-card-retiro { transition: none; }
}
