/*
 * JujuyConectado Pro 2026 · v9.5.55.384 SAFE-CONSOLIDATED-CLEAN
 * Home consolidation authority.
 *
 * Replaces the historical V376–V383 post-News stack with one server-rendered block.
 * Mobile/PWA geometry intentionally preserves the approved V380/V381 behavior.
 */

/* The legacy right-side promo column no longer exists in front-page.php. */
html body.home .jc-home-portal-dashboard--news .jc-home-portal-main{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
}

/* No phantom vertical space after the consolidated News dashboard. */
html body.home .jc-home-portal-dashboard--news{
  margin-bottom:0!important;
  padding-bottom:8px!important;
}
html body.home .jc-home-portal-dashboard--news > .jc-container{
  margin-bottom:0!important;
  padding-bottom:0!important;
}

/* ----------------------------------------------------------
   POST-NOTICIAS · canonical V384
   Desktop: Zona Libre · CCJ · SyS · Publicá gratis
   ---------------------------------------------------------- */
html body.home .jc-home-postnews-v384{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.72fr) minmax(0,.86fr) minmax(0,.86fr) minmax(0,1.25fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  margin:10px 0 0!important;
  padding:0!important;
  overflow:visible!important;
}
html body.home .jc-home-postnews-v384__card{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  width:100%!important;
  height:136px!important;
  min-height:136px!important;
  margin:0!important;
  padding:4px!important;
  overflow:hidden!important;
  border:1px solid rgba(19,86,160,.14)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:inherit!important;
  text-decoration:none!important;
  box-shadow:0 7px 18px rgba(18,48,82,.085)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
html body.home .jc-home-postnews-v384__card img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  opacity:1!important;
  visibility:visible!important;
}
html body.home .jc-home-postnews-v384__card--zona img{width:96%!important;height:96%!important}
html body.home .jc-home-postnews-v384__card--ccj img{width:95%!important;height:95%!important}
html body.home .jc-home-postnews-v384__card--sys img{width:95%!important;height:95%!important}
html body.home .jc-home-postnews-v384__card--publish img{width:100%!important;height:100%!important;transform:scale(1.15)!important;transform-origin:center center!important}

@media(hover:hover) and (pointer:fine){
  html body.home .jc-home-postnews-v384__card:hover,
  html body.home .jc-home-postnews-v384__card:focus-visible{
    transform:scale(1.018)!important;
    box-shadow:0 10px 23px rgba(18,48,82,.13)!important;
  }
}

/* Desktop carousel guard. Mobile dimensions are deliberately untouched. */
@media(min-width:781px){
  html body.home .jc-home-slider,
  html body.home .jc-home-slider-track,
  html body.home .jc-home-slide{
    height:330px!important;
    min-height:330px!important;
    max-height:330px!important;
  }
}

/* Desktop spacing only. No negative margins and no JS geometry compensation. */
@media(min-width:701px){
  html body.home .jc-home-portal-dashboard--news + [data-home-block],
  html body.home .jc-home-portal-dashboard--news + section{
    margin-top:0;
  }
  html body.home .jc-home-categories.jc-section{
    margin-top:0!important;
    padding-top:12px!important;
  }
}

/* ----------------------------------------------------------
   APP/PWA + mobile web · approved layout, frozen
   Ticker -> Zona full -> CCJ/SyS 50/50 -> Publicá full
   ---------------------------------------------------------- */
