/* FisioBioAcu.3 · Ajustes de composición activos.
   No altera el arbol de bloques guardados ni sustituye patrones. */
:root {
  --fba-page-gutter:clamp(20px,3.8vw,64px);
  --fba-reading-width:850px;
  --fba-component-width:1200px;
  --fba-section-gap:clamp(44px,4vw,60px);
  --fba-section-gap-tight:clamp(34px,3vw,48px);
}
/* WEB: el margen exterior pertenece al contenedor principal, no a cada bloque. */
body .fba-main.wp-block-group {
  box-sizing:border-box;
  padding-inline:var(--fba-page-gutter)!important;
  padding-top:clamp(18px,2.2vw,30px)!important;
  padding-bottom:clamp(54px,4.6vw,72px)!important;
}

/* Si el último contenido real es un Mensaje destacado/CTA entero, no añadir
   el padding inferior de página. El bloque y el Footer conservan su altura interna. */
body .fba-main.wp-block-group:has(.wp-block-post-content > .fba-highlight-shell--full:last-child),
body .fba-main.wp-block-group:has(.wp-block-post-content > .fba-highlight-shell--full:nth-last-child(2) + p:empty),
body .fba-main.wp-block-group:has(.wp-block-post-content > .fba-highlight-shell--full:nth-last-child(3) + p:empty + p:empty){
  padding-bottom:0!important;
}
body .fba-main .wp-block-post-content {box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;margin-inline:0!important;}
body .fba-main .wp-block-post-content > :not(.alignfull):not(.fba-fullbleed):not(.fba-highlight-shell--full) {box-sizing:border-box;max-width:100%!important;min-width:0;}
/* Blocks in a constrained Gutenberg post may carry auto margins; keep ordinary content left aligned. */
body .fba-main .wp-block-post-content > :is(.wp-block-group,.wp-block-columns,.wp-block-buttons):not(.alignfull):not(.fba-fullbleed):not(.fba-highlight-shell) {margin-inline:0!important;}
/* Alineacion de secciones ordinarias: Gutenberg limita muchos grupos a
   contentSize y los centra, dando margenes distintos a Hero y tarjetas.
   No afectar bloques a sangre ni la envoltura del mensaje destacado. */
body .fba-main .wp-block-post-content > :is(.wp-block-group,.wp-block-columns):not(.alignfull):not(.fba-fullbleed):not(.fba-highlight-shell),
.editor-styles-wrapper .is-root-container > :is(.wp-block-group,.wp-block-columns):not(.alignfull):not(.fba-fullbleed):not(.fba-highlight-shell) {
 box-sizing:border-box;width:100%!important;max-width:100%!important;margin-inline:0!important;
}
/* Solamente el ritmo entre bloques directos, nunca entre los hijos del patron. */
body .fba-main .wp-block-post-content > * {margin-block-start:0!important;margin-block-end:0!important;}
body .fba-main .wp-block-post-content > * + * {margin-block-start:var(--fba-section-gap)!important;}
/* El Hero enlaza con el primer componente con un ritmo algo más próximo; el
   resto de componentes conserva el gap de sección general. */
body .fba-main .wp-block-post-content > .fba-hero + * {
  margin-block-start:var(--fba-section-gap-tight)!important;
}
/* Párrafos vacíos directos no deben crear huecos visuales en la web pública. */
body .fba-main .wp-block-post-content > p:empty {display:none!important;}
/* Punto a punta real del viewport. El post-content sigue constrained; solo
   salen de ese contenedor los bloques marcados como full-width y los tres
   Heroes canónicos. body ya recorta exclusivamente el overflow horizontal. */
body .fba-main .wp-block-post-content > :is(.alignfull,.fba-fullbleed,.fba-highlight-shell--full,.wp-block-fisiobioacu-hero-home,.wp-block-fisiobioacu-hero-main,.wp-block-fisiobioacu-hero-secondary),
body .fba-main .wp-block-post-content .fba-highlight-shell--full,
body .fba-main .wp-block-post-content .fba-highlight-shell:has(> :is(.fba-msg-v3--entera,.fba-hi-banner--entera,.fba-hi-new--entera)) {
 position:relative!important;left:50%!important;right:auto!important;
 transform:translateX(-50%)!important;box-sizing:border-box!important;
 width:100vw!important;max-width:none!important;margin-inline:0!important;
}
/* EDITOR: una versión anterior solo aplicaba las reglas de ancho a body .fba-main;
   el canvas de Gutenberg no contiene ese main. Ajustar el borde del canvas sin
   usar 100vw (que incluiria los paneles de WordPress). */
.editor-styles-wrapper .is-root-container {box-sizing:border-box;padding-inline:var(--fba-page-gutter)!important;}
.editor-styles-wrapper .is-root-container > :is(.alignfull,.fba-fullbleed,.fba-highlight-shell--full,.wp-block-fisiobioacu-hero-home,.wp-block-fisiobioacu-hero-main,.wp-block-fisiobioacu-hero-secondary),
.editor-styles-wrapper .is-root-container > .fba-highlight-shell:has(> :is(.fba-msg-v3--entera,.fba-hi-banner--entera,.fba-hi-new--entera)) {
 box-sizing:border-box;position:relative;left:auto;right:auto;
 width:calc(100% + 2 * var(--fba-page-gutter))!important;max-width:none!important;
 margin-left:calc(-1 * var(--fba-page-gutter))!important;
 margin-right:calc(-1 * var(--fba-page-gutter))!important;
}
/* El texto solo del Hero no deja columna fantasma; no ocultar controles
   Gutenberg del editor cuando una imagen esta pendiente de seleccion. */
