/* Identidad AGGNET: imagen original, sin recorte ni deformación. */
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{display:flex!important;flex-direction:column;align-items:center;justify-content:center;height:auto!important;min-height:0!important;gap:9px!important;padding:14px 12px!important;margin:0!important;text-decoration:none!important}
body.v3.v3 .bn-aggnet-brand img{display:block!important;width:144px!important;height:144px!important;max-width:100%;object-fit:contain;background:#fff;border:1px solid #dce4ec;border-radius:9px}
body.v3.v3 .bn-aggnet-brand .bn-aggnet-caption{font-size:10px!important;font-weight:600!important;letter-spacing:.10em!important;color:#dce8f2!important;text-align:center}
body.v3.v3.v3-login .bn-aggnet-login-logo{display:block;width:220px;height:220px;max-width:100%;object-fit:contain;margin:0 auto 16px;background:#fff;border-radius:10px}
body.v3.v3.v3-login .card>h1{font-size:25px}
@media(max-height:700px){body.v3.v3 .bn-aggnet-brand img{width:112px!important;height:112px!important}body.v3.v3.v3-login .bn-aggnet-login-logo{width:170px;height:170px}}
@media print{body.v3.v3 .v3-sidebar .bn-aggnet-brand{display:none!important}}

/* Logo: reservar espacio real en la columna flexible del menú. */
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{
 flex:0 0 auto!important;min-height:190px!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;
}
body.v3.v3 .bn-aggnet-brand img{flex:0 0 auto!important;margin:0!important}
body.v3.v3 .bn-aggnet-brand .bn-aggnet-caption{flex:0 0 auto!important;line-height:1.4!important}
body.v3.v3 .v3-sidebar>.bn-nav-search,body.v3.v3 .v3-sidebar>.v3-nav{flex:0 0 auto!important}
@media(max-height:700px){body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{min-height:160px!important}}

/* AGGNET: PNG transparente y sin fondo añadido por CSS. */
body.v3.v3 .v3-sidebar .bn-aggnet-brand img,body.v3.v3.v3-login .bn-aggnet-login-logo{background:transparent!important;border:0!important;border-radius:0!important}

/* AGGNET: contorno blanco sobre el canal alfa del logo. */
body.v3.v3 .v3-sidebar .bn-aggnet-brand img,
body.v3.v3.v3-login .bn-aggnet-login-logo{
 filter:drop-shadow(.55px 0 0 rgba(255,255,255,.95))
        drop-shadow(-.55px 0 0 rgba(255,255,255,.95))
        drop-shadow(0 .55px 0 rgba(255,255,255,.95))
        drop-shadow(0 -.55px 0 rgba(255,255,255,.95))
        drop-shadow(0 0 2px rgba(255,255,255,.35))!important;
}
body.v3.v3 .v3-sidebar .bn-aggnet-brand img{
 width:160px!important;height:160px!important;
}
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{min-height:206px!important}
@media(max-height:700px){
 body.v3.v3 .v3-sidebar .bn-aggnet-brand img{width:128px!important;height:128px!important}
 body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{min-height:174px!important}
}

/* AGGNET: acabado sobrio, sombra suave y lema tipográfico legible. */
body.v3.v3 .v3-sidebar .bn-aggnet-brand img,
body.v3.v3.v3-login .bn-aggnet-login-logo{
 filter:drop-shadow(0 2px 2px rgba(0,0,0,.28))
        drop-shadow(0 0 .45px rgba(255,255,255,.34))!important;
}
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{
 gap:6px!important;padding:16px 12px!important;min-height:0!important;
 background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.055),transparent 75%)!important;
}
body.v3.v3 .v3-sidebar .bn-aggnet-brand img{
 order:1;clip-path:inset(0 0 12% 0);margin:0 0 -19px!important;
}
body.v3.v3 .v3-sidebar .bn-aggnet-brand::after{
 content:"PERUANOS COMO TU";display:block;order:2;flex:0 0 auto;
 color:#e9f0f6;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
 font-size:9px;font-weight:600;line-height:1.5;letter-spacing:.15em;
 text-shadow:0 1px 1px rgba(0,0,0,.20);
}
body.v3.v3 .v3-sidebar .bn-aggnet-brand .bn-aggnet-caption{
 order:3;margin-top:7px;color:#aebfd0!important;font-size:9px!important;
 letter-spacing:.12em!important;font-weight:500!important;
}
@media(max-height:700px){
 body.v3.v3 .v3-sidebar .bn-aggnet-brand img{margin-bottom:-15px!important}
}

/* AGGNET: logo lateral compacto de 136px. */
body.v3.v3 .v3-sidebar .bn-aggnet-brand img{
 width:136px!important;height:136px!important;margin-bottom:-16px!important;
}
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{
 padding:12px 12px!important;gap:5px!important;min-height:0!important;
}
body.v3.v3 .v3-sidebar .bn-aggnet-brand::after{font-size:8px;letter-spacing:.12em}
body.v3.v3 .v3-sidebar .bn-aggnet-brand .bn-aggnet-caption{margin-top:5px}
@media(max-height:700px){
 body.v3.v3 .v3-sidebar .bn-aggnet-brand img{width:120px!important;height:120px!important;margin-bottom:-14px!important}
}

/* AGGNET: reflejo ocasional, enmascarado por el PNG transparente. */
body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{position:relative;--aggnet-reflect-size:136px}
@supports (mask-image:linear-gradient(#000,#000)) or (-webkit-mask-image:linear-gradient(#000,#000)){
 body.v3.v3 .v3-sidebar .bn-aggnet-brand::before{
  content:"";position:absolute;pointer-events:none;z-index:1;
  top:12px;left:50%;transform:translateX(-50%);
  width:var(--aggnet-reflect-size);height:var(--aggnet-reflect-size);
  background:linear-gradient(112deg,transparent 42%,rgba(255,255,255,.07) 46%,rgba(255,255,255,.48) 50%,rgba(255,255,255,.07) 54%,transparent 58%);
  background-size:300% 100%;background-repeat:no-repeat;background-position:100% 0;
  -webkit-mask-image:url("/assets/aggnet-logo-transparente.png?v=1");
  mask-image:url("/assets/aggnet-logo-transparente.png?v=1");
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  clip-path:inset(0 0 12% 0);mix-blend-mode:screen;opacity:0;
  animation:aggnet-reflect-pass 4s linear infinite;
 }
}
@keyframes aggnet-reflect-pass{
 0%,20%{background-position:100% 0;opacity:0}
 25%{background-position:100% 0;opacity:.85}
 85%{background-position:0% 0;opacity:.85}
 90%,100%{background-position:0% 0;opacity:0}
}
@media(max-height:700px){body.v3.v3 .v3-sidebar .v3-brand.bn-aggnet-brand{--aggnet-reflect-size:120px}}
@media(prefers-reduced-motion:reduce){
 body.v3.v3 .v3-sidebar .bn-aggnet-brand::before{animation:none!important;opacity:0!important}
}
@media print{body.v3.v3 .v3-sidebar .bn-aggnet-brand::before{display:none!important}}
