/* CP-01 | S34 -- WCAG 2.1 AA contrast compatibility layer
   Fixes contrast failures in post_content legacy HTML across Servicios and Nosotros pages.

   Two failure patterns:
   A) No explicit color -> inherits rgba(255,255,255,0.xx) from @layer base body rule
      on white/light section backgrounds. Fix: scoped class in @layer components
      (components > base in layer order, class > tag in specificity).
   B) Explicit failing color in unlayered inline <style> block (unlayered > any layer
      in normal cascade). Fix: !important in layer (layer !important > unlayered non-!important). */

@layer components {

/* ================================================================
   SERVICIOS (page 191 ES / EN equivalent)
   ================================================================ */

/* Pattern A -- containers with light bg inherit body white text */
.servicios-intro,
.servicio-card,
.servicio-header,
.servicio-header-content,
.servicio-expanded,
.service-cta,
.service-list li,
.plans-table td,
.comparativa-table td { color: var(--avn-on-light); }

/* Pattern B -- explicit cyan on white/light bg */
.service-list strong,
.expand-icon { color: var(--avn-accent-on-light) !important; }


/* ================================================================
   ACERCA DE / NOSOTROS (page 369 ES / EN equivalent)
   ================================================================ */

/* Pattern A -- containers with light bg inherit body white text */
.founder-section,
.founder-grid,
.founder-photo,
.founder-bio,
.bio-content,
.certs-partners,
.certs-partners h3,
.social-founder,
.team-card,
.team-grid { color: var(--avn-on-light); }

/* Pattern B -- explicit cyan on white/light bg */
.founder-bio .tagline,
.cert-list li strong { color: var(--avn-accent-on-light) !important; }

/* Pattern B -- dark #555 on dark gradient card bg (mission, why sections) */
.mission-card p,
.why-card p { color: rgba(255, 255, 255, 0.72) !important; }

} /* end @layer components */
