/*
 * GC-121 — Signify: replace per-year kilos stats with the accumulated total.
 *
 * Page 34 (/signify/), widget grupocolec_tabs_results (gc53SignifyAdvancesWidget).
 * The per-year panels (2022–2025) are hidden and the GC-117 "Total acumulado"
 * line is promoted to the exact typography of the old per-year h3 metrics
 * (40px / 600 / #fff, 42px at 641–1100px, 36px at ≤640px), keeping the same
 * count-up animation via data-gc-count (structured-widgets.js). Data source is
 * unchanged: the widget still computes the total from its own rows.
 *
 * Loads after gc117-header-nav-submenus.css so these rules win at equal
 * specificity. Scoped to page-id-34; other pages using gc-tabs-results
 * (page-id-6, page-id-9) are unaffected.
 */

body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__panels { display: none; }

/* GC-121: let the background photo read through. Horizontal scrim — nearly
   opaque behind the left-aligned text, fading out to the right — keeps white
   text contrast while showing far more of the image than the flat .86 wash. */
body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results {
  background-image:
    linear-gradient(90deg, rgba(0, 63, 54, .94) 0%, rgba(0, 63, 54, .7) 48%, rgba(0, 63, 54, .28) 100%),
    url('assets/production-media/2023/09/IMG-RECURSOS-COLEC-01-scaled.jpg');
}

@media (max-width: 640px) {
  /* Text spans the full width on small screens: stack the scrim vertically
     instead, dark behind the copy and open towards the bottom of the photo. */
  body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results {
    background-image:
      linear-gradient(180deg, rgba(0, 63, 54, .93) 0%, rgba(0, 63, 54, .62) 55%, rgba(0, 63, 54, .3) 100%),
      url('assets/production-media/2023/09/IMG-RECURSOS-COLEC-01-scaled.jpg');
  }
}

body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total {
  margin: 0;
  color: #fff;
  text-align: left;
}

body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__total-label {
  display: none;
}

body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__metric {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
}

body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__unit {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
}

@media (max-width: 1100px) and (min-width: 641px) {
  body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__metric,
  body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__unit {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__metric,
  body.page-id-34 .elementor-element-gc53SignifyAdvancesWidget .gc-tabs-results__total .gc-tabs-results__unit {
    font-size: 36px;
  }
}
