/* SaltaConectada 1.0.145 / V245
   Correctivo Drawer + Public Microsite Outer Frame Contract.
   APP-first · Windows público 768 · Control fuera de scope. */

/* =========================================================
   DRAWER · TEXTO PURO SIN ROMPER EL CONTRATO V218
   No se elimina ningún nodo del DOM. Se oculta sólo el icono.
   ========================================================= */
html body:not(.wp-admin).sc-global-header-v190-active:not(.jc-ccj-floating-frame)
.sc-global-header-v190__drawer .jcx-header433__drawer-nav a,
html body:not(.wp-admin) .jcx-header433__drawer-nav a{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 10px!important;
  gap:0!important;
  line-height:1.2!important;
}
html body:not(.wp-admin).sc-global-header-v190-active:not(.jc-ccj-floating-frame)
.sc-global-header-v190__drawer .jcx-header433__drawer-nav a>span[aria-hidden="true"],
html body:not(.wp-admin) .jcx-header433__drawer-nav a>span[aria-hidden="true"]{
  display:none!important;
  width:0!important;
  min-width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body:not(.wp-admin).sc-global-header-v190-active:not(.jc-ccj-floating-frame)
.sc-global-header-v190__drawer .jcx-header433__drawer-nav a>b,
html body:not(.wp-admin) .jcx-header433__drawer-nav a>b{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:760!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-align:left!important;
}

/* =========================================================
   MICROSITIOS PÚBLICOS · CONTRATO EXTERIOR
   Windows: frame 768 centrado + contenido útil 744.
   APP: 100% viewport + gutter útil 12/12.
   ========================================================= */
html body.sc-public-shell-v245{
  --sc-v245-frame:768px;
  --sc-v245-gutter:12px;
  --sc-v245-useful:744px;
  overflow-x:hidden!important;
}

/* Identity Bars reales de Salta: deben compartir EXACTAMENTE el eje del Header. */
html body.sc-public-shell-v245 :is(
  .sc-ms-id-v191,.sc-ms-id-v193,.sc-ms-id-v194,.sc-ms-id-v195,
  .sc-ms-id-v199,.sc-ms-id-v204,.sc-ms-id-v205
){
  box-sizing:border-box!important;
  min-width:0!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
html body.sc-public-shell-v245 :is(
  .sc-ms-id-v191__inner,.sc-ms-id-v193__inner,.sc-ms-id-v194__inner,.sc-ms-id-v195__inner,
  .sc-ms-id-v199__inner,.sc-ms-id-v204__inner,.sc-ms-id-v205__inner
){
  box-sizing:border-box!important;
  min-width:0!important;
}

/* Shell exterior del documento: mismo eje 768 cuando V210 no cubre la ruta. */
html body.sc-public-shell-v245 #jc-content-shell,
html body.sc-public-shell-v245 :is(main.jc-main,main.site-main,#primary,.jc-page-main){
  box-sizing:border-box!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Wrappers exteriores que pueden conservar fondos propios. */
html body.sc-public-shell-v245 :is(
  .jc-automotores-shell,.jc-bares-shell,.jc-boliches-shell,
  .sc-cuponeta-v121,.sc-inm135,.jc-regions-index,.sc-region-showcase-v115,
  .sc-scrd-shell-v138,.sc-scrd-shell-v139,.sc-scrd-shell-v140,.sc-scrd-shell-v141,
  .sc-scrd-shell-v142,.sc-scrd-shell-v143,.sc-scrd-shell-v144
){
  box-sizing:border-box!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Rail útil. Se limita a los shells de contenido reales. */
html body.sc-public-shell-v245 :is(
  .jc-automotores-first-row,.jc-automotores-content,
  .jc-bares-first-row,.jc-bares-content,.jc-bares-v1-shell,
  .jc-boliches-v1-shell,
  .jc-commerce-shell,.jc-commerce-directory__shell,
  .jc-classifieds-shell,.jc-jobs-shell,
  .jc-tourism-shell,.jc-turismo-shell-v2,.sc-tourism-shell,
  .jc-profesionales-shell-v2,.sc-prof-shell,
  .jc-news-v3__shell,.jc-news-v3__body,.jc-noticias-shell-v2,
  .jc-tramites-info-shell,.jc-info-util-dual-shell__header,.jc-tramites-shell,.sc-tramites-shell,
  .sc-cuponeta-v121__shell,
  .sc-regions-shell,.jc-regions-shell,.jc-region2-shell,
  .sc-inm135__shell,.jc-aprende-shell,
  .sc-solos177-shell,.sc-solos177__shell,
  .sc-scrd138__shell,.sc-scrd139__shell,.sc-scrd140__shell,.sc-scrd142__shell,.sc-scrd143__shell,.sc-scrd144__shell,
  .jc-microsites-v2-shell,.jc-msbase-shell,.jc-gastronomia-page
){
  box-sizing:border-box!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Comunidad: sólo eje principal, nunca modales/floating frames. */
html body.sc-public-shell-v245--comunidad :is(.jc-ccj-v2-main,.jc-community-wall-main){
  box-sizing:border-box!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media (max-width:900px){
  html body.sc-public-shell-v245 #jc-content-shell,
  html body.sc-public-shell-v245 :is(main.jc-main,main.site-main,#primary,.jc-page-main),
  html body.sc-public-shell-v245 :is(
    .sc-ms-id-v191,.sc-ms-id-v193,.sc-ms-id-v194,.sc-ms-id-v195,.sc-ms-id-v199,.sc-ms-id-v204,.sc-ms-id-v205,
    .jc-automotores-shell,.jc-bares-shell,.jc-boliches-shell,.sc-cuponeta-v121,.sc-inm135,.jc-regions-index,.sc-region-showcase-v115,
    .sc-scrd-shell-v138,.sc-scrd-shell-v139,.sc-scrd-shell-v140,.sc-scrd-shell-v141,.sc-scrd-shell-v142,.sc-scrd-shell-v143,.sc-scrd-shell-v144
  ){
    width:100%!important;
    max-width:100%!important;
  }

  html body.sc-public-shell-v245 :is(
    .jc-automotores-first-row,.jc-automotores-content,.jc-bares-first-row,.jc-bares-content,.jc-bares-v1-shell,
    .jc-boliches-v1-shell,.jc-commerce-shell,.jc-commerce-directory__shell,.jc-classifieds-shell,.jc-jobs-shell,
    .jc-tourism-shell,.jc-turismo-shell-v2,.sc-tourism-shell,.jc-profesionales-shell-v2,.sc-prof-shell,
    .jc-news-v3__shell,.jc-news-v3__body,.jc-noticias-shell-v2,.jc-tramites-info-shell,.jc-info-util-dual-shell__header,
    .jc-tramites-shell,.sc-tramites-shell,.sc-cuponeta-v121__shell,.sc-regions-shell,.jc-regions-shell,.jc-region2-shell,
    .sc-inm135__shell,.jc-aprende-shell,.sc-solos177-shell,.sc-solos177__shell,.sc-scrd138__shell,.sc-scrd139__shell,
    .sc-scrd140__shell,.sc-scrd142__shell,.sc-scrd143__shell,.sc-scrd144__shell,.jc-microsites-v2-shell,.jc-msbase-shell,.jc-gastronomia-page
  ),
  html body.sc-public-shell-v245--comunidad :is(.jc-ccj-v2-main,.jc-community-wall-main){
    width:calc(100% - 24px)!important;
    max-width:none!important;
  }
}

@media (min-width:901px){
  /* Frame físico completo. */
  html body.sc-public-shell-v245 #jc-content-shell,
  html body.sc-public-shell-v245 :is(main.jc-main,main.site-main,#primary,.jc-page-main),
  html body.sc-public-shell-v245 :is(
    .sc-ms-id-v191,.sc-ms-id-v193,.sc-ms-id-v194,.sc-ms-id-v195,.sc-ms-id-v199,.sc-ms-id-v204,.sc-ms-id-v205,
    .jc-automotores-shell,.jc-bares-shell,.jc-boliches-shell,.sc-cuponeta-v121,.sc-inm135,.jc-regions-index,.sc-region-showcase-v115,
    .sc-scrd-shell-v138,.sc-scrd-shell-v139,.sc-scrd-shell-v140,.sc-scrd-shell-v141,.sc-scrd-shell-v142,.sc-scrd-shell-v143,.sc-scrd-shell-v144
  ){
    width:768px!important;
    max-width:768px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  html body.sc-public-shell-v245 #jc-content-shell > main,
  html body.sc-public-shell-v245 #jc-content-shell > section{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Las barras quedan 768; su interior llena la barra con gutter propio. */
  html body.sc-public-shell-v245 :is(
    .sc-ms-id-v191__inner,.sc-ms-id-v193__inner,.sc-ms-id-v194__inner,.sc-ms-id-v195__inner,
    .sc-ms-id-v199__inner,.sc-ms-id-v204__inner,.sc-ms-id-v205__inner
  ){
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  /* Rail útil 744: evita 1024/1120/1180 heredados. */
  html body.sc-public-shell-v245 :is(
    .jc-automotores-first-row,.jc-automotores-content,.jc-bares-first-row,.jc-bares-content,.jc-bares-v1-shell,
    .jc-boliches-v1-shell,.jc-commerce-shell,.jc-commerce-directory__shell,.jc-classifieds-shell,.jc-jobs-shell,
    .jc-tourism-shell,.jc-turismo-shell-v2,.sc-tourism-shell,.jc-profesionales-shell-v2,.sc-prof-shell,
    .jc-news-v3__shell,.jc-news-v3__body,.jc-noticias-shell-v2,.jc-tramites-info-shell,.jc-info-util-dual-shell__header,
    .jc-tramites-shell,.sc-tramites-shell,.sc-cuponeta-v121__shell,.sc-regions-shell,.jc-regions-shell,.jc-region2-shell,
    .sc-inm135__shell,.jc-aprende-shell,.sc-solos177-shell,.sc-solos177__shell,.sc-scrd138__shell,.sc-scrd139__shell,
    .sc-scrd140__shell,.sc-scrd142__shell,.sc-scrd143__shell,.sc-scrd144__shell,.jc-microsites-v2-shell,.jc-msbase-shell,.jc-gastronomia-page
  ),
  html body.sc-public-shell-v245--comunidad :is(.jc-ccj-v2-main,.jc-community-wall-main){
    width:744px!important;
    max-width:744px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Bares y Automotores: neutraliza de forma explícita su max-width desktop histórico. */
  html body.sc-public-shell-v245--bares-y-confiterias .jc-bares-shell :is(.jc-bares-first-row,.jc-bares-content),
  html body.sc-public-shell-v245--automotores .jc-automotores-shell :is(.jc-automotores-first-row,.jc-automotores-content){
    width:744px!important;
    max-width:744px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* v1.0.151 · Comunidad Salta Conectada: franja de identidad debajo del header global. */
html body.sc-public-shell-v245--comunidad #jc-content-shell::before{
  content:"";
  display:block;
  width:100%;
  height:78px;
  margin:0 auto 12px;
  border-bottom:1px solid #dbe7f4;
  background:
    linear-gradient(180deg,rgba(248,251,255,.98) 0%,rgba(255,255,255,.98) 100%),
    url('../images/home/comunidad-salta-conectada-v251.webp') center center / auto 64px no-repeat;
  box-shadow:0 10px 24px rgba(16,58,110,.05);
}
html body.sc-public-shell-v245--comunidad #jc-content-shell{
  overflow:visible!important;
}
@media (max-width:900px){
  html body.sc-public-shell-v245--comunidad #jc-content-shell::before{
    height:66px;
    margin-bottom:10px;
    background-size:auto 52px;
  }
}
@media (max-width:520px){
  html body.sc-public-shell-v245--comunidad #jc-content-shell::before{
    height:60px;
    margin-bottom:8px;
    background-size:auto 46px;
  }
}
