/**
 * JujuyConectado Pro 2026 · 9.5.55.663
 * HOME MASTER APP-FIRST V1
 * APP móvil = autoridad visual. APP Windows = derivación directa en frame 768.
 * Header global, quicknav y footer quedan fuera de alcance.
 */

:root{
  --jc-hm663-blue:#0b3f86;
  --jc-hm663-blue-2:#145fb9;
  --jc-hm663-ink:#102e5b;
  --jc-hm663-coral:#f25a3c;
  --jc-hm663-surface:#fff;
  --jc-hm663-warm:#f7f5f1;
  --jc-hm663-line:#e5e9ef;
  --jc-hm663-muted:#647084;
  --jc-hm663-radius:14px;
  --jc-hm663-shadow:0 5px 16px rgba(16,46,91,.07);
}

html body.home .jc-home-builder-layout{
  background:var(--jc-hm663-warm)!important;
  overflow-x:hidden!important;
}
html body.home .jc-home-builder-layout > [data-home-block]{
  min-width:0!important;
}

/* ------------------------------------------------------------------
 * 1. Carrusel: misma navegación y motor, sólo geometría más compacta.
 * ------------------------------------------------------------------ */
html body.home .jc-premium-v515{
  margin-top:6px!important;
  margin-bottom:10px!important;
}
@media(max-width:520px){
  html body.home .jc-premium-v515__stage{
    height:46vw!important;
    min-height:158px!important;
    max-height:184px!important;
  }
  html body.home .jc-premium-v515__item:nth-child(2){
    width:calc(100vw - 30px)!important;
    max-width:342px!important;
    border-radius:13px!important;
  }
  html body.home .jc-premium-v515__item:nth-child(1){left:-18%!important}
  html body.home .jc-premium-v515__item:nth-child(3){left:89%!important}
  html body.home .jc-premium-v515__item:nth-child(4){left:103%!important}
  html body.home .jc-premium-v515__item:nth-child(5){left:112%!important}
}
@media(min-width:521px) and (max-width:900px){
  html body.home .jc-premium-v515__stage{height:258px!important}
  html body.home .jc-premium-v515__item:nth-child(2){width:70%!important}
}
@media(min-width:901px){
  html body.home .jc-premium-v515{width:744px!important;max-width:744px!important}
  html body.home .jc-premium-v515__stage{height:252px!important}
  html body.home .jc-premium-v515__item:nth-child(2){width:68%!important}
}

/* ------------------------------------------------------------------
 * 2. Ritmo y encabezados compartidos.
 * ------------------------------------------------------------------ */
