/* 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;
  }
}
