/*
 * JujuyConectado 9.5.55.148 — UX normalization.
 * Objetivo: ritmo vertical consistente, continuidad responsive y fichas compactas
 * sin alterar contenido, identidad ni lógica funcional.
 */

/* HOME — una sola escala de separación entre bloques. */
body.home .jc-home-builder-layout{
  --jc-home-gap-half:14px;
  --jc-home-gap-half-tight:10px;
}
body.home .jc-home-builder-layout>[data-home-block]{
  margin-top:0!important;
  margin-bottom:0!important;
}
body.home .jc-home-builder-layout>.jc-home-portal-dashboard{
  padding-top:var(--jc-home-gap-half)!important;
  padding-bottom:var(--jc-home-gap-half)!important;
}
body.home .jc-home-builder-layout>.jc-home-portal-dashboard--connections{
  padding-bottom:var(--jc-home-gap-half-tight)!important;
}
body.home .jc-home-builder-layout>.jc-home-portal-dashboard--news{
  padding-top:var(--jc-home-gap-half-tight)!important;
}
body.home .jc-home-builder-layout>.jc-home-localities,
body.home .jc-home-builder-layout>.jc-section{
  margin:0!important;
  padding-top:var(--jc-home-gap-half)!important;
  padding-bottom:var(--jc-home-gap-half)!important;
}
body.home .jc-home-builder-layout>.jc-home-financial-banner{
  margin:0!important;
  padding:var(--jc-home-gap-half-tight) 0!important;
}
body.home .jc-home-builder-layout>.jc-home-cta{
  margin:0!important;
  padding:var(--jc-home-gap-half) 0!important;
}
body.home .jc-home-builder-layout .jc-section-heading,
body.home .jc-home-builder-layout .jc-home-localities-head{
  margin-bottom:14px!important;
}
body.home .jc-home-fixed-ad--p02,
body.home .jc-home-fixed-ad--p03,
body.home .jc-home-fixed-ad--p04{
  margin-top:4px!important;
  margin-bottom:4px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
body.home .jc-home-ad-grid-block--financial{
  padding:8px 0 12px!important;
}

/* MICROSITIOS — evita el salto 900px -> 901px de ~230px a ~400px. */
@media (min-width:901px){
  .jc-microsites-v2-shell{
    --jc-v2-lead-height:clamp(240px,27vw,330px)!important;
    padding-bottom:36px!important;
  }
  .jc-commerce-shell,
  .jc-classifieds-shell,
  .jc-jobs-shell,
  .jc-tramites-info-shell,
  .jc-info-util-dual-shell{
    --jc-lead-height:clamp(240px,27vw,330px)!important;
  }
  .jc-commerce-shell .jc-microsite-banner-v2,
  .jc-commerce-shell .jc-commerce-card--lead,
  .jc-classifieds-shell .jc-microsite-banner-v2,
  .jc-classifieds-shell .jc-classifieds-lead-slot{
    height:clamp(240px,27vw,330px)!important;
  }
  .jc-automotores-shell{--jc-auto-lead-height:clamp(240px,27vw,330px)!important}
  .jc-bares-shell{--jc-bares-lead-height:clamp(240px,27vw,330px)!important}
  .jc-cuponeta-shell .jc-cuponeta-shell__layout{--jc-lead-height:clamp(240px,27vw,330px)!important}
}

/* PUBLICACIONES — misma cadencia de columnas/tarjetas y menos área inútil sin foto. */
.jc-listing-layout{gap:16px!important}
.jc-listing-main{gap:12px!important}
.jc-listing-header,
.jc-listing-gallery-card,
.jc-listing-section,
.jc-listing-author,
.jc-contact-card{border-radius:15px!important}
.jc-gallery-main-wrap.jc-gallery-generic{
  aspect-ratio:16/7!important;
  min-height:0!important;
}
.jc-gallery-generic .jc-publication-fallback-card{
  min-height:0!important;
  padding:20px!important;
}

/* Ficha Comercio: mismo ritmo vertical que las demás fichas, sin cambiar su identidad. */
.jc-commerce-single-v2{padding-top:20px!important;padding-bottom:44px!important}
.jc-commerce-single-v2 .jc-commerce-heading{margin-bottom:14px!important}
.jc-commerce-single-v2 .jc-commerce-v2-grid{gap:16px!important}
.jc-commerce-single-v2 .jc-commerce-information{border-radius:15px!important}

@media (max-width:900px){
  body.home .jc-home-builder-layout{
    --jc-home-gap-half:10px;
    --jc-home-gap-half-tight:7px;
  }
  body.home .jc-home-builder-layout .jc-section-heading,
  body.home .jc-home-builder-layout .jc-home-localities-head{margin-bottom:10px!important}
  body.home .jc-home-fixed-ad--p02,
  body.home .jc-home-fixed-ad--p03,
  body.home .jc-home-fixed-ad--p04{
    margin-top:3px!important;
    margin-bottom:3px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
  }
  body.home .jc-home-ad-grid-block--financial{padding:6px 0 9px!important}
}

@media (max-width:620px){
  .jc-gallery-main-wrap.jc-gallery-generic{aspect-ratio:16/9!important}
  .jc-gallery-generic .jc-publication-fallback-card{padding:14px!important}
  .jc-commerce-single-v2{padding-top:12px!important;padding-bottom:34px!important}
  .jc-commerce-single-v2 .jc-commerce-v2-grid{gap:12px!important}
}
