/* =========================================================
   NUVORELIX V10.70 · WIDE VIEWPORT / ZOOM-OUT RESILIENCE
   Mantiene el zoom del usuario, pero evita una columna diminuta en viewports
   CSS enormes (zoom-out, 4K/5K, ultrawide o escalado poco común).
   ========================================================= */

/* El shell principal deja de quedarse clavado en ~1560px cuando el viewport
   tiene muchísimo espacio disponible. */
@media (min-width:1900px){
  :root{--nx-r-max:1840px!important;--nx-r-gutter:clamp(24px,2vw,42px)!important}

  .nova-navbar{padding-inline:clamp(22px,3vw,52px)!important}
  .nova-navbar-shell{width:min(1840px,calc(100vw - 64px))!important;max-width:none!important}

  body.cm-nova-ux .cm-footer-prelude,
  body.cm-nova-ux .site-footer.cm-footer-mega,
  body.cm-nova-ux .footer-bottom.cm-footer-bottom-mega{
    width:min(1840px,calc(100vw - 64px))!important;
    max-width:none!important;
  }

  body.cm-home-reboot .cm-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

@media (min-width:2400px){
  :root{--nx-r-max:2280px!important;--nx-r-gutter:clamp(30px,2.2vw,56px)!important}

  .nova-navbar-shell,
  body.cm-nova-ux .cm-footer-prelude,
  body.cm-nova-ux .site-footer.cm-footer-mega,
  body.cm-nova-ux .footer-bottom.cm-footer-bottom-mega{
    width:min(2280px,calc(100vw - 96px))!important;
  }

  body.cm-home-reboot .nx60-hero{
    grid-template-columns:minmax(0,1.02fr) minmax(520px,.98fr)!important;
  }
  body.cm-home-reboot .nx60-hero-copy{padding:clamp(54px,4vw,92px)!important}
  body.cm-home-reboot .nx60-hero h1{font-size:clamp(4.8rem,4.1vw,7rem)!important}
  body.cm-home-reboot .cm-product-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  body.nx-how-page .nxhow-hero h1{font-size:clamp(4.8rem,4.2vw,7.2rem)!important}
}

@media (min-width:3200px){
  :root{--nx-r-max:3000px!important;--nx-r-gutter:clamp(40px,2vw,72px)!important}

  .nova-navbar-shell,
  body.cm-nova-ux .cm-footer-prelude,
  body.cm-nova-ux .site-footer.cm-footer-mega,
  body.cm-nova-ux .footer-bottom.cm-footer-bottom-mega{
    width:min(3000px,calc(100vw - 140px))!important;
  }

  body.cm-home-reboot .cm-product-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }

  /* A muy bajo zoom los elementos no quedan microscópicos aunque respetamos
     el zoom: solo aprovechamos el breakpoint de viewport gigante. */
  body.cm-home-reboot .nx60-section-title h2,
  body.cm-home-reboot .cm-catalog h2,
  body.nx-how-page h2{
    font-size:clamp(2.5rem,2.6vw,5rem)!important;
  }
  body.cm-home-reboot .nx60-product-body h3{font-size:clamp(1.35rem,1.15vw,1.8rem)!important}
}

/* Evita que el contenido "flote" como una isla demasiado pequeña en el centro
   de pantallas muy anchas incluso cuando una hoja antigua vuelva a aplicar un
   max-width fijo. */
@media (min-width:1900px){
  body.cm-home-reboot main.container.cm-page,
  body.cm-product-reboot .cm-product-main,
  body.nx-how-page .nxhow-main{
    max-width:var(--nx-r-max)!important;
    width:min(var(--nx-r-max),calc(100vw - (var(--nx-r-gutter) * 2)))!important;
  }
}