body .fba-main .fba-hero .fba-hero__image-column:not(:has(img,video,iframe,.wp-block-cover)) {display:none!important;}
body .fba-main .fba-hero .fba-hero__media-text > .wp-block-column:empty {display:none!important;}
/* Jerarquía activa canónica · página + editor Gutenberg.
   Cardo se reserva para H1/H2; H3–H6 usan Atkinson.
   El Hero aplica el H1 bicolor mediante spans reales. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) :is(h1,h2){
  font-family:Cardo,Georgia,serif!important;
}
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h1{
  font-size:clamp(40px,4.2vw,56px)!important;
  font-weight:700!important;
  line-height:1.06!important;
  color:#7E2C7F!important;
}
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h2{
  font-size:clamp(32px,2.7vw,36px)!important;
  font-weight:700!important;
  line-height:1.15!important;
  color:#7E2C7F!important;
}
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h3{
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;
  font-size:clamp(22px,1.55vw,24px)!important;
  font-weight:500!important;
  line-height:1.25!important;
  color:#B80069!important;
}
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h4{
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;
  font-size:clamp(20px,1.35vw,22px)!important;
  font-weight:500!important;
  line-height:1.30!important;
  color:#7E2C7F!important;
}
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h5,
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) h6{
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;
  font-weight:500!important;
}

/* Los H3 internos de Cápsulas mantienen la escala compacta del componente. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container)
.fba-card-grid--capsule > .fba-capsule > h3.wp-block-heading{
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;
  font-size:clamp(17px,1.05vw,19px)!important;
  line-height:1.25!important;
  font-weight:500!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  text-wrap:balance;
}


/* Texto corriente canónico FisioBioAcu.
   Párrafos, listas y texto editorial sin color explícito usan carbón.
   No recolorea H1–H6, enlaces, botones ni componentes que ya gestionan
   su propio contraste sobre fondos pintados. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container)
:is(p,li):not(.has-text-color):not(
  .fba-proceso__kicker,
  .fba-proceso__intro,
  .fba-proceso__legend-list *,
  .fba-capsule__eyebrow,
  .fba-capsule__description,
  .fba-capsule__highlight,
  .fba-msg-v3 *,
  .fba-hi-new *,
  .fba-hi-banner *,
  .fba-footer *
){
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;
  font-size:clamp(18px,1.05vw,19px)!important;
  font-weight:400!important;
  line-height:1.6!important;
  color:#2B2B2B!important;
}

/* Texto editorial genérico dentro de columnas/grupos: carbón si Gutenberg
   no tiene un color elegido manualmente. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container)
:is(.wp-block-column,.wp-block-group) > p:not(.has-text-color):not([class*="fba-"]){
  color:#2B2B2B!important;
}

/* Exceptions for approved painted and filled backgrounds: keep readable contrast. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) :is(.is-style-fba-card-capsule-filled,.fba-capsule.is-style-fba-card-capsule-filled) h3.wp-block-heading,
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) :is(.fba-hi-new,.fba-hi-banner,.fba-msg-v3) h3.wp-block-heading{
  color:inherit!important;
}
/* Hover aprobado: nunca magenta sobre magenta ni texto oscuro sobre relleno.
   Cambia solo la tinta de H3, sin tocar la geometría de las tarjetas. */
