/* 3S 2026: accessibility corrections for previously approved corporate pages.
   Presentation only. No text, links or images are created by these rules.
   Scope: navy editorial hero and navy call-to-action panels (not white cards,
   light sections, white buttons or green primary buttons). */

/* Headings in navy editorial panels. This overrides legacy Joomla heading rules,
   including -webkit-text-fill-color, without changing light sections. */
html body #content .s3i40 .s3i40-hero-copy > :is(h1,h2,h3,h4),
html body #content .s3rrhh26 .rr26-hero-copy > :is(h1,h2,h3,h4),
html body #content .s3pr26 .pr26-hero .pr26-copy > :is(h1,h2,h3,h4),
html body #content .s3c26 .c26-hero-copy > :is(h1,h2,h3,h4),
html body #content .s3ref26 .r26-hero .r26-copy > :is(h1,h2,h3,h4),
html body #content .s3a26-hero .s3a26-hero-copy > :is(h1,h2,h3,h4),
html body #content .s3i26-hero :is(h1,h2,h3,h4),
html body #content #s3-quienes-2026 .who-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-quienes-2026 .who-cta :is(h1,h2,h3,h4),
html body #content #s3-prediagnostico-2026 .pd-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-diagnostico-2026 .dg-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-auditorias-2026 .au-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-sge-2026 .sge-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-sge-2026 .sge-cta :is(h1,h2,h3,h4),
html body #content #s3-huella-carbono-2026 .hc-hero-copy > :is(h1,h2,h3,h4),
html body #content #s3-huella-carbono-2026 .hc-cta :is(h1,h2,h3,h4),
html body #content .s3i40 .s3i40-cta :is(h1,h2,h3,h4) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Inline emphasis in the headings may have old Joomla dark text styles. */
html body #content .s3i40 .s3i40-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3rrhh26 .rr26-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3pr26 .pr26-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3c26 .c26-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3ref26 .r26-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3a26-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content .s3i26-hero :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content #s3-quienes-2026 .who-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content #s3-sge-2026 .sge-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em),
html body #content #s3-huella-carbono-2026 .hc-hero-copy > :is(h1,h2,h3,h4) :is(span,strong,b,em) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Body text on dark blue: readable pale white. Keep lime eyebrow/kicker
   and all CTA links/buttons in their original corporate colours. */
html body #content .s3i40 .s3i40-hero-copy > p:not(.s3i40-kicker),
html body #content .s3rrhh26 .rr26-hero-copy > p:not(.rr26-kicker),
html body #content .s3pr26 .pr26-copy > p:not(.pr26-kicker),
html body #content .s3c26 .c26-hero-copy > p:not(.c26-eyebrow),
html body #content .s3ref26 .r26-copy > p:not(.r26-eyebrow),
html body #content .s3a26-hero .s3a26-hero-copy > p:not(.s3a26-kicker),
html body #content .s3i26-hero :is(.s3i26-description,.s3i26-note),
html body #content #s3-quienes-2026 .who-hero-copy > p:not(.who-kicker),
html body #content #s3-prediagnostico-2026 .pd-hero-copy > p:not(.pd-kicker),
html body #content #s3-diagnostico-2026 .dg-hero-copy > p:not(.dg-kicker),
html body #content #s3-auditorias-2026 .au-hero-copy > p:not(.au-kicker),
html body #content #s3-sge-2026 .sge-hero-copy > p:not(.sge-kicker),
html body #content #s3-huella-carbono-2026 .hc-hero-copy > p:not(.hc-kicker),
html body #content .s3i40 .s3i40-cta p:not(.s3i40-overline),
html body #content #s3-quienes-2026 .who-cta p:not(.who-kicker),
html body #content #s3-sge-2026 .sge-cta p:not(.sge-kicker),
html body #content #s3-huella-carbono-2026 .hc-cta p:not(.hc-kicker) {
  color: #e6f1f6 !important;
  -webkit-text-fill-color: #e6f1f6 !important;
  opacity: 1 !important;
}

/* Hero description markup can include bold/italic spans edited in Joomla. */
html body #content .s3i40 .s3i40-hero-copy > p:not(.s3i40-kicker) :is(span,b,strong,em),
html body #content .s3rrhh26 .rr26-hero-copy > p:not(.rr26-kicker) :is(span,b,strong,em),
html body #content .s3pr26 .pr26-copy > p:not(.pr26-kicker) :is(span,b,strong,em),
html body #content .s3c26 .c26-hero-copy > p:not(.c26-eyebrow) :is(span,b,strong,em),
html body #content .s3ref26 .r26-copy > p:not(.r26-eyebrow) :is(span,b,strong,em),
html body #content .s3a26-hero-copy > p:not(.s3a26-kicker) :is(span,b,strong,em),
html body #content .s3i26-hero :is(.s3i26-description,.s3i26-note) :is(span,b,strong,em) {
  color: #e6f1f6 !important;
  -webkit-text-fill-color: #e6f1f6 !important;
}

/* Industry 4.0 photo: the figure stretches over the entire right-hand grid
   cell; the image covers it from the centre, with no empty navy strip below. */
html body #content .s3i40 .s3i40-hero {
  align-items: stretch !important;
}
html body #content .s3i40 .s3i40-hero > figure.s3i40-hero-photo {
  position: relative !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body #content .s3i40 .s3i40-hero > figure.s3i40-hero-photo > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
@media (max-width: 940px) {
  html body #content .s3i40 .s3i40-hero > figure.s3i40-hero-photo {
    height: 310px !important;
    min-height: 310px !important;
  }
}
@media (max-width: 650px) {
  html body #content .s3i40 .s3i40-hero > figure.s3i40-hero-photo {
    height: 215px !important;
    min-height: 215px !important;
  }
}