@media(max-width:700px){
  html body.home .jc-home-portal-dashboard--news{padding-bottom:4px!important}
  html body.home .jc-home-postnews-v384{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    margin:7px 0 7px!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  html body.home .jc-home-postnews-v384__card{
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:5px!important;
    border-radius:12px!important;
    scroll-snap-align:none!important;
  }
  html body.home .jc-home-postnews-v384__card--zona{
    grid-column:1 / -1!important;
    aspect-ratio:3 / 1!important;
  }
  html body.home .jc-home-postnews-v384__card--ccj,
  html body.home .jc-home-postnews-v384__card--sys{
    grid-column:auto!important;
    aspect-ratio:1.18 / 1!important;
  }
  html body.home .jc-home-postnews-v384__card--publish{
    grid-column:1 / -1!important;
    aspect-ratio:2.5 / 1!important;
  }
  html body.home .jc-home-postnews-v384__card--ccj img{width:92%!important;height:92%!important}
  html body.home .jc-home-postnews-v384__card--sys img{width:95%!important;height:95%!important}
  html body.home .jc-home-postnews-v384__card--publish img{width:98%!important;height:95%!important}

  /* Cuponeta: first paint fix preserved from approved V376. */
  html body.home .jc-home-service-logo-v374--cuponeta{isolation:isolate!important}
  html body.home .jc-home-service-logo-v374--cuponeta > .jc-home-service-logo-v374__image{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:94%!important;
    max-height:82px!important;
    opacity:1!important;
    visibility:visible!important;
    position:relative!important;
    z-index:1!important;
    transform:translateZ(0)!important;
    backface-visibility:hidden!important;
    object-fit:contain!important;
    object-position:center!important;
  }
}
@media(max-width:430px){
  html body.home .jc-home-postnews-v384{gap:7px!important;margin-bottom:6px!important}
  html body.home .jc-home-postnews-v384__card{border-radius:11px!important;padding:4px!important}
  html body.home .jc-home-service-logo-v374--cuponeta > .jc-home-service-logo-v374__image{max-height:76px!important}
}

/* PWA-only Publicá gratis crop: exact approved V381 behavior. */
@media(max-width:700px){
  html.jc-pwa-standalone body.home .jc-home-postnews-v384__card--publish,
  html body.home.jc-pwa-standalone .jc-home-postnews-v384__card--publish{
    aspect-ratio:3.125 / 1!important;
    padding:0!important;
    overflow:hidden!important;
  }
  html.jc-pwa-standalone body.home .jc-home-postnews-v384__card--publish img,
  html body.home.jc-pwa-standalone .jc-home-postnews-v384__card--publish img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    transform:none!important;
  }
}

/* ----------------------------------------------------------
   Header equal-height fix preserved from V376 (Home only).
   ---------------------------------------------------------- */
.jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__info,
.jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__search-row{
  box-sizing:border-box!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  align-self:center!important;
}
.jc-hgv2 .jc-hgv2__utility-row .jc-hgv2__search-row{padding:0!important}
.jc-hgv2 .jc-hgv2__utility-row .jc-hgv2__search{
  display:flex!important;align-items:center!important;width:100%!important;height:100%!important;min-height:0!important
}
.jc-hgv2 .jc-hgv2__utility-row .jc-hgv2__search input{
  box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important
}
.jc-hgv2 .jc-hgv2__utility-row .jc-hgv2__sofi-submit{
  box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important;align-self:stretch!important
}
@media(max-width:900px){
  .jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__info,
  .jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__search-row{height:40px!important;min-height:40px!important;max-height:40px!important}
}
@media(max-width:560px){
  .jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__info,
  .jc-hgv2 .jc-hgv2__utility-row > .jc-hgv2__search-row{height:38px!important;min-height:38px!important;max-height:38px!important}
}

@media(prefers-reduced-motion:reduce){
  html body.home .jc-home-postnews-v384__card{transition:none!important}
}

/* ==========================================================
   v9.5.55.388 · Post-News optical correction
   Zona Libre: banner direct, no outer card.
   Publicá gratis: vertical crop only, never lateral scale/cut.
   ========================================================== */
html body.home .jc-home-postnews-v384__card--zona{
  align-self:center!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:2048 / 682!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.home .jc-home-postnews-v384__card--zona img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  border-radius:0!important;
}
html body.home .jc-home-postnews-v384__card--publish{
  align-self:center!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:2.94 / 1!important;
  overflow:hidden!important;
  padding:4px!important;
}
html body.home .jc-home-postnews-v384__card--publish img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}

@media(max-width:700px){
  html body.home .jc-home-postnews-v384__card--zona{
    grid-column:1 / -1!important;
    aspect-ratio:2048 / 682!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body.home .jc-home-postnews-v384__card--zona img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    transform:none!important;
  }
  /* Keep mobile card geometry approved; only undo V387 lateral scale. */
  html body.home .jc-home-postnews-v384__card--publish img{
    transform:none!important;
  }
}

/* PWA keeps its already-approved vertical crop. */
@media(max-width:700px){
  html.jc-pwa-standalone body.home .jc-home-postnews-v384__card--publish,
  html body.home.jc-pwa-standalone .jc-home-postnews-v384__card--publish{
    aspect-ratio:3.125 / 1!important;
    padding:0!important;
  }
  html.jc-pwa-standalone body.home .jc-home-postnews-v384__card--publish img,
  html body.home.jc-pwa-standalone .jc-home-postnews-v384__card--publish img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    transform:none!important;
  }
}
