/* Shared hero typography: fluid scale with room for long Spanish titles.
   Loaded after page styles to replace the legacy 38/42px desktop caps. */
html body :is(.hero, .home-hero, .ppo-hero, .trt-hero, .nc-hero, .co-hero, .ct-hero, .tec-hero) h1 {
  font-size: clamp(1.875rem, calc(1.375rem + 2vw), 2.5rem) !important;
  line-height: 1.26 !important;
  overflow-wrap: break-word;
  word-break: normal;
}
html body :is(.hero, .home-hero, .ppo-hero, .trt-hero, .nc-hero, .co-hero, .ct-hero, .tec-hero) h1.h1-largo {
  font-size: clamp(1.875rem, calc(1.25rem + 2vw), 2.25rem) !important;
}
html body :is(.hero-sub, .home-hero-sub, .ppo-hero-sub, .trt-hero-sub, .nc-hero-sub, .co-hero-sub, .ct-hero-sub, .tec-hero-sub) {
  font-size: clamp(1rem, calc(.9375rem + .3vw), 1.375rem) !important;
}
@media (min-width: 901px) {
  html body :is(.hero, .home-hero, .ppo-hero, .trt-hero, .nc-hero, .co-hero, .ct-hero, .tec-hero) h1 {
    font-size: clamp(2.125rem, 3.3vw, calc(64 * var(--pbr-fluid-unit, 1px))) !important;
  }
  html body :is(.hero, .home-hero, .ppo-hero, .trt-hero, .nc-hero, .co-hero, .ct-hero, .tec-hero) h1.h1-largo {
    font-size: clamp(2rem, 2.9vw, calc(56 * var(--pbr-fluid-unit, 1px))) !important;
  }
  html body :is(.hero-grid > .hero-inner, .co-hero-photo .co-hero-inner, .ct-hero-photo .ct-hero-inner) {
    max-width: calc(1120 * var(--pbr-fluid-unit, 1px));
    min-width: 0;
    box-sizing: border-box;
    padding-left: clamp(2rem, 3.3vw, 6rem);
    padding-right: clamp(2rem, 3.3vw, 6rem);
  }
  html body :is(.hero-left, .ppo-hero-left, .trt-hero-left) {
    min-width: 0;
    padding-left: clamp(2rem, 3.3vw, 6rem);
    padding-right: clamp(2rem, 3.3vw, 6rem);
  }
  html body :is(.hero-sub, .home-hero-sub, .ppo-hero-sub, .trt-hero-sub, .nc-hero-sub, .co-hero-sub, .ct-hero-sub, .tec-hero-sub) {
    max-width: 58ch !important;
    font-size: clamp(18px, 1.35vw, calc(22 * var(--pbr-fluid-unit, 1px))) !important;
  }
  html body .pbr-wrap .home-hero-left {
    width: 54%;
    max-width: calc(1120 * var(--pbr-fluid-unit, 1px));
    box-sizing: border-box;
    margin-left: max(0px, calc((100vw - calc(2240 * var(--pbr-fluid-unit, 1px))) / 2));
    padding-left: clamp(2rem, 3.3vw, 6rem);
    padding-right: clamp(1.5rem, 2vw, 3rem);
  }
  html body .nc-hero-content { max-width: calc(1040 * var(--pbr-fluid-unit, 1px)); }
  html body :is(.hero-actions, .home-hero-actions, .trt-hero-btns) { flex-wrap: wrap; }
}
/* Allow the animated words to wrap without widening the home hero. */
html body .pbr-wrap .home-hero-left { min-width: 0; }
html body .pbr-wrap .home-hero h1 { max-width: none; }
html body .pbr-wrap .home-hero h1 .word-nowrap { display: inline; white-space: normal; }
@media (max-width: 900px) {
  html body .pbr-wrap .home-hero-left { width: 100%; }
}
