/* Route-specific layout rebuild. The existing hero remains the visual anchor. */
body[data-page="/psicoterapia"] {
  --therapy-ink: #243029;
  --therapy-paper: #f7f6ee;
  --therapy-sage: #dce5d8;
  --therapy-sage-deep: #667762;
  --therapy-terra: #9b5e47;
  --therapy-line: rgba(36, 48, 41, .18);
}

body[data-page="/psicoterapia"] .fg-foundation-page {
  background: var(--therapy-paper);
}

body[data-page="/psicoterapia"] .fg-static-hero-image.fg-hero-composed {
  margin-bottom: 0;
}

.fg-therapy-eyebrow,
.fg-therapy-intro__label,
.fg-therapy-intro__note span,
.fg-therapy-steps > li > span,
.fg-therapy-path-grid span {
  color: var(--therapy-terra);
  font: 600 .68rem/1.2 var(--fg-font-mono, monospace);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fg-therapy-intro {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(0, 1.7fr) minmax(180px, .7fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: end;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--fg-gutter, 5vw) clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--therapy-line);
}

.fg-therapy-intro__copy h2,
.fg-therapy-recognition__copy h2,
.fg-therapy-section-head h2,
.fg-therapy-process__header h2,
.fg-therapy-faq__intro h2,
.fg-therapy-cta h2 {
  margin: 0;
  color: var(--therapy-ink);
  font: 500 clamp(2.5rem, 5vw, 5.9rem)/.94 var(--fg-font-display, Georgia, serif);
  letter-spacing: -.06em;
}

.fg-therapy-intro__copy h2 { max-width: 10ch; }

.fg-therapy-intro__copy p,
.fg-therapy-intro__note strong,
.fg-therapy-recognition__copy > p:not(.fg-therapy-eyebrow),
.fg-therapy-process__header > p:last-child,
.fg-therapy-faq__intro > p:last-child {
  color: var(--fg-text-muted, #605147);
  font: 400 1rem/1.75 var(--fg-font-body, system-ui, sans-serif);
}

.fg-therapy-intro__copy p { max-width: 43rem; margin: 2rem 0 0; }
.fg-therapy-intro__note { padding-bottom: .3rem; border-left: 1px solid var(--therapy-line); padding-left: 1.25rem; }
.fg-therapy-intro__note strong { display: block; margin-top: .75rem; color: var(--therapy-ink); font-size: .88rem; line-height: 1.55; }

.fg-therapy-recognition {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
  min-height: min(760px, 78vw);
  background: #e9e0d2;
}

.fg-therapy-recognition__image { position: relative; min-height: 520px; overflow: hidden; }
.fg-therapy-recognition__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.04); transition: transform 900ms cubic-bezier(.22,.61,.36,1); }
.fg-therapy-recognition__image:hover img { transform: scale(1.04); }
.fg-therapy-recognition__image span { position: absolute; right: 1.5rem; bottom: 1.5rem; color: #fff; font: italic 1.15rem var(--fg-font-display, Georgia, serif); }
.fg-therapy-recognition__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 9rem) clamp(2rem, 8vw, 9rem); }
.fg-therapy-recognition__copy h2 { max-width: 9ch; }
.fg-therapy-recognition__copy > p:not(.fg-therapy-eyebrow) { max-width: 34rem; margin: 2rem 0 0; }
.fg-therapy-link { display: inline-flex; gap: .65rem; align-items: center; width: fit-content; margin-top: 2.5rem; padding-bottom: .55rem; border-bottom: 1px solid currentColor; color: var(--therapy-ink); font: 700 .75rem/1.2 var(--fg-font-body, system-ui, sans-serif); letter-spacing: .04em; text-decoration: none; }

.fg-therapy-pillars,
.fg-therapy-process,
.fg-therapy-faq,
.fg-therapy-paths { max-width: 1380px; margin: 0 auto; padding: clamp(5rem, 10vw, 10rem) var(--fg-gutter, 5vw); }

