/* Desktop first view. Natural height remains the fallback at large zoom or
   unusually short windows: never clip copy or introduce an inner scrollbar. */
@media (min-width: 1024px) {
  html body [data-pbr-viewport] {
    box-sizing: border-box;
    min-height: var(--pbr-hero-height) !important;
    height: auto !important;
    padding-top: var(--pbr-hero-header) !important;
    padding-bottom: 0 !important;
    --pbr-hero-space: 1;
    --pbr-hero-type: 1;
  }
  /* Hero compacto: la altura se ajusta al contenido (mínimo y máximo razonables) en vez de ocupar toda la pantalla. */
  html body [data-pbr-viewport]:is(.hero, .ppo-hero, .trt-hero, .nc-hero, .co-hero, .tec-hero) { min-height: clamp(560px, 66vh, 700px) !important; }
  /* Keep the contact form and technology list close to their short intro. */
  html body [data-pbr-viewport]:is(.ct-hero, .tec-hero) { min-height: 0 !important; }
  html body [data-pbr-viewport]:is(.tec-hero, header.hero) {
    display: flex; flex-direction: column; justify-content: center;
  }
  html body [data-pbr-viewport]:is(.tec-hero, header.hero) > :is(.hero-inner, .tec-hero-inner) { width: 100%; }
  html body [data-pbr-viewport] :is(.hero-grid, .ppo-hero-grid, .co-hero-grid, .ct-hero-grid) {
    min-height: 0; align-self: stretch;
  }
  html body [data-pbr-viewport] :is(.hero-inner, .hero-left, .home-hero-left, .ppo-hero-left, .trt-hero-left, .nc-hero-content, .co-hero-inner, .ct-hero-inner, .tec-hero-inner) {
    box-sizing: border-box;
    padding-top: calc(clamp(24px, 4svh, 64px) * var(--pbr-hero-space)) !important;
    padding-bottom: calc(var(--pbr-hero-curve, 0px) + clamp(24px, 4svh, 64px) * var(--pbr-hero-space)) !important;
    min-height: 0;
  }
  html body [data-pbr-viewport] h1,
  html body [data-pbr-viewport] h1.h1-largo,
  html body:has(.form-wrap) [data-pbr-viewport] h1 {
    font-size: min(var(--pbr-hero-title), max(30px, calc(var(--pbr-hero-title) * var(--pbr-hero-type)))) !important;
    margin-bottom: calc(20px * var(--pbr-hero-space)) !important;
  }
  html body [data-pbr-viewport] [data-pbr-hero-copy] {
    font-size: min(var(--pbr-hero-copy), max(17px, calc(var(--pbr-hero-copy) * var(--pbr-hero-type)))) !important;
    line-height: 1.5;
    margin-bottom: calc(24px * var(--pbr-hero-space)) !important;
  }
  html body [data-pbr-viewport] :is(.hero-actions, .hero-btns, .home-hero-actions, .ppo-hero-btns, .trt-hero-btns, .nc-hero-btns, .tec-hero-actions, .hero-cta) {
    margin-top: calc(16px * var(--pbr-hero-space));
    margin-bottom: calc(20px * var(--pbr-hero-space)) !important;
  }
  html body [data-pbr-viewport] :is(.btn-hero, .btn-ghost, .btn-primary, .ppo-btn-main, .ppo-btn-ghost, .trt-btn-main, .trt-btn-ghost, .nc-btn-main, .nc-btn-ghost, .co-btn-main, .btn-ghost-light) {
    box-sizing: border-box; min-height: 44px;
    padding-block: clamp(12px, 1.5svh, 18px) !important;
  }
  html body [data-pbr-viewport] :is(.hero-stats, .home-hero-trust, .ppo-stats, .rating-hero) {
    margin-top: calc(24px * var(--pbr-hero-space)) !important;
    padding-top: calc(20px * var(--pbr-hero-space)) !important;
    row-gap: calc(16px * var(--pbr-hero-space));
  }
  html body [data-pbr-viewport] :is(.eyebrow, .eyebrow-light, .hero-tag, .trt-hero-tag, .ppo-hero-tag, .nc-hero-tag, .tec-eyebrow, .co-eyebrow-light, .ct-eyebrow, .kicker, .peach-badge, .onyfix-badge, .laser-badge) {
    margin-bottom: calc(20px * var(--pbr-hero-space)) !important;
  }
  html body [data-pbr-viewport] :is(.hero-visual, .hero-right, .trt-hero-right, .ppo-hero-right) {
    min-height: 0 !important;
    height: auto;
  }
  html body [data-pbr-viewport] :is(.trt-hero-right, .ppo-hero-right, .hero-right:has(> .hero-img)) { align-self: stretch; }
  html body [data-pbr-viewport] :is(.trt-hero-img, .ppo-hero-img, .hero-right > .hero-img) {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  html body [data-pbr-viewport] :is(.curva-hero-bottom, .ppo-curva-hero-bottom) svg {
    height: var(--pbr-hero-curve);
  }
  html body [data-pbr-viewport] .co-hero-list {
    margin-bottom: calc(24px * var(--pbr-hero-space)); gap: calc(8px * var(--pbr-hero-space));
  }
  html body [data-pbr-viewport] .co-agenda-note { margin-top: calc(12px * var(--pbr-hero-space)); }
  html body [data-pbr-viewport] .ad-slider {
    max-height: max(200px, calc(var(--pbr-hero-height) - var(--pbr-hero-header) - var(--pbr-hero-curve) - 130px));
  }
  html body [data-pbr-viewport] .home-hero-trust {
    flex-wrap: wrap; gap: 16px 24px;
  }
  html body [data-pbr-viewport] .home-hero-trust .trust-divider { display: none; }
  html body [data-pbr-viewport] .home-hero-trust .trust-item { white-space: normal; }
}
