/* Text-contrast corrections (WCAG AA). Brand purple #7C2983 and teal #14D7CD stay as backgrounds and accents;
   only text/icon colours that failed on their backgrounds are adjusted. */
:root { --teal-text: #087a75; --ink-soft: #586073; --purple-ink: #2b1040; }

/* Teal text on white/light surfaces -> darker teal of the same hue */
body main .it-card-title,
body main .pbmit-element-title[style*="14D7CD"],
body main .pbmit-element-title[style*="14d7cd"],
body main h2.turquesa, body main .turquesa,
body main .pbmit-ihbox-style-15 .pbmit-element-title a,
body main .about-us-section_two .pbmit-subtitle,
body main .pbmit-tab-style-3 .nav-link:hover,
body main .pbmit-tab-list .ti-check { color: var(--teal-text) !important; }

/* Greys */
body main .bloque-mision-vision p,
body main .trial-text-col p, body main .trial-text-col li,
body main .pbmit-ihbox-style-15 .pbmit-ihbox-box p { color: var(--ink-soft) !important; }

/* Phase labels */
.fase-label, .fase-item.active .fase-num { color: #124f94; }

/* White text on brand-teal bands -> deep purple */
body main .section-que-tratamos-hero[style*="14D7CD"] h2,
body main .section-que-tratamos-hero[style*="14D7CD"] p,
body main .section-pacientes-comunidad .text-white,
body main .section-pacientes-comunidad h2, body main .section-pacientes-comunidad p { color: var(--purple-ink) !important; }
body main .faq-question.is-open span, body main .faq-item.is-open .faq-question span { color: var(--purple-ink) !important; }

/* Closing banner on desktop: add a scrim so white text is legible over the photo */
body main .testimonial-three_bg blockquote .text-white,
body main .testimonial-three_bg h3, body main .testimonial-three_bg p { color:#fff !important; text-shadow: 0 1px 2px rgba(43,16,64,.55); }
@media (min-width: 768px) {
  body main .testimonial-three_bg { position: relative; }
  body main .testimonial-three_bg::before { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(90deg, rgba(43,16,64,.78) 0%, rgba(43,16,64,.55) 50%, rgba(43,16,64,0) 85%); }
  body main .testimonial-three_bg > .container { position: relative; z-index: 1; }
}
