/* Brand colours identify service families; darker companions are used for
   text on light surfaces. They are navigation/design choices, not clinical claims. */
body[data-patient-theme="clinical"], [data-card-theme="clinical"] {
  --page-accent: #94C0D4; --page-soft: #EAF3F7; --page-ink: #2D627B;
}
body[data-patient-theme="infant"], [data-card-theme="infant"] {
  --page-accent: #F3B6A1; --page-soft: #FEF3EF; --page-ink: #8C4834;
}
body[data-patient-theme="active"], [data-card-theme="active"] {
  --page-accent: #F18852; --page-soft: #FDF0E8; --page-ink: #183B5F;
}
body[data-patient-theme="care"], [data-card-theme="care"] {
  --page-accent: #F5CA77; --page-soft: #FDF6E3; --page-ink: #785515;
}
body[data-patient-theme="brand"] {
  --page-accent: #F18852; --page-soft: #FDF0E8; --page-ink: #183B5F;
}
body[data-patient-theme], body[data-patient-theme] :is(.pbr-wrap, .pbr-empleo) {
  --accent: var(--page-accent);
  --accent-light: var(--page-soft);
  --accent-mid: var(--page-soft);
  --accent-dark: var(--page-ink);
}
/* A consistent accent through the title, small labels and primary action. */
html body[data-patient-theme] :is(.eyebrow, .trt-eyebrow, .ppo-eyebrow, .nc-eyebrow, .caso-link, .esp-link, .servicio-link, .step-circle, .faq-toggle, .cierre-phone a, .trt-phone a) {
  color: var(--page-ink) !important;
}
html body[data-patient-theme] :is(.eyebrow, .trt-eyebrow, .ppo-eyebrow, .nc-eyebrow)::before {
  background: var(--page-accent);
}
html body[data-patient-theme] :is(.section-title, .trt-title, .ppo-title, .nc-title) :is(em, .highlight, .accent) {
  color: var(--page-ink) !important;
}
html body[data-patient-theme][data-hero-tone="light"] :is(.hero, .ppo-hero, .trt-hero, .ct-hero) h1 :is(em, .highlight) {
  color: var(--page-ink) !important;
}
html body[data-patient-theme][data-hero-tone="dark"] :is(.hero, .co-hero, .nc-hero, .tec-hero) h1 :is(em, .highlight) {
  color: var(--page-accent) !important;
}
html body[data-patient-theme] :is(.hero .eyebrow-light, .pbr-section-dark .eyebrow, .taller-section .eyebrow, .tech-section .eyebrow, .derm-section .eyebrow) {
  color: var(--page-accent) !important;
}
html body[data-patient-theme] :is(.hero-tag, .trt-hero-tag, .ppo-hero-tag) {
  background: var(--page-accent); color: #183B5F;
}
html body[data-patient-theme] :is(.btn-hero, .btn-accent, .btn-primary, .nav-cta, .trt-btn-main, .ppo-btn-main) {
  background: var(--page-accent) !important; color: #183B5F !important;
  transition: transform .2s, box-shadow .2s;
}
html body[data-patient-theme] :is(.btn-hero, .btn-accent, .btn-primary, .nav-cta, .trt-btn-main, .ppo-btn-main):is(:hover, :focus-visible) {
  background: var(--page-ink) !important; color: #fff !important;
}
html body[data-patient-theme] :is(.btn-cierre, .trt-btn-cierre, .ppo-btn-cierre):is(:hover, :focus-visible) {
  background: var(--page-accent) !important; color: #183B5F !important;
  transition: transform .2s, box-shadow .2s;
}
html body[data-patient-theme] :is(.faq-q:hover, .trt-faq-q:hover, .ppo-faq-q:hover) {
  color: var(--page-ink);
}
/* Subtle card trims match the destination, including the home service cards. */
html body .esp-card[data-card-theme]::before { background: var(--page-accent); }
html body .esp-card[data-card-theme] .esp-link { color: var(--page-ink) !important; }
/* Legal information uses a light reading surface and brand navy text. */
html body.pbr-legal .content :is(.contacto, .interior-contacto) { background: #EAF3F7 !important; }
html body.pbr-legal .content .interior-contacto :is(p, li, h1, h2, h3, span, b, strong, em, a) { color: #183B5F !important; }
html body.pbr-legal .content .interior-contacto a { text-decoration: underline; }
html body[data-patient-theme] .hero-accent-line { background: var(--page-accent) !important; }
html body.pbr-legal .content :is(h1, h2, h3) { color: #183B5F !important; }
html body.pbr-legal .content .contacto .logo {
  position: static !important;
  max-width: calc(180 * var(--pbr-fluid-unit)) !important;
  margin: calc(20 * var(--pbr-fluid-unit)) auto 0 !important;
  left: auto !important; top: auto !important;
}

html body[data-patient-theme] .faq-toggle.open { color: #183B5F !important; }
html body[data-patient-theme] .nav-back:hover { color: var(--page-ink); }

/* The technology hub uses older class names; keep its entry points in the
   same blue family as the individual diagnostic/treatment pages. */
html body[data-patient-theme] :is(.tec-hero h1 .accent, .tec-eyebrow) { color: var(--page-accent) !important; }
html body[data-patient-theme] .tec-eyebrow::before,
html body[data-patient-theme] .tec-eyebrow::after { background: var(--page-accent); }
html body[data-patient-theme] :is(.tec-group-label, .tec-item-link) { color: var(--page-ink) !important; }
html body[data-patient-theme] .tec-item-icon { color: #183B5F !important; }
html body[data-patient-theme] .tec-item:hover .tec-item-icon { background: var(--page-accent); color: #183B5F !important; }
body[data-patient-theme="care"], body[data-patient-theme="care"] .pbr-wrap { --banana-dark: #785515; }

/* Keep the original brand orange in expressive headings. Small text and
   interactive states use brand navy rather than a dark terracotta orange. */
html body:is([data-patient-theme="active"], [data-patient-theme="brand"]) :is(.section-title, .trt-title, .ppo-title, .nc-title) :is(em, .highlight, .accent),
html body:is([data-patient-theme="active"], [data-patient-theme="brand"])[data-hero-tone="light"] :is(.hero, .ppo-hero, .trt-hero, .ct-hero) h1 :is(em, .highlight) {
  color: var(--page-accent) !important;
}

/* Warm brand pages retain their original peach accents rather than orange. */
body[data-patient-theme="brand"][data-brand-accent="peach"] {
  --page-accent: #F3B6A1; --page-soft: #FEF3EF; --page-ink: #183B5F;
}
html body[data-brand-accent="peach"] :is(.nc-btn-main, .co-btn-main) {
  background: var(--page-accent); color: #183B5F;
}
html body[data-brand-accent="peach"] :is(.nc-btn-main, .co-btn-main):is(:hover, :focus-visible) {
  background: #183B5F; color: #fff;
}
html body[data-brand-accent="peach"] .co-eyebrow-light::before,
html body[data-brand-accent="peach"] .co-eyebrow-light::after {
  background: var(--page-accent);
}
html body[data-brand-accent="peach"] .co-hero-list-item::before { color: var(--page-accent); }

html body[data-brand-accent="peach"] .co-eyebrow-light { color: var(--page-accent); }
