/* logo-elegant-shared v=e2: natural lockup; defeat .brand img 44x44 circle + 25% crop */
html body .site-header .brand,
html body .site-header.scrolled .brand,
.site-header .brand{
  max-width:min(72vw,300px)!important;
  width:auto!important;
  overflow:visible!important;
  flex:0 1 auto!important;
}
html body .site-header .brand .brand-logo-wrap,
.site-header .brand .brand-logo-wrap,
header .brand .brand-logo-wrap,
.brand .brand-logo-wrap{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  height:58px!important;
  max-height:58px!important;
  width:auto!important;
  max-width:100%!important;
  line-height:0!important;
  overflow:visible!important;
  flex:0 0 auto!important;
  opacity:0;
  transform:translateY(5px) scale(.98);
  animation:alLogoEnter .95s cubic-bezier(.22,.61,.36,1) .08s forwards;
}
/* Beat .brand img{width:44px;height:44px;border-radius:50%} */
html body .site-header .brand img.brand-logo-mark,
html body .site-header .brand .brand-logo-wrap img,
.site-header .brand img.brand-logo-mark,
.brand img.brand-logo-mark{
  display:block!important;
  width:auto!important;
  height:58px!important;
  max-height:58px!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  border-radius:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  filter:none!important;
}
.site-header .brand .brand-logo-sheen,
.brand .brand-logo-sheen{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 0%,transparent 42%,rgba(255,236,180,0) 46%,rgba(255,242,200,.55) 50%,rgba(255,236,180,0) 54%,transparent 58%,transparent 100%);
  background-size:220% 100%;background-position:120% 0;opacity:0;
  -webkit-mask-image:url(/assets/img/logo-al-elegant-goldmask-96.webp?v=e2);
  mask-image:url(/assets/img/logo-al-elegant-goldmask-96.webp?v=e2);
  -webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:left center;mask-position:left center;
  animation:alLogoSheen 1.35s ease-in-out 1.15s 1 forwards;
}
@keyframes alLogoEnter{to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes alLogoSheen{0%{opacity:0;background-position:120% 0}12%{opacity:1}55%{opacity:.85}100%{opacity:0;background-position:-40% 0}}
@media(min-width:600px){
  html body .site-header .brand .brand-logo-wrap,.brand .brand-logo-wrap{height:72px!important;max-height:72px!important}
  html body .site-header .brand img.brand-logo-mark,.brand img.brand-logo-mark{height:72px!important;max-height:72px!important}
  .brand .brand-logo-sheen{-webkit-mask-image:url(/assets/img/logo-al-elegant-goldmask-144.webp?v=e2);mask-image:url(/assets/img/logo-al-elegant-goldmask-144.webp?v=e2)}
}
@media(min-width:960px){
  html body .site-header .brand{max-width:min(40vw,340px)!important}
  html body .site-header .brand .brand-logo-wrap,.brand .brand-logo-wrap{height:96px!important;max-height:96px!important}
  html body .site-header .brand img.brand-logo-mark,.brand img.brand-logo-mark{height:96px!important;max-height:96px!important}
  .brand .brand-logo-sheen{-webkit-mask-image:url(/assets/img/logo-al-elegant-goldmask-192.webp?v=e2);mask-image:url(/assets/img/logo-al-elegant-goldmask-192.webp?v=e2)}
  /* El lockup mide 96px y --header-h es 76px. Al hacer scroll, .topbar subía con margin negativo y el globo cruzaba el borde superior del viewport. El topbar se queda. */
  html body .site-header.scrolled .topbar{margin-top:0!important}
}
@media(prefers-reduced-motion:reduce){
  .brand .brand-logo-wrap{animation:none!important;opacity:1!important;transform:none!important}
  .brand .brand-logo-sheen{animation:none!important;opacity:0!important}
}


/* e3: solid navy header on light/legal pages — white lockup + visible hamburger */
body.legal-page .site-header,
body.legal-page .site-header.scrolled,
body.legal-page.menu-open .site-header{
  background:rgba(11,58,117,.97)!important;
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 8px 30px -12px rgba(0,0,0,.45);
}
body.legal-page .site-header::after{
  opacity:1;
}
body.legal-page .menu-toggle{
  color:#fff!important;
  border:1px solid rgba(255,255,255,.5)!important;
  background:rgba(255,255,255,.14)!important;
}
body.legal-page .menu-toggle span,
body.legal-page .menu-toggle span::before,
body.legal-page .menu-toggle span::after{
  background:#fff!important;
}


/* e6: mobile unscrolled .site-header — body --bg #fff shows through transparent header
   until .scrolled (y>20) / .menu-open paint navy. Desktop ≥960px unchanged (topbar+glass).
   Not logo alpha; not .brand-logo-wrap opacity animation. */
@media (max-width:959px){
  html body .site-header{
    background:rgba(11,58,117,.94)!important;
    backdrop-filter:saturate(160%) blur(14px);
    -webkit-backdrop-filter:saturate(160%) blur(14px);
  }
  html body .site-header::after{
    opacity:1;
  }
}