.fg-therapy-pillars { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: clamp(3rem, 8vw, 10rem); }
.fg-therapy-section-head h2 { max-width: 8ch; margin-top: 1.5rem; font-size: clamp(2.7rem, 5vw, 5rem); }
.fg-therapy-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; border-top: 1px solid var(--therapy-line); }
.fg-therapy-pillar-grid article { padding: 1.5rem 1.5rem 0 0; border-right: 1px solid var(--therapy-line); }
.fg-therapy-pillar-grid article + article { padding-left: 1.5rem; }
.fg-therapy-pillar-grid article:last-child { border-right: 0; }
.fg-therapy-pillar-grid article > span { color: var(--therapy-terra); font: 600 .75rem var(--fg-font-mono, monospace); }
.fg-therapy-pillar-grid h3 { margin: 3.8rem 0 .8rem; color: var(--therapy-ink); font: 500 clamp(1.5rem, 2.4vw, 2.25rem) var(--fg-font-display, Georgia, serif); letter-spacing: -.04em; }
.fg-therapy-pillar-grid p { margin: 0; color: var(--fg-text-muted, #605147); font: .86rem/1.65 var(--fg-font-body, system-ui, sans-serif); }

.fg-therapy-process { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); gap: clamp(3rem, 8vw, 10rem); background: var(--therapy-sage); }
.fg-therapy-process__header h2 { max-width: 8ch; margin-top: 1.5rem; font-size: clamp(2.7rem, 5vw, 5rem); }
.fg-therapy-process__header > p:last-child { max-width: 19rem; margin-top: 2rem; }
.fg-therapy-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(36,48,41,.25); }
.fg-therapy-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(36,48,41,.25); }
.fg-therapy-steps li > span { padding-top: .35rem; }
.fg-therapy-steps h3 { margin: 0; color: var(--therapy-ink); font: 500 clamp(1.45rem, 2.4vw, 2rem) var(--fg-font-display, Georgia, serif); }
.fg-therapy-steps p { max-width: 37rem; margin: .55rem 0 0; color: #4e5c4b; font: .9rem/1.65 var(--fg-font-body, system-ui, sans-serif); }

.fg-therapy-break { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); min-height: min(690px, 64vw); background: var(--therapy-ink); color: var(--therapy-paper); }
.fg-therapy-break__image { min-height: 420px; overflow: hidden; }
.fg-therapy-break__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) brightness(.78); }
.fg-therapy-break blockquote { align-self: center; max-width: 9ch; margin: 0 auto; padding: 3rem; color: var(--therapy-paper); font: 500 clamp(2.4rem, 4.3vw, 5.2rem)/.96 var(--fg-font-display, Georgia, serif); letter-spacing: -.06em; }
.fg-therapy-break cite { display: block; margin-top: 2rem; color: #b1bfac; font: 600 .68rem var(--fg-font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; }

.fg-therapy-faq { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: clamp(3rem, 8vw, 10rem); }
.fg-therapy-faq__intro h2 { max-width: 8ch; margin-top: 1.5rem; font-size: clamp(2.7rem, 5vw, 5rem); }
.fg-therapy-faq__intro > p:last-child { max-width: 20rem; margin-top: 2rem; }
.fg-therapy-faq__list { border-top: 1px solid var(--therapy-line); }
.fg-therapy-faq details { border-bottom: 1px solid var(--therapy-line); }
.fg-therapy-faq summary { display: flex; justify-content: space-between; gap: 2rem; padding: 1.45rem 0; cursor: pointer; color: var(--therapy-ink); font: 500 clamp(1.2rem, 2vw, 1.7rem) var(--fg-font-display, Georgia, serif); list-style: none; }
.fg-therapy-faq summary::-webkit-details-marker { display: none; }
.fg-therapy-faq summary::after { content: "+"; color: var(--therapy-terra); font: 400 1.5rem var(--fg-font-body, sans-serif); }
.fg-therapy-faq details[open] summary::after { content: "−"; }
.fg-therapy-faq details p { max-width: 44rem; margin: -.5rem 3rem 1.5rem 0; color: var(--fg-text-muted, #605147); font: .9rem/1.7 var(--fg-font-body, system-ui, sans-serif); }

.fg-therapy-paths { padding-top: 0; }
.fg-therapy-paths .fg-therapy-section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding-bottom: 2.5rem; border-bottom: 1px solid var(--therapy-line); }
.fg-therapy-paths .fg-therapy-section-head h2 { max-width: 13ch; margin: 0; font-size: clamp(2.4rem, 4vw, 4.7rem); }
.fg-therapy-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fg-therapy-path-grid a { display: flex; flex-direction: column; min-height: 14rem; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--therapy-line); color: var(--therapy-ink); text-decoration: none; transition: background 180ms ease, padding 180ms ease; }
.fg-therapy-path-grid a + a { padding-left: 1.5rem; }
.fg-therapy-path-grid a:last-child { border-right: 0; }
.fg-therapy-path-grid a:hover { background: var(--therapy-sage); padding-top: 2rem; }
.fg-therapy-path-grid strong { margin-top: auto; font: 500 clamp(1.45rem, 2.2vw, 2.1rem) var(--fg-font-display, Georgia, serif); letter-spacing: -.04em; }
.fg-therapy-path-grid em { margin-top: .6rem; color: var(--fg-text-muted, #605147); font: .78rem/1.5 var(--fg-font-body, system-ui, sans-serif); font-style: normal; }

.fg-therapy-cta { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin: 0; padding: clamp(4rem, 8vw, 8rem) max(var(--fg-gutter, 5vw), calc((100vw - 1380px) / 2)); background: var(--therapy-terra); color: #fffdf7; }
.fg-therapy-cta .fg-therapy-eyebrow { color: #f4d5c7; }
.fg-therapy-cta h2 { max-width: 11ch; margin-top: 1.5rem; color: #fffdf7; font-size: clamp(2.6rem, 5vw, 5.8rem); }
.fg-therapy-cta .fg-button { flex: 0 0 auto; background: #fffdf7; color: var(--therapy-terra); }

@media (max-width: 800px) {
  .fg-therapy-intro,
  .fg-therapy-pillars,
  .fg-therapy-process,
  .fg-therapy-faq { grid-template-columns: 1fr; gap: 2.5rem; }
  .fg-therapy-intro { padding-top: 4rem; }
  .fg-therapy-intro__note { border-left: 0; border-top: 1px solid var(--therapy-line); padding: 1rem 0 0; }
  .fg-therapy-recognition,
  .fg-therapy-break { grid-template-columns: 1fr; }
  .fg-therapy-recognition__image { min-height: 60vw; }
  .fg-therapy-break__image { min-height: 55vw; }
  .fg-therapy-break blockquote { max-width: 12ch; margin: 0; padding: 4rem var(--fg-gutter, 5vw); }
  .fg-therapy-pillar-grid,
  .fg-therapy-path-grid { grid-template-columns: 1fr; }
  .fg-therapy-pillar-grid article,
  .fg-therapy-pillar-grid article + article,
  .fg-therapy-path-grid a,
  .fg-therapy-path-grid a + a { padding: 1.35rem 0; border-right: 0; border-bottom: 1px solid var(--therapy-line); }
  .fg-therapy-pillar-grid article h3 { margin-top: 2rem; }
  .fg-therapy-path-grid a { min-height: 10rem; }
  .fg-therapy-paths .fg-therapy-section-head { display: block; }
  .fg-therapy-paths .fg-therapy-section-head h2 { margin-top: 1.5rem; }
  .fg-therapy-cta { display: block; }
  .fg-therapy-cta .fg-button { margin-top: 2rem; }
}

@media (max-width: 520px) {
  .fg-therapy-intro__copy h2,
  .fg-therapy-recognition__copy h2,
  .fg-therapy-section-head h2,
  .fg-therapy-process__header h2,
  .fg-therapy-faq__intro h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .fg-therapy-recognition__copy { padding: 4rem var(--fg-gutter, 5vw); }
  .fg-therapy-faq summary { font-size: 1.25rem; }
}
