/**
 * SaltaConectada Pro 2026 · 1.0.109
 * WINDOWS GLOBAL COMPACT V1
 * APP móvil = autoridad. Desktop/Windows replica una geometría Tablet compacta dentro del frame 768.
 * No usa User-Agent. Se activa sólo por @media(min-width:901px).
 */
@media (min-width:901px){
  /* No tocar Home aprobado ni Comunidad flotante. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route):not(.jc-ccj-floating-frame) #jc-content-shell{
    width:min(100%,768px)!important;
    max-width:768px!important;
    min-width:0!important;
    margin-inline:auto!important;
    overflow-x:clip!important;
  }

  /* Ritmo vertical general: menos aire entre secciones. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) #jc-content-shell :is(
    .jc-section,
    .jc-msbase-shell,
    .jc-pt-v288-shell,
    .jc-cjc-shell,
    .jc-commerce-v3,
    .jc-jobs-shell,
    .jc-tramites-main,
    .jc-tramites-info-shell,
    .jc-regions-index,
    .sc-cuponeta-v121__intro,
    .sc-cuponeta-v121__results
  ){
    margin-top:8px!important;
    margin-bottom:8px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) #jc-content-shell :is(
    .jc-msbase-shell,
    .jc-pt-v288-shell,
    .jc-cjc-shell,
    .jc-commerce-v3,
    .jc-jobs-shell
  ){
    padding-top:8px!important;
    padding-bottom:12px!important;
  }

  /* Headers internos legacy: escala Tablet real, sin logos gigantes. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-header__row,
    .jc-cjc-header__row,
    .jc-cls265-header__row,
    .jc-cls269-header__row,
    .jc-cls270-header__row,
    .jc-jobs278-header__row,
    .jc-commerce-header-v281__row,
    .jc-ti290-header__row
  ){
    width:100%!important;
    max-width:768px!important;
    min-height:62px!important;
    height:auto!important;
    padding:3px 8px!important;
    gap:6px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-header__brand,
    .jc-cjc-header__logo,
    .jc-jobs278-header__brand,
    .jc-commerce-header-v281__brand
  ){
    min-height:0!important;
    height:56px!important;
    gap:6px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-header__logo-viewport,
    .jc-jobs278-header__logo-viewport,
    .jc-commerce-header-v281__logo-viewport
  ){
    width:112px!important;
    flex-basis:112px!important;
    height:52px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-header__logo-viewport img,
    .jc-jobs278-header__logo-viewport img,
    .jc-commerce-header-v281__logo-viewport img
  ){
    width:138px!important;
    height:138px!important;
    max-width:none!important;
    max-height:none!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-cjc-header__logo img,
    .jc-commerce-header-v281__logo img,
    .jc-jobs278-header__logo img,
    .jc-ti290-header__logo img
  ){
    max-width:138px!important;
    max-height:50px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-header__description,
    .jc-cjc-header__description,
    .jc-jobs278-header__description,
    .jc-commerce-header-v281__description
  ){
    max-width:150px!important;
    font-size:8.8px!important;
    line-height:1.22!important;
  }

  /* Colecciones de publicaciones: 2 columnas Tablet, no 4 columnas desktop. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-publication-tiles-v291 :is(
    .jc-msbase-grid,
    .jc-pt-v288-grid,
    .jc-cjc-grid,
    .jc-cls270-grid,
    .jc-commerce-v3-grid,
    .jc-jobs-shell__grid,
    .jc-router-live__grid,
    .jc-news-v3__latest-grid,
    .jc-inmuebles-v291-grid
  ){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-publication-tiles-v291 :is(
    .jc-msbase-card,
    .jc-cjc-card,
    .jc-cls270-card,
    .jc-commerce-v3-card,
    .jc-result-card,
    .jc-router-card,
    .jc-news-v3__card,
    .jc-msbase-card__link,
    .jc-cjc-card__link,
    .jc-cls270-card__link,
    .jc-commerce-v3-lead,
    .jc-inmuebles-v2-card--lead
  ){
    min-height:164px!important;
    height:164px!important;
    border-radius:13px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-publication-tiles-v291 :is(
    .jc-msbase-card__body,
    .jc-cjc-card__body,
    .jc-cls270-card__body,
    .jc-commerce-v3-card__body,
    .jc-result-content,
    .jc-router-card__copy,
    .jc-news-v3__card-body
  ){
    left:11px!important;
    right:11px!important;
    bottom:10px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-publication-tiles-v291 :is(
    .jc-msbase-card h2,
    .jc-cjc-card h2,
    .jc-cls270-card h2,
    .jc-commerce-v3-card h3,
    .jc-result-card h2,
    .jc-router-card h3,
    .jc-news-v3__card h3
  ){
    font-size:14px!important;
    line-height:1.12!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-publication-tiles-v291 :is(
    .jc-msbase-card__body > p,
    .jc-cjc-card__body > p,
    .jc-commerce-v3-card__excerpt,
    .jc-result-content > p,
    .jc-router-card__copy > p,
    .jc-news-v3__card-excerpt
  ){
    margin-top:4px!important;
    font-size:10px!important;
    line-height:1.25!important;
    -webkit-line-clamp:2!important;
  }

  /* Tarjetas legacy que no pasan por V291. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-card__media,
    .jc-cjc-card__media,
    .jc-cls270-card__media,
    .jc-commerce-v3-card__media,
    .jc-result-image,
    .jc-router-card__image
  ){
    min-height:0!important;
    height:118px!important;
    max-height:118px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-msbase-card__body,
    .jc-cjc-card__body,
    .jc-cls270-card__body,
    .jc-commerce-v3-card__body,
    .jc-result-content
  ){
    padding:8px 9px!important;
  }

  /* Comercios: hero y herramientas dejan de comportarse como desktop ancho. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-hero,
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-hero__content,
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-hero__identity{
    min-height:180px!important;
    max-height:180px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-hero__content{
    padding:12px 118px 12px 14px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-hero__logo{
    width:min(150px,48%)!important;
    max-height:58px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jc-commerce-v3-tools{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(.jc-commerce-v3-sofi,.jc-commerce-v3-categories,.jc-commerce-v3-near){
    min-height:0!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
  }

  /* LIA / asistentes: tamaño Tablet. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jcb-professionals-sofi-head,
    .jc-classified-sofi header
  ){
    padding:10px 11px!important;
    gap:8px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jcb-professionals-sofi-avatar,
    .jc-classified-sofi-avatar
  ){
    width:44px!important;
    height:44px!important;
    flex-basis:44px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .jcb-professionals-sofi-head h2{
    font-size:16px!important;
    line-height:1.08!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jcb-professionals-chat,
    .jc-classified-sofi-messages
  ){
    min-height:120px!important;
    max-height:210px!important;
    padding:9px 10px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jcb-professionals-suggestions,
    .jcb-professionals-form,
    .jc-classified-sofi form
  ){
    padding:7px 10px 10px!important;
  }

  /* Cuponeta: imagen principal y tarjetas más contenidas. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-cuponeta-v121__featured{
    max-width:600px!important;
    margin-bottom:10px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-cuponeta-v121__featured .sc-cuponeta-v121__media{
    aspect-ratio:auto!important;
    height:180px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-cuponeta-v121__card .sc-cuponeta-v121__media{
    aspect-ratio:auto!important;
    height:118px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-cuponeta-v121__grid{
    gap:9px!important;
  }

  /* Regiones: tarjetas 2 columnas y fotos tipo Tablet, no póster grande. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(.sc-region-grid-v111,.jc-regions-grid,.jc-regions-localities-v452__grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-region-card-v111__media{
    min-height:0!important;
    height:128px!important;
    aspect-ratio:auto!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) .sc-region-card-v111__title{
    min-height:40px!important;
    padding:6px 8px!important;
    font-size:12px!important;
  }

  /* Noticias: tarjetas/editorial compactas sin tocar ticker ni logo V203. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-news-v3__featured-media,
    .jc-news-v3__lead-media,
    .jc-news-v3__card-media,
    .jc-news-single-card__media
  ){
    max-height:190px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(.jc-news-v3__shell,.jc-noticias-shell-v2){
    gap:10px!important;
  }

  /* Imágenes genéricas de ficha/lead: limitar alturas heredadas de desktop. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-commerce-v3-lead__media,
    .jc-inmuebles-v2-card__media,
    .jc-jobs-lead__media,
    .jc-pt-v288-card__media
  ){
    height:118px!important;
    min-height:0!important;
    max-height:118px!important;
  }

  /* Huecos grandes: compactar cabeceras/secciones sin eliminar contenido. */
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-section-heading,
    .jc-commerce-v3-section-head,
    .jc-cjc-heading,
    .jc-results-header
  ){
    margin-top:8px!important;
    margin-bottom:8px!important;
    gap:10px!important;
  }
  body:not(.home):not(.wp-admin):not(.jc-ccj-route) :is(
    .jc-section-heading h1,
    .jc-section-heading h2,
    .jc-commerce-v3-section-head h2,
    .jc-cjc-heading h2
  ){
    font-size:18px!important;
    line-height:1.1!important;
  }
}
