/* ============================================================
   Formación · estilos de las lecciones y del catálogo
   Usa las variables de estilo-gq.css (tinta, dorado, Fraunces/Manrope).
   Prefijo fx- para no chocar con nada del sitio.
   ============================================================ */

.fx-body { background: var(--cream); }

/* ---------- Portada ---------- */
.fx-hero { padding-bottom: 3rem; }
.fx-hero h1 { max-width: 760px; }
.fx-hero-lead { max-width: 720px; }
.fx-migas { font-size: .82rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.fx-migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.fx-migas li { display: flex; align-items: center; gap: .45rem; }
.fx-migas li + li::before { content: "/"; opacity: .45; }
.fx-migas a { color: inherit; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.fx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 .8rem; }
.fx-chips li {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--white); border: 1px solid rgba(20, 35, 46, .1);
    border-radius: 999px; padding: .42rem .9rem; font-size: .86rem; font-weight: 600; color: var(--ink);
}
.fx-chips i { color: var(--gold); }
.fx-para { font-size: .92rem; color: var(--sage-deep); margin: 0; }

/* ---------- Estructura ---------- */
.fx-layout { display: grid; gap: 2rem; padding-top: 2.2rem; padding-bottom: 4rem; }
@media (min-width: 1000px) {
    .fx-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 2.6rem; align-items: start; }
    .fx-aside { position: sticky; top: 96px; }
}
.fx-contenido { min-width: 0; display: grid; gap: 2rem; }

.fx-aside-card {
    background: var(--white); border: 1px solid rgba(20, 35, 46, .08);
    border-radius: var(--r-md); padding: 1.2rem; box-shadow: var(--shadow-sm);
}
.fx-progreso-top { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink); margin-bottom: .45rem; }
.fx-progreso-barra { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.fx-progreso-barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #a8823f); transition: width .5s ease; }
.fx-indice { list-style: none; margin: 1rem 0 .4rem; padding: 0; display: grid; gap: .15rem; }
.fx-indice a {
    display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 10px;
    color: var(--ink-soft); font-size: .9rem; font-weight: 600; line-height: 1.3;
}
.fx-indice a:hover, .fx-indice a.is-here { background: var(--sage-soft); color: var(--ink); }
.fx-num {
    flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sand); color: var(--ink); font-size: .78rem; font-weight: 800;
}
.fx-indice a.is-done .fx-num { background: var(--ok); color: var(--white); font-size: 0; }
.fx-indice a.is-done .fx-num::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: .9rem; }
.fx-aside-nota { font-size: .76rem; color: var(--sage-deep); margin: .6rem 0 0; display: flex; gap: .4rem; }

@media (max-width: 999px) {
    .fx-aside { position: sticky; top: 64px; z-index: 20; }
    .fx-aside-card { padding: .7rem .9rem; border-radius: 14px; }
    .fx-indice, .fx-aside-nota { display: none; }
}

/* ---------- Tarjetas y módulos ---------- */
.fx-card {
    background: var(--white); border: 1px solid rgba(20, 35, 46, .08);
    border-radius: var(--r-md); padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm);
}
.fx-h2-sm { font-size: 1.3rem; margin-bottom: .8rem; }
.fx-h3 { font-size: 1.15rem; margin: 2rem 0 .3rem; }
.fx-sub { font-size: .94rem; margin-bottom: 1rem; }
.fx-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fx-check li { position: relative; padding-left: 1.8rem; }
.fx-check li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--gold); }

.fx-modulo {
    background: var(--white); border: 1px solid rgba(20, 35, 46, .08);
    border-radius: var(--r-lg); padding: clamp(1.2rem, 3.4vw, 2.4rem); box-shadow: var(--shadow-sm);
    scroll-margin-top: 130px;
}
.fx-mod-head { max-width: 720px; margin-bottom: 1.4rem; }
.fx-mod-num { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }

