/* JujuyConectado v9.5.55.365 · Avatar System Refresh V1
   JUCO 3D + SOFI 3D global. Se carga al final para neutralizar estilos históricos
   que recortaban los avatares en círculos o usaban object-fit:cover. */

/* La imagen oficial nunca se recorta, deforma ni escala por encima de su caja. */
img[src*="/assets/images/sofi-3d-v365.png"],
img[src*="/assets/images/juco-3d-v387-soporte.png"]{
  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;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  transform-origin:center!important;
}

/* Contenedores reutilizados por Sofi y/o Juco. */
.jchome-assistant-avatar,
.jc-shell-assistant-btn__avatar,
.jc-assistant__avatar,
.jc-juco__avatar,
.jcb-professionals-sofi-avatar,
.jcb-gestiones-sofi-avatar,
.jcb-civic-sofi-avatar,
.jc-auto3-sofi__avatar,
.jc-tramites-avatar,
.jc-publish-juco-prompt__avatar{
  border:0!important;
  border-radius:0!important;
  background-color:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* El helper de publicación usa Juco como background-image. */
.jc-publish-juco-prompt__avatar{
  background-image:url("../images/juco-3d-v387-soporte.png")!important;
  background-position:center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
}

/* Botones/headers que históricamente forzaban círculo. */
.jc-hgv2__sofi-submit,
body.jc-ccj-route .jc-ccj-v4-header__juco,
body.jc-ccj-route .jc-ccj5-header__juco,
.jc-solos3-header__juco,
.jc-community-header__juco .jc-juco__launcher,
.jc-solos-header__assistant-mobile .jc-juco__launcher{
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.jc-hgv2__sofi-submit img,
body.jc-ccj-route .jc-ccj-v4-header__juco img,
body.jc-ccj-route .jc-ccj5-header__juco img,
.jc-solos3-header__juco img{
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Eliminar puntos de estado circulares incrustados sobre el avatar de Juco. */
.jc-juco__launcher .jc-juco__avatar::after,
.jc-assistant__launcher .jc-assistant__avatar::after{
  display:none!important;
  content:none!important;
}

/* Sofi de Clasificados no tiene wrapper propio: limpiar la imagen directamente. */
.jc-classified-sofi>header img[src*="sofi-3d-v365.png"]{
  border-radius:0!important;
  object-fit:contain!important;
  object-position:center!important;
  box-shadow:none!important;
  transform:none!important;
}

/* El header global debe conservar su alto actual, solo deja de recortar a Sofi. */
.jc-hgv2__sofi-submit{
  padding:1px!important;
}

/* Mini app / móvil: mantener alturas táctiles pero mostrar los avatares completos. */
@media(max-width:760px){
  .jchome-assistant-avatar,
  .jc-shell-assistant-btn__avatar,
  .jc-assistant__avatar,
  .jc-juco__avatar,
  .jcb-professionals-sofi-avatar,
  .jcb-gestiones-sofi-avatar,
  .jcb-civic-sofi-avatar,
  .jc-auto3-sofi__avatar,
  .jc-tramites-avatar{
    overflow:visible!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .jc-solos-header__assistant-mobile .jc-juco__launcher,
  .jc-community-header__juco .jc-juco__launcher{
    border-radius:0!important;
    overflow:visible!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}

/* =========================================================
   v9.5.55.391 · MICROSOFT? NO: MICROSITE SOFI COMPACT STANDARD
   Normaliza solamente Sofi dentro de micrositios. No toca el
   Sofi del header global, Home ni el asistente flotante.
   ========================================================= */
body:not(.home) .jcb-professionals-sofi,
body:not(.home) .jcb-gestiones-sofi,
body:not(.home) .jcb-civic-sofi,
body:not(.home) .jc-auto3-sofi,
body:not(.home) .jc-tramites-sofi,
body:not(.home) .jc-classified-sofi{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}

body:not(.home) .jcb-professionals-sofi-avatar,
body:not(.home) .jcb-gestiones-sofi-avatar,
body:not(.home) .jcb-civic-sofi-avatar,
body:not(.home) .jc-auto3-sofi__avatar,
body:not(.home) .jc-tramites-avatar{
  flex:0 0 56px!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
}

body:not(.home) .jc-classified-sofi>header img[src*="sofi-3d-v365.png"]{
  flex:0 0 56px!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
}

body:not(.home) .jcb-professionals-sofi-head,
body:not(.home) .jcb-gestiones-sofi-head,
body:not(.home) .jcb-civic-sofi-head,
body:not(.home) .jc-auto3-sofi__head,
body:not(.home) .jc-tramites-head{
  gap:10px!important;
  padding:13px 14px!important;
}

body:not(.home) .jc-classified-sofi>header{
  gap:10px!important;
  margin-bottom:10px!important;
}
body:not(.home) .jc-cjc-sofi .jc-classified-sofi>header{
  padding:12px 13px!important;
}

body:not(.home) .jcb-professionals-sofi-head h1,
body:not(.home) .jcb-professionals-sofi-head h2,
body:not(.home) .jcb-gestiones-sofi-head h1,
body:not(.home) .jcb-civic-sofi-head h1,
body:not(.home) .jc-auto3-sofi__head h2,
body:not(.home) .jc-tramites-head h2,
body:not(.home) .jc-classified-sofi>header h2{
  font-size:20px!important;
  line-height:1.12!important;
}

body:not(.home) .jcb-professionals-sofi-head p,
body:not(.home) .jcb-gestiones-sofi-head p,
body:not(.home) .jcb-civic-sofi-head p,
body:not(.home) .jc-auto3-sofi__head p,
body:not(.home) .jc-tramites-head p,
body:not(.home) .jc-classified-sofi>header p{
  font-size:10.5px!important;
  line-height:1.4!important;
}

body:not(.home) .jcb-professionals-chat,
body:not(.home) .jcb-gestiones-chat,
body:not(.home) .jcb-civic-sofi-chat,
body:not(.home) .jc-auto3-chat,
body:not(.home) .jc-tramites-chat{
  padding-top:10px!important;
  padding-bottom:8px!important;
}

body:not(.home) .jc-classified-sofi-messages{
  min-height:0!important;
  margin:8px 0!important;
}
body:not(.home) .jc-cjc-sofi .jc-classified-sofi-messages{
  min-height:0!important;
}

@media(max-width:760px){
  body:not(.home) .jcb-professionals-sofi-avatar,
  body:not(.home) .jcb-gestiones-sofi-avatar,
  body:not(.home) .jcb-civic-sofi-avatar,
  body:not(.home) .jc-auto3-sofi__avatar,
  body:not(.home) .jc-tramites-avatar{
    flex-basis:46px!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
  }

  body:not(.home) .jc-classified-sofi>header img[src*="sofi-3d-v365.png"]{
    flex-basis:46px!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
  }

  body:not(.home) .jcb-professionals-sofi-head,
  body:not(.home) .jcb-gestiones-sofi-head,
  body:not(.home) .jcb-civic-sofi-head,
  body:not(.home) .jc-auto3-sofi__head,
  body:not(.home) .jc-tramites-head{
    gap:8px!important;
    padding:10px 11px!important;
  }
  body:not(.home) .jc-classified-sofi>header{
    gap:8px!important;
    margin-bottom:8px!important;
  }
  body:not(.home) .jc-cjc-sofi .jc-classified-sofi>header{
    padding:10px 11px!important;
  }

  body:not(.home) .jcb-professionals-sofi-head h1,
  body:not(.home) .jcb-professionals-sofi-head h2,
  body:not(.home) .jcb-gestiones-sofi-head h1,
  body:not(.home) .jcb-civic-sofi-head h1,
  body:not(.home) .jc-auto3-sofi__head h2,
  body:not(.home) .jc-tramites-head h2,
  body:not(.home) .jc-classified-sofi>header h2{
    font-size:17px!important;
    line-height:1.1!important;
  }

  body:not(.home) .jcb-professionals-sofi-head p,
  body:not(.home) .jcb-gestiones-sofi-head p,
  body:not(.home) .jcb-civic-sofi-head p,
  body:not(.home) .jc-auto3-sofi__head p,
  body:not(.home) .jc-tramites-head p,
  body:not(.home) .jc-classified-sofi>header p{
    font-size:9px!important;
    line-height:1.32!important;
  }

  body:not(.home) .jcb-professionals-chat,
  body:not(.home) .jcb-gestiones-chat,
  body:not(.home) .jcb-civic-sofi-chat,
  body:not(.home) .jc-auto3-chat,
  body:not(.home) .jc-tramites-chat{
    padding-top:8px!important;
    padding-bottom:6px!important;
  }

  body:not(.home) .jc-classified-sofi{
    margin-top:0!important;
    margin-bottom:12px!important;
    padding:11px!important;
  }
  body:not(.home) .jc-cjc-sofi .jc-classified-sofi{
    padding:0!important;
  }
  body:not(.home) .jc-classified-sofi-messages{
    min-height:0!important;
    margin:6px 0!important;
  }
}

/* =========================================================
   v9.5.55.466 · PUBLIC 1024 SYMMETRY V1
   Contrato público único: contenido estructural <= 1024px.
   Mantiene fondos/full-bleed, modales, reproductores y CJRD fuera del límite.
   Cargado al final vía Avatar System (priority 99999 + filemtime).
   ========================================================= */
:root{
  --jc-public-width:1024px;
  --jc-public-gutter-desktop:16px;
  --jc-public-gutter-mobile:8px;
  --jc-container:1024px;
}

/* Eje maestro global: header/footer/home que consumen .jc-container quedan alineados a 1024. */
.jc-container{
  max-width:var(--jc-public-width)!important;
  margin-inline:auto!important;
}

/* Micrositios, listados y shells públicos históricos. */
.jc-microsites-v2-shell,
.jc-commerce-shell,
.jc-commerce-v3,
.jc-commerce-v3--masthead,
.jc-classified-shell,
.jc-cls269-shell,
.jc-cls270-shell,
.jc-jobs-shell,
.jc-automotores-shell,
.jc-automotores-first-row,
.jc-automotores-content,
.jc-bares-shell,
.jc-bares-first-row,
.jc-bares-content,
.jc-cuponeta-shell,
.jc-tramites-info-shell,
.jc-info-util-dual-shell__header,
.jc-tramites-shell,
.jc-msbase-header__row,
.jc-msbase-shell,
.jc-cls265-header__row,
.jc-cls269-header__row,
.jc-cls270-header__row,
.jc-context-strip-v439__inner,
.jc-ccj5-shell,
body.jc-ccj-route .jc-ccj5-header__row,
.jc-luck-app--pro,
body.jcp-solos360-home .jcp-solos360-shell,
body.jcp-solos-entry-public-v349 .jc-solos3-header__entry-row,
body.jcp-solos-entry-public-v349 .jcp-solos-entry-v349__grid,
.jc-aprende-shell,
.jc-aprende-course-body-grid{
  max-width:var(--jc-public-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Fichas individuales: misma línea óptica que micrositios y header. */
.jc-pd275-active .jc-pd275-header,
.jc-pd275-active .jc-listing-page>.jc-container,
.jc-pd275-active .jc-commerce-shell{
  width:min(calc(100% - 32px),var(--jc-public-width))!important;
  max-width:var(--jc-public-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Escritorio/tablet horizontal: 16px de respiración lateral cuando no entra el ancho completo. */
@media(min-width:761px){
  .jc-container,
  .jc-microsites-v2-shell,
  .jc-commerce-shell,
  .jc-commerce-v3,
  .jc-commerce-v3--masthead,
  .jc-classified-shell,
  .jc-cls269-shell,
  .jc-cls270-shell,
  .jc-jobs-shell,
  .jc-automotores-shell,
  .jc-automotores-first-row,
  .jc-automotores-content,
  .jc-bares-shell,
  .jc-bares-first-row,
  .jc-bares-content,
  .jc-cuponeta-shell,
  .jc-tramites-info-shell,
  .jc-info-util-dual-shell__header,
  .jc-tramites-shell,
  .jc-msbase-header__row,
  .jc-msbase-shell,
  .jc-cls265-header__row,
  .jc-cls269-header__row,
  .jc-cls270-header__row,
  .jc-context-strip-v439__inner,
  .jc-ccj5-shell,
  body.jc-ccj-route .jc-ccj5-header__row,
  .jc-luck-app--pro,
  body.jcp-solos360-home .jcp-solos360-shell,
  body.jcp-solos-entry-public-v349 .jc-solos3-header__entry-row,
  body.jcp-solos-entry-public-v349 .jcp-solos-entry-v349__grid,
  .jc-aprende-shell,
  .jc-aprende-course-body-grid{
    width:min(calc(100% - 32px),var(--jc-public-width))!important;
  }

  /* Ritmo vertical común en shells de catálogo: evita aire residual de generaciones anteriores. */
  .jc-microsites-v2-shell,
  .jc-commerce-shell,
  .jc-classified-shell,
  .jc-jobs-shell,
  .jc-automotores-shell,
  .jc-bares-shell,
  .jc-cuponeta-shell{
    padding-top:12px!important;
    padding-bottom:28px!important;
  }
}

/* Móvil/APP: 8px por lado, sin cambiar columnas/carruseles propios de cada módulo. */
@media(max-width:760px){
  .jc-container,
  .jc-microsites-v2-shell,
  .jc-commerce-shell,
  .jc-commerce-v3,
  .jc-commerce-v3--masthead,
  .jc-classified-shell,
  .jc-cls269-shell,
  .jc-cls270-shell,
  .jc-jobs-shell,
  .jc-automotores-shell,
  .jc-automotores-first-row,
  .jc-automotores-content,
  .jc-bares-shell,
  .jc-bares-first-row,
  .jc-bares-content,
  .jc-cuponeta-shell,
  .jc-tramites-info-shell,
  .jc-info-util-dual-shell__header,
  .jc-tramites-shell,
  .jc-msbase-header__row,
  .jc-msbase-shell,
  .jc-cls265-header__row,
  .jc-cls269-header__row,
  .jc-cls270-header__row,
  .jc-ccj5-shell,
  body.jc-ccj-route .jc-ccj5-header__row,
  .jc-luck-app--pro,
  body.jcp-solos360-home .jcp-solos360-shell,
  body.jcp-solos-entry-public-v349 .jc-solos3-header__entry-row,
  body.jcp-solos-entry-public-v349 .jcp-solos-entry-v349__grid,
  .jc-aprende-shell,
  .jc-aprende-course-body-grid{
    width:min(calc(100% - 16px),var(--jc-public-width))!important;
    max-width:var(--jc-public-width)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .jc-context-strip-v439__inner{
    width:100%!important;
    max-width:var(--jc-public-width)!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .jc-pd275-active .jc-pd275-header,
  .jc-pd275-active .jc-listing-page>.jc-container,
  .jc-pd275-active .jc-commerce-shell{
    width:min(calc(100% - 16px),var(--jc-public-width))!important;
  }

  .jc-microsites-v2-shell,
  .jc-commerce-shell,
  .jc-classified-shell,
  .jc-jobs-shell,
  .jc-automotores-shell,
  .jc-bares-shell,
  .jc-cuponeta-shell{
    padding-top:8px!important;
    padding-bottom:18px!important;
  }
}

/* Solos y Solas tenía max-width !important en V362/V364. Se neutraliza explícitamente. */
body.jcp-solos360-home .jcp-solos360-shell{
  max-width:var(--jc-public-width)!important;
}

/* Cuponeta y Suerte tenían contratos 1180/1320 directos. */
.jc-cuponeta-shell,
.jc-luck-app--pro{
  max-width:var(--jc-public-width)!important;
}

/* Exclusiones deliberadas: no se toca .cjrd3-shell/.jc-radio-shell ni dialogs/modals/fullscreen. */

/* =========================================================
   v9.5.55.467 · PUBLIC 1024 SYMMETRY HARDENING V2
   Segunda pasada: captura wrappers legacy 1180/1240 omitidos en V466.
   No toca Home, CJRD/CJTV, dialogs/modals/fullscreen, wp-admin ni Core.
   ========================================================= */

/* Shells públicos históricos que escapaban al contrato V466. */
.jc-pt-v288-shell,
.jc-classifieds-shell,
.jc-cjc-shell,
.jc-cjc-header__row,
.jcb-shell,
.jc-connected-header-v295,
.jc-locality-actions-v295,
.jc-ti290-header__row,
.jc-cuponeta-msheader-v282__row,
.jc-commerce-header-v281__row,
.jcp-solos-home-shell{
  max-width:var(--jc-public-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(min-width:761px){
  .jc-pt-v288-shell,
  .jc-classifieds-shell,
  .jc-cjc-shell,
  .jc-cjc-header__row,
  .jcb-shell,
  .jc-connected-header-v295,
  .jc-locality-actions-v295,
  .jc-ti290-header__row,
  .jc-cuponeta-msheader-v282__row,
  .jc-commerce-header-v281__row,
  .jcp-solos-home-shell{
    width:min(calc(100% - 32px),var(--jc-public-width))!important;
  }

  /* Turismo/Profesionales: el shell V288 tenía 1180px directos. */
  .jc-pt-v288-shell{
    padding-top:12px!important;
    padding-bottom:28px!important;
  }

  /* Clasificados JC: cabecera y contenido comparten exactamente el mismo eje. */
  .jc-cjc-header__row,
  .jc-cjc-shell{
    width:min(calc(100% - 32px),var(--jc-public-width))!important;
  }
}

@media(max-width:760px){
  .jc-pt-v288-shell,
  .jc-classifieds-shell,
  .jc-cjc-shell,
  .jc-cjc-header__row,
  .jcb-shell,
  .jc-connected-header-v295,
  .jc-locality-actions-v295,
  .jc-ti290-header__row,
  .jc-cuponeta-msheader-v282__row,
  .jc-commerce-header-v281__row,
  .jcp-solos-home-shell{
    width:min(calc(100% - 16px),var(--jc-public-width))!important;
    max-width:var(--jc-public-width)!important;
  }

  .jc-pt-v288-shell{
    padding-top:8px!important;
    padding-bottom:18px!important;
  }

  /* Clasificados JC tenía 12px totales propios; se unifica a 8px por lado. */
  .jc-cjc-header__row,
  .jc-cjc-shell{
    width:min(calc(100% - 16px),var(--jc-public-width))!important;
  }
}

/* Zona Libre y shells legacy que ya usan .jc-container quedan bajo el mismo eje. */
body:not(.home) .jc-zone-site>.jc-container,
body:not(.home) .jcb-shell{
  max-width:var(--jc-public-width)!important;
}

/* Exclusiones deliberadas: geometría audiovisual/control propia. */
.cjrd3-shell,
.jc-radio-shell,
.cjtv330-shell,
[role="dialog"],
.jc-modal,
.jc-admin-modal{
  --jc-public-width:initial;
}

/* =========================================================
   v9.5.55.468 · CJRD 1024 SHELL V1
   Alinea exclusivamente el shell web principal de Conecta Jujuy RD
   al contrato público maestro de 1024px.
   No toca Mini App, player interno, BRLOGIC, paneles, programación,
   podcasts, concurso, AL AIRE, CJTV ni modales/fullscreen.
   ========================================================= */

/* Web pública CJRD: 1120px legacy -> 1024px maestro. */
body:not(.cjrd-mini-app) .cjrd3-shell{
  width:min(calc(100% - 32px),1024px)!important;
  max-width:1024px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* APP/móvil web: 8px por lado, conservando la geometría interior. */
@media(max-width:760px){
  body:not(.cjrd-mini-app) .cjrd3-shell{
    width:min(calc(100% - 16px),1024px)!important;
    max-width:1024px!important;
  }
}

/* La Mini App CJRD conserva su contrato propio de 720px. */
body.cjrd-mini-app .cjrd3-shell{
  max-width:720px;
}