@media(hover:hover) and (pointer:fine){
 body .fba-main .wp-block-post-content :is(.wp-block-group.is-style-fba-card-basic,.fba-card-basic):has(a[href]):hover h3.wp-block-heading{
   color:#FFFAF3!important;
 }
 body .fba-main .wp-block-post-content .fba-card-grid--capsule > .fba-capsule:is(.is-style-fba-card-capsule,.is-style-fba-card-capsule-filled):has(a[href]):hover h3.wp-block-heading{
   color:var(--fba-carbon,#2B2B2B)!important;
 }
}
/* Titulos de seccion: sin linea salvo que se seleccione una variante. */
:is(body .fba-main,.editor-styles-wrapper) h2.wp-block-heading:not(.is-style-fba-heading-subtle):not(.is-style-fba-heading-full)::after {content:none!important;display:none!important;}
:is(body .fba-main,.editor-styles-wrapper) h2.wp-block-heading.is-style-fba-heading-subtle::after,
:is(body .fba-main,.editor-styles-wrapper) h2.wp-block-heading.is-style-fba-heading-full::after {content:""!important;display:block!important;height:2px!important;background:#F0008A!important;margin-top:8px!important;border-radius:99px!important;}
:is(body .fba-main,.editor-styles-wrapper) h2.wp-block-heading.is-style-fba-heading-subtle::after {width:44px!important;}
:is(body .fba-main,.editor-styles-wrapper) h2.wp-block-heading.is-style-fba-heading-full::after {width:100%!important;}
/* La cantidad de columnas es una eleccion del grupo; no transformar todas las
   tarjetas existentes en cuatro columnas con textos ilegibles. */
:is(body .fba-main,.editor-styles-wrapper) .fba-card-grid.is-style-fba-grid-3 {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
:is(body .fba-main,.editor-styles-wrapper) .fba-card-grid.is-style-fba-grid-4 {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}
/* Ninguna columna o tarjeta puede desbordar el contenedor comun. */
:is(body .fba-main,.editor-styles-wrapper) .fba-card-grid > *,
:is(body .fba-main,.editor-styles-wrapper) .wp-block-columns > .wp-block-column {min-width:0;}
@media(max-width:900px) {
 :is(body .fba-main,.editor-styles-wrapper) .fba-card-grid:is(.is-style-fba-grid-3,.is-style-fba-grid-4) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px) {
 :root {--fba-page-gutter:20px;--fba-section-gap:clamp(26px,5.8vw,36px);--fba-section-gap-tight:clamp(20px,4.7vw,28px);}
 :is(body .fba-main,.editor-styles-wrapper) .fba-card-grid:is(.is-style-fba-grid-3,.is-style-fba-grid-4) {grid-template-columns:minmax(0,1fr)!important;}
}

/* Jerarquía propia de las seis páginas hijas de «¿Cómo puedo ayudarte?»,
   acotada por sus IDs estables. Gutenberg conserva la jerarquía canónica
   global y las reglas compartidas de cada componente. */
:is(body.page-id-159,body.page-id-160,body.page-id-161,body.page-id-162,body.page-id-163,body.page-id-164)
.fba-main .wp-block-post-content .fba-hero--secondary .fba-hero__title{
  font-size:clamp(40px,4vw,56px)!important;
}
:is(body.page-id-159,body.page-id-160,body.page-id-161,body.page-id-162,body.page-id-163,body.page-id-164)
.fba-main .wp-block-post-content .fba-hero--secondary .fba-hero__lead{
  font-family:Cardo,Georgia,serif!important;
  font-size:clamp(30px,2.35vw,34px)!important;
  font-weight:700!important;
  line-height:1.2!important;
  color:#7E2C7F!important;
}
:is(body.page-id-159,body.page-id-160,body.page-id-161,body.page-id-162,body.page-id-163,body.page-id-164)
.fba-main .wp-block-post-content h2:not(.fba-highlight-shell *){
  font-size:clamp(30px,2.7vw,36px)!important;
}
:is(body.page-id-159,body.page-id-160,body.page-id-161,body.page-id-162,body.page-id-163,body.page-id-164)
.fba-main .wp-block-post-content h3:not(.fba-highlight-shell *){
  font-size:clamp(22px,1.55vw,24px)!important;
}
:is(body.page-id-159,body.page-id-160,body.page-id-161,body.page-id-162,body.page-id-163,body.page-id-164)
.fba-main .wp-block-post-content p:not([class*="fba-"]):not(.has-text-color){
  font-size:clamp(18px,1.1vw,19px)!important;
}

/* La version media no se convierte nunca en entera. */
/* Titulos corrientes: recuperar el berenjena BASE de marca sin recolorear los
   mensajes pintados, cards con fondo oscuro o los titulos magenta H3. */
body .fba-main .wp-block-post-content :is(h1,h2,h5,h6).wp-block-heading:not(.has-text-color):not(.fba-highlight-shell *) {
  color:#7E2C7F!important;
}
/* Dudas · cierre responsive y limpieza de párrafos vacíos guardados por Gutenberg. */
@media(max-width:680px) {
  body.fba-page-dudas .fba-dudas-page .fba-dudas-topic .fba-dudas-cards {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
body.fba-page-dudas .fba-main .wp-block-post-content > .fba-dudas-page ~ p:empty {
  display:none!important;
}

/* V3 · ajuste final Header → Hero en escritorio.
   El fondo/corazón del header no cambia; solo se reduce 40px el vacío antes del Hero. */
@media (min-width:1351px){
  body .fba-main .wp-block-post-content > .fba-hero{
    margin-block-start:-40px!important;
  }
}

/* Flexibilidad opt-in: no cambia distribuciones manuales ni cápsulas. */
.fba-card-grid--basic.is-style-fba-grid-auto{grid-template-columns:repeat(24,minmax(0,1fr))!important;grid-auto-rows:1fr;}
.fba-card-grid--basic.is-style-fba-grid-auto > .wp-block-group{grid-column:span 6;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(1):last-child) > .wp-block-group{grid-column:span 6;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(1):last-child) > .wp-block-group:first-child{grid-column:10 / span 6;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(2):last-child) > .wp-block-group{grid-column:span 6;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(2):last-child) > .wp-block-group:first-child{grid-column:7 / span 6;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(3):last-child) > .wp-block-group{grid-column:span 8;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(5):last-child) > .wp-block-group{grid-column:span 8;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(5):last-child) > .wp-block-group:nth-child(4){grid-column:5 / span 8;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(6):last-child) > .wp-block-group{grid-column:span 8;}
.fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(7):last-child) > .wp-block-group:nth-child(5){grid-column:4 / span 6;}
@media(max-width:900px){
 .fba-card-grid--basic{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .fba-card-grid--basic.is-style-fba-grid-auto{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 .fba-card-grid--basic.is-style-fba-grid-auto > .wp-block-group{grid-column:auto / span 2!important;}
 .fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(odd):last-child) > .wp-block-group:last-child{grid-column:2 / span 2!important;}
}
@media(max-width:600px){
 .fba-card-grid--basic{grid-template-columns:minmax(0,1fr)!important;}
 .fba-card-grid--basic.is-style-fba-grid-auto{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto;}
 .fba-card-grid--basic.is-style-fba-grid-auto > .wp-block-group,
 .fba-card-grid--basic.is-style-fba-grid-auto:has(> .wp-block-group:nth-child(odd):last-child) > .wp-block-group:last-child{grid-column:1 / -1!important;}
}

/* ¿Cómo puedo ayudarte? · composición aprobada.
   Todo queda opt-in mediante clases del patrón: no afecta a otras páginas. */
:is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) .fba-como-porque__columns{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,.86fr)!important;
  align-items:center!important;
  gap:clamp(28px,4.5vw,68px)!important;
}
.fba-como-porque__copy,
.fba-como-porque__idea{min-width:0;}
.fba-como-porque__idea .fba-highlight-shell--half{width:100%;max-width:560px;margin-inline:auto;}
.fba-como-idea .fba-idea-media-editable__title{margin:0;}

.fba-como-proceso.fba-proceso--circular{
  --fba-proceso-ring-width:clamp(470px,40vw,580px);
  max-width:1240px;
}
.fba-como-proceso .fba-proceso__circular-layout{grid-template-columns:minmax(380px,.94fr) minmax(0,1.06fr);gap:clamp(30px,4vw,62px);}
.fba-como-proceso .fba-proceso__legend-list{gap:clamp(9px,1vw,13px);}

.fba-como-tool-intro.fba-image-text{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;}
.fba-como-tool-intro .fba-image-text__visual{min-height:clamp(360px,38vw,560px);}
.fba-como-tool-intro .fba-image-text__media{width:100%;height:100%;min-height:inherit;object-fit:cover;object-position:center;}

.fba-como-herramientas{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch;}
.fba-como-herramientas > .is-style-fba-card-basic{
  display:flex!important;
  flex-direction:column;
  min-width:0;
  height:100%;
  background:var(--fba-marfil,#FFFAF3)!important;
  border-color:var(--fba-magenta,#F0008A)!important;
}
.fba-como-herramientas .fba-como-card-ill{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:clamp(132px,12vw,168px);
  margin:0 auto clamp(14px,1.6vw,22px)!important;
}
.fba-como-herramientas .fba-como-card-ill img{
  display:block;
  width:clamp(116px,10vw,148px)!important;
  height:clamp(116px,10vw,148px)!important;
  object-fit:contain;
}
.fba-como-herramientas > .is-style-fba-card-basic h3{color:var(--fba-berenjena,#7E2C7F)!important;text-wrap:balance;}
.fba-como-herramientas > .is-style-fba-card-basic .fba-card-basic__action{margin-top:auto!important;}
.fba-como-herramientas > .is-style-fba-card-basic a{color:var(--fba-magenta-intenso,#B80069)!important;}
.fba-como-no-technique{padding:clamp(24px,3vw,40px);border-left:5px solid var(--fba-turquesa-oscuro,#168F8B);background:rgba(32,206,199,.07);}
.fba-como-contextual-links + .fba-como-final-cta{margin-block-start:var(--fba-section-gap)!important;}

@media(hover:hover) and (pointer:fine){
  .fba-como-herramientas > .is-style-fba-card-basic:has(a[href]):hover{background:var(--fba-magenta-intenso,#B80069)!important;border-color:var(--fba-magenta-intenso,#B80069)!important;}
  .fba-como-herramientas > .is-style-fba-card-basic:has(a[href]):hover :is(h3,p,a){color:var(--fba-marfil,#FFFAF3)!important;}
}
@media(max-width:900px){
  :is(body .fba-main .wp-block-post-content,.editor-styles-wrapper .is-root-container) .fba-como-porque__columns{grid-template-columns:minmax(0,1fr)!important;}
  .fba-como-proceso .fba-proceso__circular-layout{grid-template-columns:minmax(0,1fr);}
  .fba-como-herramientas{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px){
  .fba-como-tool-intro.fba-image-text{grid-template-columns:minmax(0,1fr);}
  .fba-como-tool-intro .fba-image-text__visual{min-height:clamp(280px,88vw,420px);}
  .fba-como-herramientas{grid-template-columns:minmax(0,1fr)!important;}
  .fba-como-herramientas .fba-como-card-ill{min-height:126px;}
}


/* HOME · cierre estructural de QA.
   La primera sección con Puzzle arranca arriba y mantiene su enlace editorial a la izquierda. */
body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle){
  align-items:flex-start!important;
  margin-top:clamp(28px,3.2vw,46px)!important;
}
body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle) > .wp-block-column{
  align-self:flex-start!important;
}
body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle) > .wp-block-column:first-child > h2:first-child{
  margin-top:0!important;
}
body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle) > .wp-block-column:first-child :is(
  p:has(> .fba-text-link),
  .wp-block-buttons:has(> .wp-block-button.is-style-fba-text-link)
){
  margin-top:clamp(22px,2vw,32px)!important;
  margin-left:0!important;
  margin-right:auto!important;
  text-align:left!important;
  justify-content:flex-start!important;
}
body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle) > .wp-block-column:first-child :is(
  .fba-text-link,
  .wp-block-button.is-style-fba-text-link
){
  margin-left:0!important;
  margin-right:auto!important;
}
@media(max-width:781px){
  body.home .fba-main .wp-block-post-content > .wp-block-columns:has(.wp-block-fisiobioacu-puzzle){
    margin-top:clamp(24px,7vw,36px)!important;
  }
}


/* HOME · Sedes equivalentes.
   Dos bloques con la misma altura y jerarquía; conserva el lenguaje visual de líneas de marca. */
body.home .fba-home-sedes{
  width:min(100%,1200px);
  max-width:1200px!important;
  margin-inline:auto!important;
}
body.home .fba-home-sedes > h2{
  margin-bottom:clamp(14px,1.6vw,22px)!important;
}
body.home .fba-home-sedes > p{
  margin-top:0!important;
  margin-bottom:clamp(24px,3vw,40px)!important;
}
body.home .fba-home-sedes__grid{
  align-items:stretch!important;
  gap:clamp(22px,3vw,40px)!important;
}
body.home .fba-home-sedes__card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-width:0!important;
  min-height:100%!important;
  padding:clamp(22px,2.4vw,30px) 0!important;
  border-top:4px solid var(--fba-magenta-intenso,#B80069);
}
body.home .fba-home-sedes__card.is-mataro{
  border-top-color:var(--fba-turquesa-oscuro,#168F8B);
}
body.home .fba-home-sedes__card > h3{
  margin:0 0 12px!important;
}
body.home .fba-home-sedes__card > p{
  margin:0!important;
}
body.home .fba-home-sedes__actions{
  justify-content:flex-start!important;
  margin-top:auto!important;
  padding-top:clamp(20px,2vw,28px)!important;
}
body.home .fba-home-sedes__actions .wp-block-button{
  margin:0!important;
}
@media(max-width:781px){
  body.home .fba-home-sedes__grid{
    gap:20px!important;
  }
  body.home .fba-home-sedes__card{
    padding:20px 18px!important;
  }
}


/* HOME · Blog y Dudas junto a Reseñas.
   Secundarios: columna discreta en escritorio y fila compacta en móvil. */
body.home .fba-home-secondary-links{
  width:100%;
  max-width:100%;
  margin:0!important;
}
body.home .fba-home-secondary-links .fba-contextual-links__heading{
  display:none!important;
}
body.home .fba-home-secondary-links .fba-contextual-links__grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
}
body.home .fba-home-secondary-links .fba-contextual-links__item{
  min-height:0!important;
  padding:10px 0 10px 14px!important;
}
body.home .fba-home-secondary-links .fba-contextual-links__title{
  font-size:clamp(20px,1.5vw,24px)!important;
}
body.home .fba-home-secondary-links .fba-contextual-links__link{
  min-height:40px!important;
  margin-top:4px!important;
  padding:4px 2px!important;
  font-size:15px!important;
}
@media(max-width:781px){
  body.home .fba-home-secondary-links .fba-contextual-links__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.home .fba-home-secondary-links .fba-contextual-links__item{
    padding:8px 0 8px 12px!important;
  }
}
@media(max-width:420px){
  body.home .fba-home-secondary-links .fba-contextual-links__grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* ¿EN QUÉ PUEDO AYUDARTE? · composición final de orientación y rutas.
   Fila 1: texto + idea destacada. Fila 2: Puzzle + leyenda. */
body.page-id-144 .fba-enque-orientacion-rutas{
  width:min(100%,1180px);
  max-width:1180px!important;
  margin-inline:auto!important;
}
body.page-id-144 .fba-enque-orientacion-rutas > h2{
  margin-bottom:clamp(18px,2vw,28px)!important;
}
body.page-id-144 .fba-enque-intro-wrap{
  align-items:center!important;
  gap:clamp(28px,4vw,56px)!important;
  margin-bottom:clamp(30px,4vw,54px)!important;
}
body.page-id-144 .fba-enque-intro-wrap > .wp-block-column{
  min-width:0!important;
}
body.page-id-144 .fba-enque-intro-wrap p{
  margin:0!important;
  max-width:62ch;
}
body.page-id-144 .fba-enque-idea-wrap{
  width:100%;
  margin:0!important;
  justify-content:center!important;
}
body.page-id-144 .fba-enque-idea-wrap .fba-highlight-shell--half{
  width:min(100%,500px);
  margin-inline:auto;
}
body.page-id-144 .fba-enque-idea-wrap .fba-idea-media-editable--m4{
  width:100%;
  max-width:500px;
}
body.page-id-144 .fba-enque-idea-wrap .fba-idea-media-editable__eyebrow{
  font-size:clamp(11px,.9vw,14px);
}
body.page-id-144 .fba-enque-idea-wrap .fba-idea-media-editable__title{
  font-size:clamp(21px,2vw,29px)!important;
  line-height:1.1!important;
}

body.page-id-144 .fba-enque-puzzle-wrap{
  align-items:flex-start!important;
  gap:clamp(26px,3vw,44px)!important;
  max-width:1180px;
  margin-inline:auto!important;
}
body.page-id-144 .fba-enque-puzzle-wrap > .wp-block-column{
  min-width:0!important;
}
body.page-id-144 .fba-enque-puzzle-wrap > .wp-block-column:first-child{flex-basis:64%!important}
body.page-id-144 .fba-enque-puzzle-wrap > .wp-block-column:last-child{flex-basis:36%!important}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle{
  width:100%;
  max-width:780px;
  padding:clamp(12px,1.5vw,20px);
  margin-inline:auto;
}

/* Leyenda lateral limpia, sin duplicar las mini-ilustraciones del Puzzle. */
body.page-id-144 .fba-enque-legend{
  display:grid;
  gap:5px;
}
body.page-id-144 .fba-enque-legend__item{
  display:block;
  min-width:0;
  padding:7px 7px 7px 10px;
  border-left:4px solid var(--fba-magenta-intenso,#B80069);
  border-radius:0 8px 8px 0;
  color:inherit;
  text-decoration:none;
  transition:background-color .18s ease;
}
body.page-id-144 .fba-enque-legend__item:nth-child(2){border-color:var(--fba-exp-4,#F58BC1)}
body.page-id-144 .fba-enque-legend__item:nth-child(3){border-color:var(--fba-turquesa-marca,#20CEC7)}
body.page-id-144 .fba-enque-legend__item:nth-child(4){border-color:var(--fba-exp-7,#7E2C7F)}
body.page-id-144 .fba-enque-legend__item:nth-child(5){border-color:var(--fba-exp-6,#C78BC8)}
body.page-id-144 .fba-enque-legend__item:nth-child(6){border-color:var(--fba-exp-9,#20CEC7)}
body.page-id-144 .fba-enque-legend__item:nth-child(7){border-color:var(--fba-exp-5,#A94B9D)}
body.page-id-144 .fba-enque-legend__item:nth-child(8){border-color:var(--fba-magenta-medio,#F65CAE)}
body.page-id-144 .fba-enque-legend__copy{
  min-width:0;
  line-height:1.24;
}
body.page-id-144 .fba-enque-legend__copy strong{
  display:block;
  margin-bottom:1px;
  color:var(--fba-berenjena,#7E2C7F);
  font-size:.98em;
}
body.page-id-144 .fba-enque-legend__copy span{
  display:block;
  font-size:.88em;
}
@media(hover:hover) and (pointer:fine){
  body.page-id-144 .fba-enque-legend__item:hover{
    background:rgba(184,0,105,.045);
  }
}
body.page-id-144 .fba-enque-legend__item:focus-visible{
  outline:3px solid var(--fba-berenjena,#7E2C7F);
  outline-offset:3px;
}

/* Puzzle: mini-ilustración + nombre + flecha. */
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__content{
  inset:11% 13%;
  gap:4px;
  font-size:clamp(13px,1.55cqw,17px);
  font-weight:700;
  line-height:1.08;
  hyphens:none;
  overflow-wrap:normal;
}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__label{
  max-width:100%;
  text-wrap:balance;
}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__content::before{
  content:"";
  display:block;
  width:clamp(26px,3.4cqw,34px);
  height:clamp(26px,3.4cqw,34px);
  flex:0 0 auto;
  margin-bottom:1px;
  border-radius:6px;
  background-color:rgba(255,250,243,.96);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  box-shadow:0 1px 3px rgba(43,43,43,.11);
  pointer-events:none;
}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__content::after{
  content:"→";
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:clamp(20px,2.4cqw,24px);
  height:clamp(20px,2.4cqw,24px);
  margin-top:1px;
  border-radius:999px;
  background:rgba(255,250,243,.96);
  box-shadow:0 1px 2px rgba(43,43,43,.10);
  color:var(--fba-magenta-intenso,#B80069);
  font-size:clamp(12px,1.25cqw,14px);
  font-weight:700;
  line-height:1;
  pointer-events:none;
}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(1) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/02_Dolor_y_lesiones_generales_variante_A.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(2) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/05_ansiedad_estres.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(3) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/01_fibromialgia.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(4) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/02_migranas_cefaleas.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(5) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/10_bailar_sin_dolor.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(6) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/06_deporte_recuperacion.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(7) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/09_cuando_vida_cambia.png")}
body.page-id-144 .fba-enque-puzzle-wrap .fba-puzzle__piece:nth-child(8) .fba-puzzle__content::before{background-image:url("https://fisiobioacu.es/wp-content/uploads/2026/09/03_bruxismo_atm.png")}

/* Salida: enlaces contextuales, nunca accesos cuadrados. */
body.page-id-144 .fba-enque-exit{
  margin-top:clamp(36px,5vw,68px)!important;
  margin-bottom:clamp(24px,4vw,48px)!important;
  padding-top:clamp(24px,3vw,40px)!important;
  border-top:1px solid color-mix(in srgb,var(--fba-berenjena,#7E2C7F) 28%,transparent);
}
body.page-id-144 .fba-enque-exit > h2,
body.page-id-144 .fba-enque-exit > p{
  width:100%;
  max-width:none;
  margin-left:0!important;
  margin-right:0!important;
}
body.page-id-144 .fba-enque-contextual-links{
  margin-top:clamp(22px,3vw,38px)!important;
}
body.page-id-144 .fba-enque-exit + .fba-highlight-shell{
  margin-top:clamp(20px,3vw,40px);
}
body.page-id-144 .fba-hi-banner__title{
  color:#FFFAF3!important;
  -webkit-text-fill-color:#FFFAF3!important;
}

@media(max-width:781px){
  body.page-id-144 .fba-enque-intro-wrap,
  body.page-id-144 .fba-enque-puzzle-wrap{
    gap:24px!important;
  }
  body.page-id-144 .fba-enque-intro-wrap{
    margin-bottom:32px!important;
  }
  body.page-id-144 .fba-enque-exit{
    margin-top:32px!important;
    padding-top:24px!important;
  }
}


/* COLABORACIONES · cierre visual aprobado.
   Activas con más aire, anteriores compactas, próxima colaboración con
   jerarquía secundaria y CTA final con contraste claro. */
body.page-id-147 .fba-card-grid--basic{
  gap:clamp(18px,2vw,28px)!important;
  align-items:stretch!important;
}
body.page-id-147 .fba-main .fba-card-grid--basic > .is-style-fba-card-basic{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  padding:clamp(22px,2.2vw,30px)!important;
}
body.page-id-147 .fba-main .fba-card-grid--basic > .is-style-fba-card-basic > h3{
  margin-bottom:clamp(10px,1.1vw,14px)!important;
}
body.page-id-147 .fba-main .fba-card-grid--basic > .is-style-fba-card-basic > p{
  margin-top:0!important;
}
body.page-id-147 .fba-colab-anteriores{
  width:min(100%,1180px);
  max-width:1180px!important;
}
body.page-id-147 .fba-colab-anteriores__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:clamp(16px,2vw,26px)!important;
}
body.page-id-147 .fba-colab-anteriores__item{
  min-width:0!important;
  padding:clamp(18px,2vw,24px) 0!important;
  border-top:4px solid var(--fba-berenjena,#7E2C7F);
}
body.page-id-147 .fba-colab-anteriores__item:nth-child(2){border-top-color:var(--fba-magenta-intenso,#B80069)}
body.page-id-147 .fba-colab-anteriores__item:nth-child(3){border-top-color:var(--fba-turquesa,#20CEC7)}
body.page-id-147 .fba-colab-anteriores__item:nth-child(4){border-top-color:var(--fba-magenta-medio,#F65CAE)}
body.page-id-147 .fba-colab-anteriores__item h4{
  margin:0 0 8px!important;
}
body.page-id-147 .fba-colab-anteriores__item p{
  margin:0!important;
}

/* La colaboración próxima sigue siendo especial, pero no domina la página. */
body.page-id-147 .fba-main .wp-block-post-content > .fba-highlight-shell:has(.fba-colab-proxima-postit){
  left:auto!important;
  transform:none!important;
  width:min(100%,1100px)!important;
  max-width:1100px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.page-id-147 .fba-colab-proxima-postit{
  width:100%!important;
  max-width:1100px!important;
  margin-inline:auto!important;
}

/* Formas de colaboración: más respiración sin convertirlas en tarjetas. */
body.page-id-147 .fba-main .fba-colab-formas{
  gap:clamp(20px,2.4vw,34px)!important;
}
body.page-id-147 .fba-main .fba-colab-formas > .wp-block-column{
  padding:0 clamp(16px,1.6vw,24px)!important;
}
body.page-id-147 .fba-main .fba-colab-formas > .wp-block-column:first-child{
  padding-left:0!important;
}

/* CTA final: título claro sobre el fondo oscuro. */
body.page-id-147 .fba-main .fba-hi-new--cta-d .fba-hi-new__title{
  color:#FFFAF3!important;
  -webkit-text-fill-color:#FFFAF3!important;
}

@media(max-width:900px){
  body.page-id-147 .fba-colab-anteriores__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:781px){
  body.page-id-147 .fba-main .fba-card-grid--basic > .is-style-fba-card-basic{
    padding:20px!important;
  }
  body.page-id-147 .fba-main .fba-colab-formas{
    gap:22px!important;
  }
  body.page-id-147 .fba-main .fba-colab-formas > .wp-block-column{
    padding:0 0 0 16px!important;
  }
  body.page-id-147 .fba-main .wp-block-post-content > .fba-highlight-shell:has(.fba-colab-proxima-postit){
    width:100%!important;
  }
}
@media(max-width:560px){
  body.page-id-147 .fba-colab-anteriores__grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* CIERRE QA · Tarifas / Dudas / Blog / Sedes / Autocuidado · 2026-10 */

/* TARIFAS · mejorar lectura sin cambiar datos ni convertir la tabla en otro componente. */
body.fba-page-tarifas .wp-block-table{
  box-sizing:border-box;
  width:min(100%,1200px)!important;
  max-width:1200px!important;
  margin-inline:auto!important;
}
body.fba-page-tarifas .wp-block-table table{
  width:100%!important;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
body.fba-page-tarifas .wp-block-table :is(th,td){
  padding:clamp(13px,1.4vw,18px) clamp(12px,1.5vw,20px)!important;
  vertical-align:top;
  line-height:1.45;
  overflow-wrap:anywhere;
}
body.fba-page-tarifas .wp-block-table tr > :first-child{width:38%}
body.fba-page-tarifas .wp-block-table tbody tr:nth-child(even){
  background:rgba(251,199,228,.12);
}
@media(max-width:600px){
  body.fba-page-tarifas .wp-block-table :is(th,td){
    padding:11px 9px!important;
    font-size:16px!important;
    line-height:1.38;
  }
  body.fba-page-tarifas .wp-block-table tr > :first-child{width:42%}
}

/* DUDAS · índice primario intacto; anclas visibles bajo el Header sticky. */
body.fba-page-dudas .fba-dudas-topic{
  scroll-margin-top:clamp(108px,10vw,150px);
}
body.fba-page-dudas .fba-dudas-topic + .fba-dudas-topic{
  margin-top:clamp(34px,4vw,54px)!important;
}
body.fba-page-dudas .fba-dudas-cards{
  row-gap:clamp(22px,2.6vw,34px)!important;
  column-gap:clamp(28px,3.5vw,52px)!important;
}
@media(max-width:680px){
  body.fba-page-dudas .fba-dudas-topic{scroll-margin-top:96px}
}

/* BLOG · los artículos recientes funcionan como una única retícula editorial 3+3. */
body.fba-page-blog .wp-block-query{
  width:min(100%,1200px)!important;
  max-width:1200px!important;
  margin-inline:auto!important;
}
body.fba-page-blog .wp-block-query .wp-block-post-template{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(34px,4vw,52px) clamp(22px,2.8vw,38px)!important;
}
body.fba-page-blog .wp-block-query .wp-block-post-template > li{
  display:flex!important;
  min-width:0;
  height:100%;
  flex-direction:column;
  margin:0!important;
}
body.fba-page-blog .wp-block-query .wp-block-post-title{
  margin-bottom:10px!important;
  text-wrap:balance;
}
body.fba-page-blog .wp-block-query .wp-block-post-excerpt{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  margin-bottom:0!important;
}
body.fba-page-blog .wp-block-query .wp-block-post-excerpt__more-text{
  margin-top:auto!important;
  padding-top:14px;
}
@media(max-width:900px){
  body.fba-page-blog .wp-block-query .wp-block-post-template{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:600px){
  body.fba-page-blog .wp-block-query .wp-block-post-template{
    grid-template-columns:minmax(0,1fr)!important;
    gap:30px!important;
  }
}

/* SEDES · cada sede conserva junta su información; los mapas ya no fuerzan un gran vacío. */
body.fba-page-sedes .fba-sedes-ubicaciones{
  align-items:stretch!important;
  gap:clamp(28px,4vw,58px)!important;
}
body.fba-page-sedes .fba-sedes-ubicaciones > .wp-block-column{
  display:flex!important;
  min-width:0;
  flex-direction:column;
  align-items:stretch;
}
body.fba-page-sedes .fba-sedes-ubicaciones > .wp-block-column > .cmplz-placeholder-parent{
  margin-top:clamp(18px,2.2vw,28px)!important;
  padding-top:0!important;
}
body.fba-page-sedes .fba-sedes-ubicaciones > .wp-block-column > :is(.wp-block-buttons,.wp-block-button):last-child{
  margin-top:clamp(18px,2vw,26px)!important;
}
@media(max-width:781px){
  body.fba-page-sedes .fba-sedes-ubicaciones{gap:28px!important}
}

/* AUTOCUIDADO · compactar categorías usando la Product Card canónica. */
body.fba-page-autocuidado .wp-block-group.is-style-fba-product-category{
  margin-block:clamp(26px,3.8vw,46px)!important;
}
body.fba-page-autocuidado .wp-block-group.is-style-fba-product-grid{
  gap:clamp(16px,2vw,26px)!important;
}
body.fba-page-autocuidado .fba-product-card__body{
  padding:clamp(16px,1.8vw,23px);
}
body.fba-page-autocuidado .fba-product-card__footer{
  padding-top:16px;
}
@media(max-width:600px){
  body.fba-page-autocuidado .wp-block-group.is-style-fba-product-category{
    margin-block:28px!important;
  }
}

/* Cierre contextual: misma separación en las cinco páginas, antes del CTA final. */
:is(
  body.fba-page-tarifas,
  body.fba-page-dudas,
  body.fba-page-blog,
  body.fba-page-sedes,
  body.fba-page-autocuidado
) .fba-contextual-links{
  margin-block-start:clamp(34px,4vw,54px)!important;
}