.fx-completar {
    margin-top: 2rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1rem; border-radius: 14px; border: 1.5px dashed rgba(20, 35, 46, .22);
    background: transparent; font: 700 .95rem var(--font-body); color: var(--ink-soft); cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.fx-completar:hover { border-color: var(--ok); color: var(--ok); }
.fx-completar.is-done { background: rgba(77, 127, 95, .1); border-style: solid; border-color: var(--ok); color: var(--ok); }

/* ---------- Visor anatómico ---------- */
.fx-visor { display: grid; gap: 1.2rem; }
@media (min-width: 900px) {
    .fx-visor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "escena escena" "controles partes"; column-gap: 1.6rem; }
    .fx-visor-escena { grid-area: escena; }
    .fx-visor-controles { grid-area: controles; }
    .fx-partes { grid-area: partes; }
}
.fx-visor-escena { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(20, 35, 46, .1); background: #f8f6f1; }
.fx-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.fx-svg text { font: 600 13px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #f8f6f1; stroke-width: 4px; pointer-events: none; }
.fx-svg .fx-etiquetas line { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.fx-svg.sin-nombres .fx-etiquetas { display: none; }
.fx-svg.is-zoom text { font-size: 15px; }
.fx-svg.is-zoom .fx-orienta text { font-size: 12px; }
.fx-hueso { fill: url(#fxHueso); stroke: #b9a988; stroke-width: 1.6; }
.fx-cae { fill: url(#fxCae); stroke: #8b7f69; stroke-width: 1.2; }
.fx-condilo { fill: url(#fxCondilo); stroke: #a8977a; stroke-width: 1.6; }
.fx-disco { fill: url(#fxDisco); stroke: #355f82; stroke-width: 1.2; }
.fx-retro { fill: #e8a7ab; stroke: #c27b80; stroke-width: 1; opacity: .9; }
.fx-musculo { fill: #c0625a; stroke: #9a463e; stroke-width: 1; opacity: .88; }
.fx-zona { fill: transparent; stroke: none; }
.fx-parte { cursor: pointer; transition: opacity .25s; }
.fx-orienta text { font-size: 11px; fill: var(--sage-deep); }
.fx-orienta line { stroke: var(--sage-deep); stroke-width: 1.2; }
.fx-orienta path { fill: var(--sage-deep); }

.fx-svg.hay-sel .fx-parte:not(.is-sel):not(.fx-zona):not([data-parte="temporal"]) { opacity: .28; }
.fx-svg .fx-parte.is-sel path, .fx-svg .fx-parte.is-sel ellipse { stroke: var(--gold); stroke-width: 3; }
.fx-svg .fx-zona.is-sel { fill: rgba(198, 161, 91, .38); stroke: var(--gold); stroke-width: 2; }

.fx-clic { opacity: 0; transform-box: fill-box; transition: opacity .15s; pointer-events: none; }
.fx-clic rect { fill: var(--gold); }
.fx-clic text { fill: var(--white) !important; stroke: none !important; font-size: 15px !important; font-weight: 800 !important; }
.fx-clic.is-on { opacity: 1; }

.fx-visor-controles { display: grid; gap: .9rem; align-content: start; }
.fx-modos-tit { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 -.4rem; }
.fx-modos { display: flex; flex-wrap: wrap; gap: .4rem; background: var(--sand); padding: .3rem; border-radius: 14px; }
.fx-modos button {
    flex: 1 1 0; border: 0; background: transparent; border-radius: 10px; padding: .55rem .5rem;
    font: 700 .84rem var(--font-body); color: var(--ink-soft); cursor: pointer;
}
.fx-modos button.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.fx-slider { display: grid; gap: .35rem; }
.fx-slider-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--ink); font-size: .92rem; }
.fx-slider-top strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.fx-slider input[type="range"] { width: 100%; accent-color: var(--gold); height: 34px; }
.fx-fase { font-weight: 500; font-size: .9rem; line-height: 1.5; min-height: 2.7em; color: var(--ink-soft); }
.fx-visor-botones { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.fx-visor-botones .btn-line[aria-pressed="false"] { opacity: .6; }
.fx-aviso { margin: 0; background: rgba(180, 85, 47, .1); color: var(--danger); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; font-weight: 600; }

.fx-partes-guia { font-size: .86rem; color: var(--sage-deep); margin-bottom: .5rem; }
.fx-partes-lista { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.fx-partes-lista button {
    border: 1px solid rgba(20, 35, 46, .16); background: var(--white); border-radius: 999px;
    padding: .4rem .8rem; font: 600 .84rem var(--font-body); color: var(--ink); cursor: pointer;
}
.fx-partes-lista button.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fx-ficha { background: var(--sage-soft); border-radius: var(--r-sm); padding: 1rem 1.1rem; font-size: .94rem; line-height: 1.6; }
.fx-ficha h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.fx-ficha p:last-child { margin-bottom: 0; }

.fx-claves { display: grid; gap: .9rem; margin-top: 1.8rem; }
@media (min-width: 860px) { .fx-claves { grid-template-columns: repeat(3, 1fr); } }
.fx-clave { background: var(--cream); border: 1px solid rgba(20, 35, 46, .07); border-radius: var(--r-sm); padding: 1rem; font-size: .93rem; line-height: 1.6; }
.fx-clave p { margin: 0; }
.fx-clave-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); font-weight: 800; font-size: .85rem; margin-bottom: .5rem; }

.fx-aula { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.4rem; padding: .9rem 1rem; border-radius: var(--r-sm); background: rgba(198, 161, 91, .12); font-size: .93rem; }
.fx-aula i { color: var(--gold); margin-top: .15rem; }
.fx-aula p { margin: 0; }
.fx-aula a { font-weight: 700; }

/* ---------- Exploración ---------- */
.fx-concepto { display: flex; gap: 1rem; background: var(--ink); color: rgba(255, 255, 255, .86); border-radius: var(--r-md); padding: 1.3rem 1.4rem; }
.fx-concepto > i { font-size: 1.5rem; color: var(--gold); }
.fx-concepto h3 { color: var(--white); font-size: 1.12rem; }
.fx-concepto p { margin: 0; }
.fx-concepto strong { color: var(--gold-soft); }

.fx-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fx-pasos li { counter-increment: paso; border: 1px solid rgba(20, 35, 46, .1); border-radius: 12px; transition: background .2s, border-color .2s; }
.fx-pasos label { font-weight: 400; display: flex; gap: .8rem; align-items: flex-start; padding: .75rem .9rem; cursor: pointer; font-size: .94rem; line-height: 1.55; }
.fx-pasos input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--ok); flex: 0 0 20px; }
.fx-pasos span::before { content: counter(paso) ". "; font-weight: 800; color: var(--gold); }
.fx-pasos li.is-ok { background: rgba(77, 127, 95, .07); border-color: rgba(77, 127, 95, .35); }

.fx-palpa { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.fx-palpa-card {
    position: relative; min-height: 170px; border: 1px solid rgba(20, 35, 46, .12); border-radius: var(--r-sm);
    background: var(--white); padding: 1rem; text-align: left; cursor: pointer; font: inherit; color: inherit;
    transition: box-shadow .2s, transform .2s, background .2s;
}
.fx-palpa-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fx-palpa-frente, .fx-palpa-dorso { display: flex; flex-direction: column; gap: .2rem; }
.fx-palpa-frente strong { color: var(--ink); font-size: 1rem; margin-top: .3rem; }
.fx-palpa-frente span:last-child { font-size: .86rem; color: var(--sage-deep); }
.fx-palpa-dorso { display: none; font-size: .9rem; line-height: 1.55; }
.fx-palpa-card.is-flip { background: var(--ink); color: rgba(255, 255, 255, .9); }
.fx-palpa-card.is-flip .fx-palpa-frente { display: none; }
.fx-palpa-card.is-flip .fx-palpa-dorso { display: flex; }
.fx-kg { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--gold); font-weight: 600; }
.fx-kg small { font-size: 1rem; }

.fx-calc { display: grid; gap: 1rem; border: 1px solid rgba(20, 35, 46, .12); border-radius: var(--r-md); padding: 1.2rem; }
@media (min-width: 760px) { .fx-calc { grid-template-columns: 1fr 1fr; } }
.fx-calc-campos { display: grid; gap: .8rem; }
.fx-calc-campos label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 700; color: var(--ink); }
.fx-calc-campos input[type="number"] { font: 600 1.05rem var(--font-body); padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid rgba(20, 35, 46, .2); }
.fx-calc-campos input[type="number"]:focus { outline: none; border-color: var(--gold); }
.fx-calc-check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.fx-calc-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 18px; }
.fx-calc-res { background: var(--sand); border-radius: var(--r-sm); padding: 1rem; font-size: .92rem; line-height: 1.55; }
.fx-calc-res p:last-child { margin-bottom: 0; }
.fx-calc-num { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--ink); margin-bottom: .3rem; }
.fx-calc-num small { font-size: 1rem; }
.fx-calc-det { font-size: .82rem; color: var(--sage-deep); }
.fx-calc-res.is-alerta { background: rgba(180, 85, 47, .1); }
.fx-calc-res.is-medio { background: rgba(198, 161, 91, .16); }
.fx-calc-res.is-ok { background: rgba(77, 127, 95, .1); }

/* ---------- Ruta diagnóstica ---------- */
.fx-ruta { border: 1px solid rgba(20, 35, 46, .12); border-radius: var(--r-md); padding: 1.2rem; background: var(--cream); }
.fx-ruta-pasos { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.fx-ruta-pasos span { font-size: .76rem; font-weight: 700; background: var(--white); border: 1px solid rgba(20, 35, 46, .12); border-radius: 99px; padding: .2rem .6rem; color: var(--sage-deep); }
.fx-ruta-contexto { font-size: .92rem; color: var(--sage-deep); margin-bottom: .4rem; }
.fx-ruta-nodo h3 { font-size: 1.12rem; }
.fx-ruta-ops { display: grid; gap: .5rem; margin-top: .9rem; }
@media (min-width: 640px) { .fx-ruta-ops { grid-template-columns: repeat(2, 1fr); } }
.fx-ruta-ops button {
    text-align: left; border: 1.5px solid rgba(20, 35, 46, .16); background: var(--white); border-radius: 12px;
    padding: .8rem 1rem; font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s;
}
.fx-ruta-ops button:hover { border-color: var(--gold); transform: translateY(-1px); }
.fx-ruta-fin { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.fx-ruta-nodo.is-ok .fx-ruta-fin { color: var(--ok); }
.fx-ruta-nodo.is-alerta .fx-ruta-fin, .fx-ruta-nodo.is-alerta h3 { color: var(--danger); }
.fx-ruta-nodo.is-medio .fx-ruta-fin { color: var(--gold); }
.fx-ruta-diag { background: var(--white); border-radius: 10px; padding: .6rem .8rem; }

.fx-banderas { display: grid; gap: .9rem; }
@media (min-width: 860px) { .fx-banderas { grid-template-columns: 1fr 1fr; } }
.fx-bandera { border-radius: var(--r-sm); padding: 1.1rem 1.2rem; background: rgba(198, 161, 91, .12); font-size: .93rem; line-height: 1.55; }
.fx-bandera--urgente { background: rgba(180, 85, 47, .1); }
.fx-bandera ul { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.fx-bandera-tag { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.fx-bandera--urgente .fx-bandera-tag { color: var(--danger); }

/* ---------- Casos y preguntas ---------- */
.fx-caso-intro { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.2rem; font-size: .98rem; }
.fx-caso-intro p:last-child { margin-bottom: 0; }
.fx-caso-pasos { display: flex; gap: .4rem; margin: 1.2rem 0 .8rem; }
.fx-caso-pasos span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--sand); color: var(--sage-deep); }
.fx-caso-pasos span.is-here { background: var(--ink); color: var(--gold-soft); }
.fx-caso-pasos span.is-done { background: var(--ok); color: var(--white); }
.fx-caso-q h3, .fx-q h3 { font-size: 1.08rem; line-height: 1.4; }
.fx-opciones { display: grid; gap: .5rem; margin-top: .8rem; }
.fx-op {
    text-align: left; border: 1.5px solid rgba(20, 35, 46, .16); background: var(--white); border-radius: 12px;
    padding: .8rem 1rem; font: 600 .94rem/1.45 var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s;
}
.fx-op:hover:not(:disabled) { border-color: var(--gold); }
.fx-op:disabled { cursor: default; opacity: .55; }
.fx-op.is-ok { border-color: var(--ok); background: rgba(77, 127, 95, .1); opacity: 1; }
.fx-op.is-mal { border-color: var(--danger); background: rgba(180, 85, 47, .07); opacity: 1; }
.fx-feedback { margin-top: .8rem; border-radius: 12px; font-size: .93rem; line-height: 1.55; }
.fx-feedback:empty { display: none; }
.fx-feedback.is-ok, .fx-feedback.is-mal { padding: .9rem 1rem; }
.fx-feedback.is-ok { background: rgba(77, 127, 95, .1); }
.fx-feedback.is-mal { background: rgba(180, 85, 47, .08); }
.fx-feedback-acc { margin-top: .8rem; }
.fx-caso-fin { margin-top: 1rem; background: rgba(77, 127, 95, .08); border-radius: var(--r-sm); padding: 1.1rem 1.2rem; }
.fx-caso-fin .fx-ruta-fin { color: var(--ok); }
.fx-caso-score { font-size: .88rem; color: var(--sage-deep); }

.fx-quiz { display: grid; gap: 1rem; }
.fx-q { border: 1px solid rgba(20, 35, 46, .1); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.fx-q-num { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.fx-resultado { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; border-radius: var(--r-md); padding: 1.3rem 1.4rem; }
.fx-resultado.is-ok { background: rgba(77, 127, 95, .12); }
.fx-resultado.is-mal { background: rgba(198, 161, 91, .15); }
.fx-resultado > div { flex: 1 1 260px; }
.fx-resultado h3 { margin-bottom: .2rem; }
.fx-resultado p { margin: 0; font-size: .94rem; }
.fx-resultado-num { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--ink); }
.fx-resultado-num small { font-size: 1.2rem; color: var(--sage-deep); }

/* ---------- Cierre ---------- */
.fx-ficha-descarga { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.fx-ficha-descarga > div { flex: 1 1 320px; }
.fx-ficha-descarga p { margin: 0; }
.fx-ficha-descarga h2 i { color: var(--gold); }
.fx-autor { display: flex; gap: 1.2rem; align-items: flex-start; }
.fx-autor img { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); padding: 8px; flex: 0 0 56px; object-fit: contain; }
.fx-autor-rol { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fx-autor h3 { margin: .2rem 0 .4rem; }
.fx-autor p { font-size: .94rem; margin-bottom: .5rem; }
.fx-autor a { font-weight: 700; font-size: .92rem; }

.fx-cta {
    background: radial-gradient(70% 90% at 100% 0%, rgba(198, 161, 91, .25), transparent), var(--ink);
    color: rgba(255, 255, 255, .84); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.8rem); text-align: center;
}
.fx-cta h2 { color: var(--white); max-width: 620px; margin: 0 auto .7rem; }
.fx-cta p { max-width: 580px; margin: 0 auto 1.6rem; }
.fx-cta .kicker { justify-content: center; }
.fx-cta-botones { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.fx-refs summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.fx-refs summary::-webkit-details-marker { display: none; }
.fx-refs summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--sage-deep); transition: transform .2s; }
.fx-refs[open] summary::after { transform: rotate(180deg); }
.fx-refs summary h2 { margin: 0; }
.fx-refs ol { font-size: .86rem; line-height: 1.55; padding-left: 1.2rem; margin: 1rem 0; display: grid; gap: .5rem; }
.fx-legal { font-size: .8rem; color: var(--sage-deep); margin: 0; }

/* ---------- Catálogo /formacion ---------- */
.fx-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.fx-curso {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(20, 35, 46, .08);
    border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.fx-curso:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fx-curso--destacado { border: 2px solid var(--gold); }
.fx-curso h3 { margin: .7rem 0 .5rem; }
.fx-curso p { font-size: .94rem; }
.fx-curso ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.fx-curso li { font-size: .78rem; font-weight: 700; background: var(--sand); border-radius: 99px; padding: .25rem .65rem; color: var(--ink-soft); }
.fx-curso .btn { margin-top: auto; align-self: flex-start; }
.fx-tag-gratis { background: var(--ok) !important; color: var(--white) !important; }
.fx-pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fx-pilar { padding: 1.2rem; border-radius: var(--r-sm); background: var(--white); border: 1px solid rgba(20, 35, 46, .07); }
.fx-pilar i { font-size: 1.4rem; color: var(--gold); }
.fx-pilar h3 { font-size: 1.05rem; margin: .6rem 0 .35rem; }
.fx-pilar p { font-size: .92rem; margin: 0; }

/* ---------- Impresión: solo la ficha ---------- */
.fx-imprimible { display: none; }
@media print {
    @page { size: A4; margin: 14mm; }
    body.fx-body > *:not(main), .fx > *:not(.fx-imprimible), .wsp-float, .mobile-cta { display: none !important; }
    .fx-imprimible { display: block !important; color: #000; font: 10.5pt/1.45 "Manrope", Arial, sans-serif; }
    .fx-imprimible h1 { font-size: 18pt; margin: 0 0 2mm; }
    .fx-imp-sub { font-size: 9pt; color: #444; margin: 0 0 5mm; }
    .fx-imprimible h2 { font-size: 12pt; margin: 5mm 0 2mm; border-bottom: 1px solid #c6a15b; padding-bottom: 1mm; }
    .fx-imprimible ol, .fx-imprimible ul { margin: 0; padding-left: 5mm; }
    .fx-imprimible li { margin-bottom: 1mm; }
    .fx-imprimible table { width: 100%; border-collapse: collapse; font-size: 10pt; }
    .fx-imprimible th, .fx-imprimible td { border: 1px solid #bbb; padding: 1.5mm 2mm; text-align: left; }
    .fx-imprimible th { background: #f1ead9; }
}

/* ---------- Cuenta, curso y pago ---------- */
.fx-hero-corto { padding-bottom: 2rem; }
.fx-cuenta { max-width: 520px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(20, 35, 46, .08); padding: clamp(1.2rem, 4vw, 2rem); }
.fx-cuenta-tabs { display: flex; gap: .3rem; background: var(--sand); padding: .3rem; border-radius: 14px; margin-bottom: 1.4rem; }
.fx-cuenta-tabs a { flex: 1; text-align: center; padding: .6rem; border-radius: 10px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.fx-cuenta-tabs a.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.fx-form { display: grid; gap: .9rem; }
.fx-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--ink); }
.fx-form input[type="email"], .fx-form input[type="password"], .fx-form input[type="text"], .fx-form select {
    font: 500 1rem var(--font-body); padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid rgba(20, 35, 46, .18); background: var(--white); color: var(--ink);
}
.fx-form input:focus, .fx-form select:focus { outline: none; border-color: var(--gold); }
.fx-form .btn { justify-self: start; }
.fx-form-nota, .fx-opcional { font-size: .84rem; font-weight: 500; color: var(--sage-deep); }
.fx-priv { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.fx-priv input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--gold); }
.fx-error { background: rgba(180, 85, 47, .1); color: var(--danger); border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; font-weight: 600; }
.fx-ok { background: rgba(77, 127, 95, .1); color: var(--ok); border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; font-weight: 600; }
.fx-clave { margin-top: 1.6rem; max-width: 520px; }
.fx-clave summary { cursor: pointer; font-weight: 700; }
.fx-clave .fx-form { margin-top: 1rem; }
.fx-cuenta-mini { margin-top: 1rem; font-size: .9rem; color: var(--sage-deep); }
.fx-cuenta-mini a { font-weight: 700; }
.fx-link-sec { display: inline-block; margin-top: .7rem; font-size: .88rem; font-weight: 700; }

.fx-curso-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .fx-curso-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .fx-compra { position: sticky; top: 100px; } }
.fx-lecciones { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fx-lecciones li { display: flex; gap: .9rem; align-items: center; background: var(--white); border: 1px solid rgba(20, 35, 46, .08); border-radius: var(--r-sm); padding: .9rem 1rem; }
.fx-lecciones li > div { flex: 1; display: grid; gap: .15rem; }
.fx-lecciones li strong { color: var(--ink); font-size: .98rem; line-height: 1.35; }
.fx-lec-estado { font-size: .8rem; color: var(--sage-deep); font-weight: 600; }
.fx-lecciones li.is-abierta .fx-num { background: var(--ink); color: var(--gold-soft); }
.fx-compra { background: var(--white); border-radius: var(--r-lg); border: 2px solid var(--gold); padding: 1.5rem; box-shadow: var(--shadow-md); display: grid; gap: .7rem; }
.fx-compra h3 { margin: 0; }
.fx-compra p { margin: 0; }
.fx-compra-tag { justify-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--sand); border-radius: 99px; padding: .3rem .7rem; color: var(--ink-soft); }
.fx-compra-tag.is-ok { background: rgba(77, 127, 95, .14); color: var(--ok); }
.fx-compra-precio { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.fx-compra-sub { font-size: .86rem; color: var(--sage-deep); }
.fx-compra-btn { width: 100%; justify-content: center; }
.fx-compra form { margin: 0; }
.fx-compra-lista { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .4rem; font-size: .9rem; }
.fx-compra-lista i { color: var(--ok); margin-right: .3rem; }

.fx-pago { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(1.8rem, 5vw, 3rem); }
.fx-pago > i { font-size: 3rem; color: var(--gold); }
.fx-pago--pagada > i { color: var(--ok); }
.fx-pago--rechazada > i { color: var(--danger); }
.fx-pago h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .8rem 0 .6rem; }
.fx-pago p { max-width: 460px; margin: 0 auto 1.4rem; }

/* ---------- Google, vencimiento y términos ---------- */
.fx-google {
    display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%;
    padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid rgba(20, 35, 46, .18); background: var(--white);
    font: 700 .98rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.fx-google:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.fx-o { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; font-size: .8rem; color: var(--sage-deep); }
.fx-o::before, .fx-o::after { content: ""; flex: 1; height: 1px; background: rgba(20, 35, 46, .14); }
.fx-vence { font-size: .86rem; font-weight: 700; color: var(--ok); margin: -.2rem 0 1rem; }
.fx-vence.is-vencido { color: var(--danger); }
.fx-terminos { font-size: .86rem; margin: 0 0 .7rem; }
.fx-legal-doc { max-width: 820px; margin: 0 auto; }
.fx-legal-doc h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.fx-legal-doc h2:first-child { margin-top: 0; }
.fx-legal-doc p, .fx-legal-doc li { font-size: .96rem; line-height: 1.65; }
.fx-legal-doc ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