html body.home .jc-home-master-v663__section-head,
html body.home .jc-home-news-v4-head,
html body.home .jc-home-section-heading-v565{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 9px!important;
  padding:0!important;
  min-height:28px!important;
}
html body.home .jc-home-master-v663__section-head h2,
html body.home .jc-home-news-v4-head h2,
html body.home .jc-home-section-title-v565{
  margin:0!important;
  color:var(--jc-hm663-ink)!important;
  font-size:20px!important;
  line-height:1.08!important;
  letter-spacing:-.35px!important;
  font-weight:850!important;
}
html body.home .jc-home-master-v663__section-head a,
html body.home .jc-home-news-v4-head a{
  color:var(--jc-hm663-blue)!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:750!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* ------------------------------------------------------------------
 * 3. Conexiones: nueva card compacta, 3×2 en APP y Windows.
 * ------------------------------------------------------------------ */
html body.home .jc-home-connections-v539{
  padding:8px 0 12px!important;
  background:transparent!important;
}
html body.home .jc-home-connections-v539 .jc-home-connections-inner-v539{
  width:calc(100% - 24px)!important;
  max-width:744px!important;
  margin-inline:auto!important;
}
html body.home .jc-home-connections-v539 .jc-home-connections-heading-v539{
  width:100%!important;
  margin:0 0 9px!important;
}
html body.home .jc-home-connections-v539 .jc-home-connections-heading-v539::after{display:none!important}
html body.home .jc-home-connections-v539 .jc-home-connections-grid-v539{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
html body.home .jc-home-connections-v539 .jc-home-connection-card-v539{
  position:relative!important;
  display:grid!important;
  grid-template-rows:60px minmax(54px,auto)!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  aspect-ratio:auto!important;
  min-height:124px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--jc-hm663-line)!important;
  border-radius:13px!important;
  background:var(--jc-hm663-surface)!important;
  box-shadow:var(--jc-hm663-shadow)!important;
  color:var(--jc-hm663-ink)!important;
}
html body.home .jc-home-connections-v539 .jc-home-connection-media-v539{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:60px!important;
  padding:5px 7px 3px!important;
  background:linear-gradient(180deg,#f4f8fd 0%,#fff 100%)!important;
  overflow:hidden!important;
}
html body.home .jc-home-connections-v539 .jc-home-connection-media-v539 img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
html body.home .jc-home-connection-copy-v663{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:0!important;
  padding:7px 24px 8px 8px!important;
  text-align:left!important;
  background:#fff!important;
}
html body.home .jc-home-connection-copy-v663 strong{
  display:-webkit-box!important;
  margin:0!important;
  overflow:hidden!important;
  color:var(--jc-hm663-ink)!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1.06!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}
html body.home .jc-home-connection-copy-v663 small{
  display:-webkit-box!important;
  overflow:hidden!important;
  color:var(--jc-hm663-muted)!important;
  font-size:9.8px!important;
  font-weight:550!important;
  line-height:1.16!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}
html body.home .jc-home-connection-arrow-v663{
  position:absolute!important;
  right:6px!important;
  bottom:7px!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  border-radius:999px!important;
  background:#eef4fb!important;
  color:var(--jc-hm663-blue)!important;
  font-size:13px!important;
  font-weight:900!important;
}
html body.home .jc-home-connection-card-v663--suerte .jc-home-connection-arrow-v663,
html body.home .jc-home-connection-card-v663--comunidad .jc-home-connection-arrow-v663{background:#fff1e9!important;color:#e56726!important}
html body.home .jc-home-connection-card-v663--solos .jc-home-connection-arrow-v663{background:#fff0f3!important;color:#c83d62!important}
html body.home .jc-home-connection-card-v663--cuponeta .jc-home-connection-arrow-v663{background:#eef4fb!important;color:#0d5aaa!important}
html body.home .jc-home-connection-card-v539:focus-visible{
  outline:3px solid rgba(20,95,185,.26)!important;
  outline-offset:2px!important;
}

/* ------------------------------------------------------------------
 * 4. Ahora en Jujuy: rail editorial más bajo y rápido de escanear.
 * ------------------------------------------------------------------ */
html body.home .jc-home-portal-dashboard--news{
  padding:7px 0 10px!important;
  background:transparent!important;
}
html body.home .jc-home-portal-dashboard--news > .jc-container{
  width:calc(100% - 24px)!important;
  max-width:744px!important;
}
html body.home .jc-home-news-v4-rail{
  gap:8px!important;
  height:136px!important;
  padding-bottom:2px!important;
}
html body.home .jc-home-news-v4-card{
  flex:0 0 154px!important;
  width:154px!important;
  min-width:154px!important;
  height:134px!important;
  border-radius:11px!important;
  box-shadow:0 4px 12px rgba(16,46,91,.055)!important;
}
html body.home .jc-home-news-v4-link{
  grid-template-rows:78px 56px!important;
  height:134px!important;
}
html body.home .jc-home-news-v4-media{
  width:154px!important;
  height:78px!important;
  border-radius:11px 11px 0 0!important;
}
html body.home .jc-home-news-v4-copy{
  height:56px!important;
  min-height:56px!important;
  padding:6px 7px!important;
}
html body.home .jc-home-news-v4-title{
  font-size:11.5px!important;
  line-height:1.12!important;
}
html body.home .jc-home-news-v4-meta{font-size:9px!important}
html body.home .jc-home-breaking-below-news{margin-top:7px!important}

/* ------------------------------------------------------------------
 * 5. Promociones: conserva administración y video, reduce ruido vertical.
 * ------------------------------------------------------------------ */
html body.home .jc-home-promotions-v607{
  padding:8px 0 11px!important;
  background:transparent!important;
}
html body.home .jc-home-promotions-v607 > .jc-container{
  width:calc(100% - 24px)!important;
  max-width:744px!important;
}
html body.home .jc-home-promotions-v607__banner{
  margin:0 auto 6px!important;
  justify-content:flex-start!important;
}
html body.home .jc-home-promotions-v607__banner img{
  width:auto!important;
  max-width:100%!important;
  max-height:46px!important;
  margin:0!important;
}
html body.home .jc-home-promotions-v607__player{
  border-radius:13px!important;
  box-shadow:var(--jc-hm663-shadow)!important;
}

/* ------------------------------------------------------------------
 * 6. Regiones: retira el hero redundante del Home y usa un rail 4-up.
 *    /regiones/ conserva su identidad completa.
 * ------------------------------------------------------------------ */
html body.home .jc-home-regions-v523{
  padding:7px 0 12px!important;
  background:transparent!important;
}
html body.home .jc-home-regions-v523 > .jc-container{
  width:calc(100% - 24px)!important;
  max-width:744px!important;
}
html body.home .jc-home-regions-head-v663{margin-bottom:8px!important}
html body.home .jc-home-regions-v523 .jc-home-regions-stage-v523{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  background:none!important;
  overflow:visible!important;
}
html body.home .jc-home-regions-v523 .jc-home-regions-hero-v523{display:none!important}
html body.home .jc-home-regions-v523 .jc-home-regions-grid-v523{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
  overflow:visible!important;
}
html body.home .jc-home-regions-v523 .jc-region-cover{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:76px!important;
  height:76px!important;
  border:0!important;
  border-radius:11px!important;
  overflow:hidden!important;
  background-position:center!important;
  background-size:cover!important;
  box-shadow:0 4px 12px rgba(16,46,91,.10)!important;
}
html body.home .jc-home-regions-v523 .jc-region-cover::after{
  content:""!important;
  position:absolute!important;
  inset:42% 0 0!important;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.68))!important;
  pointer-events:none!important;
}
html body.home .jc-home-regions-v523 .jc-region-cover .jc-locality-cover-content{
  position:absolute!important;
  z-index:2!important;
  left:7px!important;
  right:7px!important;
  bottom:6px!important;
  padding:0!important;
  background:transparent!important;
  text-align:left!important;
}
html body.home .jc-home-regions-v523 .jc-region-cover .jc-locality-cover-content strong{
  color:#fff!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1!important;
  text-align:left!important;
  text-shadow:0 1px 3px rgba(0,0,0,.45)!important;
}
html body.home .jc-home-regions-v523 .jc-home-regions-cta-v523{display:none!important}

/* ------------------------------------------------------------------
 * 7. Especiales / Explorar: mismo ADN, sin tocar navegación global.
 * ------------------------------------------------------------------ */
html body.home .jc-home-specials-v553,
html body.home .jc-home-explorar-v561{
  background:transparent!important;
}
html body.home .jc-home-specials-v553 > .jc-container,
html body.home .jc-home-explorar-v561 > .jc-container{
  width:calc(100% - 24px)!important;
  max-width:744px!important;
}
html body.home .jc-home-postnews-v384__card,
html body.home .jc-home-explorar-v561__card{
  border-radius:13px!important;
  box-shadow:0 4px 12px rgba(16,46,91,.055)!important;
}
html body.home .jc-home-explorar-v561__tab{min-height:44px!important}

/* Rubros histórico y Noticias clásico permanecen en código como rollback,
 * pero no duplican el Home Master público. */
html body.home .jc-home-rubros-v523,
html body.home .jc-home-news-legacy{display:none!important}

/* ------------------------------------------------------------------
 * 8. APP Windows: el mismo Home dentro del contrato 768.
 * ------------------------------------------------------------------ */
@media(min-width:901px){
  html body.home .jc-home-connections-v539 .jc-home-connections-inner-v539,
  html body.home .jc-home-portal-dashboard--news > .jc-container,
  html body.home .jc-home-promotions-v607 > .jc-container,
  html body.home .jc-home-regions-v523 > .jc-container,
  html body.home .jc-home-specials-v553 > .jc-container,
  html body.home .jc-home-explorar-v561 > .jc-container{
    width:704px!important;
    max-width:704px!important;
    margin-inline:auto!important;
  }
  html body.home .jc-home-connections-v539 .jc-home-connection-card-v539{
    grid-template-rows:78px minmax(62px,auto)!important;
    min-height:145px!important;
  }
  html body.home .jc-home-connections-v539 .jc-home-connection-media-v539{height:78px!important;padding:7px 12px 4px!important}
  html body.home .jc-home-connection-copy-v663 strong{font-size:13px!important}
  html body.home .jc-home-connection-copy-v663 small{font-size:11px!important}
  html body.home .jc-home-news-v4-card{flex-basis:164px!important;width:164px!important;min-width:164px!important}
  html body.home .jc-home-news-v4-media{width:164px!important}
  html body.home .jc-home-regions-v523 .jc-region-cover{height:96px!important;min-height:96px!important}
  html body.home .jc-home-regions-v523 .jc-region-cover .jc-locality-cover-content strong{font-size:13px!important}
}

@media(max-width:380px){
  html body.home .jc-home-connections-v539 .jc-home-connections-grid-v539{gap:6px!important}
  html body.home .jc-home-connections-v539 .jc-home-connection-card-v539{grid-template-rows:56px minmax(54px,auto)!important;min-height:118px!important}
  html body.home .jc-home-connections-v539 .jc-home-connection-media-v539{height:56px!important}
  html body.home .jc-home-connection-copy-v663{padding:6px 22px 7px 6px!important}
  html body.home .jc-home-connection-copy-v663 strong{font-size:10.8px!important}
  html body.home .jc-home-connection-copy-v663 small{font-size:9.2px!important}
  html body.home .jc-home-regions-v523 .jc-region-cover{height:70px!important;min-height:70px!important}
}

@media(prefers-reduced-motion:reduce){
  html body.home .jc-home-connection-card-v539,
  html body.home .jc-home-news-v4-card{transition:none!important}
}
