/* ============================================================
   CS TUCUMAN · PERFIL V31.8 AVATAR FIX
   Garantiza que el avatar sea visible sobre la portada.
   ============================================================ */

body.cst70-perfil .profile-dashboard-hero{
 position:relative!important;
 isolation:isolate!important;
}

/* La portada siempre queda atrás */
body.cst70-perfil .profile-dashboard-cover{
 z-index:1!important;
}
body.cst70-perfil .profile-dashboard-shade{
 z-index:2!important;
}
body.cst70-perfil .cst80-profile-mark{
 z-index:3!important;
}

/* La identidad siempre por encima */
body.cst70-perfil .profile-dashboard-user{
 position:absolute!important;
 z-index:10!important;
 inset:0!important;
}

/* Avatar visible sí o sí */
body.cst70-perfil .profile-dashboard-avatar{
 position:relative!important;
 z-index:20!important;
 display:grid!important;
 place-items:center!important;
 overflow:hidden!important;
 background:#080808!important;
 border:4px solid #050505!important;
 opacity:1!important;
 visibility:visible!important;
}
body.cst70-perfil .profile-dashboard-avatar img,
body.cst70-perfil .profile-dashboard-avatar .cst318-profile-avatar-img{
 position:relative!important;
 z-index:2!important;
 display:block!important;
 width:100%!important;
 height:100%!important;
 max-width:none!important;
 max-height:none!important;
 object-fit:cover!important;
 object-position:center!important;
 opacity:1!important;
 visibility:visible!important;
 filter:none!important;
}
body.cst70-perfil .profile-dashboard-avatar>span{
 position:relative!important;
 z-index:2!important;
 display:grid!important;
 place-items:center!important;
 width:100%!important;
 height:100%!important;
 color:#ff9a42!important;
 font-size:28px!important;
 font-weight:900!important;
}

/* Punto online */
body.cst70-perfil .profile-dashboard-avatar>i{
 position:absolute!important;
 z-index:4!important;
 right:5px!important;
 bottom:5px!important;
 width:12px!important;
 height:12px!important;
 border:3px solid #050505!important;
 border-radius:50%!important;
 background:#31d47d!important;
}

/* Vista previa al editar */
.cst318-avatar-preview-row{
 margin:12px 0 16px;
 padding:10px;
 display:flex;
 align-items:center;
 gap:12px;
 border:1px solid #1b1b1b;
 border-radius:10px;
 background:#020202;
}
.cst318-avatar-preview{
 width:68px;
 height:68px;
 min-width:68px;
 overflow:hidden;
 display:grid;
 place-items:center;
 border:2px solid #252525;
 border-radius:12px;
 background:#090909;
}
.cst318-avatar-preview img,
.cst318-avatar-preview span{
 width:100%;
 height:100%;
 display:grid;
 place-items:center;
 object-fit:cover;
 color:#ff9a42;
 font-size:20px;
 font-weight:900;
}
.cst318-avatar-preview-row b,
.cst318-avatar-preview-row small{
 display:block;
}
.cst318-avatar-preview-row b{
 color:#fff;
 font-size:9px;
}
.cst318-avatar-preview-row small{
 margin-top:4px;
 color:#666;
 font-size:6.5px;
}

/* En móvil sigue visible */
@media(max-width:600px){
 body.cst70-perfil .profile-dashboard-avatar{
  width:92px!important;
  height:92px!important;
  min-width:92px!important;
 }
}
