/* SaltaConectada Pro 2026 · 1.0.9 · Site Width 1024 Contract V2
   -----------------------------------------------------------------
   Contrato:
   - 1024 px es el techo visual del contenido del portal.
   - El sitio queda centrado para que los márgenes laterales sean visibles en desktop ancho.
   - Fondos, overlays, drawers, modales y elementos fixed NO se encajonan.
   - Móvil/tablet conservan sus gutters y no generan scroll horizontal.
*/
:root{
  --jc-container:1024px!important;
  --jc-public-max:1024px;
  --jc-portal-max:1024px;
  --sc-site-max:1024px;
}

/* Contenedores maestros */
html body .jc-container,
html body .jcb-container,
html body .jcb-shell{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Header Builder: el fondo puede ser full-bleed, la geometría central no. */
html body .jcx-header433 .wp-block-jcb-header-shell.jcb-hb429-shell{
  width:100%!important;
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Home: TODO el árbol visual directo comparte un único marco de 1024 px.
   V2 corrige el efecto acordeón de secciones posteriores a Accesos principales. */
html body.home .jc-home-builder-layout{
  width:min(100%,var(--sc-site-max))!important;
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}
html body.home .jc-home-builder-layout>.jc-home-portal-dashboard,
html body.home .jc-home-builder-layout>.jc-home-slider,
html body.home .jc-home-builder-layout>.jc-home-regions,
html body.home .jc-home-builder-layout>.jc-home-categories,
html body.home .jc-home-builder-layout>.jc-section,
html body.home .jc-home-builder-layout>.jc-home-ad-grid-block,
html body.home .jc-home-builder-layout>.jc-home-cta,
html body.home .jc-home-builder-layout>.jc-home-fixed-ad,
html body.home .jc-home-builder-layout>.jc-home-house-ad,
html body.home .jc-home-builder-layout>.jc-home-financial-banner{
  width:100%!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
html body.home .jc-home-builder-layout>.jc-section>.jc-container,
html body.home .jc-home-builder-layout>.jc-home-ad-grid-block>.jc-container,
html body.home .jc-home-builder-layout>.jc-home-cta>.jc-container,
html body.home .jc-home-builder-layout>.jc-home-fixed-ad>.jc-container,
html body.home .jc-home-builder-layout>.jc-home-portal-dashboard>.jc-container{
  width:min(calc(100% - 32px),var(--sc-site-max))!important;
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}

/* Carrusel y bloques visuales comparten el mismo eje de 1024 px. */
html body.home .jc-home-slider,
html body.home .jc-home-fixed-ad,
html body.home .jc-home-house-ad,
html body.home .jc-home-luck-banner__picture,
html body.home .jc-home-radio-rd-banner,
html body.home .jc-home-portal-dashboard,
html body.home .jc-home-regions,
html body.home .jc-home-categories{
  width:min(100%,var(--sc-site-max))!important;
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}
html body.home .jc-home-fixed-ad .jc-container,
html body.home .jc-home-house-ad .jc-container,
html body.home .jc-home-portal-dashboard .jc-container{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}
html body.home .jc-home-fixed-ad .jc-ad-space,
html body.home .jc-home-house-ad .jc-house-ad,
html body.home .jc-portal-auto-carousel .jc-ad-space,
html body.home .jc-portal-auto-banners .jc-ad-space{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Micrositios activos y fichas. Sólo se fija techo, nunca ancho mínimo. */
html body .jcp-microsite-banner .jc-container,
html body .jc-msbase-header__row,
html body .jc-msbase-shell,
html body .jc-cls270-header__row,
html body .jc-cls270-shell,
html body .jc-commerce-header-v281__row,
html body .jc-commerce-shell,
html body .jc-commerce-v3,
html body .jc-commerce-v3--masthead,
html body .jc-jobs-shell,
html body .jc-automotores-shell .jc-automotores-first-row,
html body .jc-automotores-shell .jc-automotores-content,
html body .jc-tramites-info-shell,
html body .jc-info-util-dual-shell__header,
html body .jc-ti290-header__row,
html body .jc-microsites-v2-shell,
html body .jc-listing-page>.jc-container,
html body .jc-news-single-card,
html body .jcb-gestiones-content--assistant,
html body .jcb-professionals-content,
html body .jc-professionals-content,
html body .jc-professionals-legacy-directory,
html body .jc-zone-site>.jc-container{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Constructor y administración visual: mismo eje para que preview y sitio sean comparables. */
html body .jc-builder-page--modern>.jc-container,
html body .jc-builder-page--modern .jc-container,
html body .jc-portal-admin>.jc-container{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Footer full-bleed con contenido alineado al sitio. */
html body .jc-footer .jc-container,
html body .jc-web-footer-v2__main,
html body .jc-web-footer-v2__bottom-inner{
  max-width:var(--sc-site-max)!important;
  margin-inline:auto!important;
}

/* Tablet/móvil: el techo nunca obliga a ocupar 1024 px. */
@media(max-width:1024px){
  html,body{max-width:100%;overflow-x:hidden}
  html body.home .jc-home-builder-layout{width:100%!important;max-width:100%!important}
}
@media(max-width:760px){
  html body.home .jc-home-slider,
  html body.home .jc-home-fixed-ad,
  html body.home .jc-home-house-ad,
  html body.home .jc-home-luck-banner__picture,
  html body.home .jc-home-portal-dashboard,
  html body.home .jc-home-regions,
  html body.home .jc-home-categories{
    width:100%!important;
    max-width:100%!important;
  }
}
