/* Logo animado del hero. Todo va bajo .hero-logo; las variables viven acá, no en :root. */
.hero-logo{
  --cyan:#1e90ff;--hot:#5cc8ff;--core:#e8f7ff;--violet:#6a5cff;
  display:block;width:min(480px,100%);max-width:100%;height:auto;margin:0 auto;overflow:visible
}
.hero-logo .tube{opacity:0;animation:hl-fadeIn .9s ease-out forwards}
.hero-logo .neon{stroke-dasharray:1;stroke-dashoffset:1;animation:hl-draw 1.3s cubic-bezier(.65,0,.35,1) forwards}
.hero-logo .n1{animation-delay:.1s}.hero-logo .t1{animation-delay:.05s}
.hero-logo .n2{animation-delay:.45s}.hero-logo .t2{animation-delay:.4s}
.hero-logo .n3{animation-delay:.9s}
.hero-logo .n4{animation-delay:1.1s}.hero-logo .t4{animation-delay:1.05s}
.hero-logo .patch{opacity:0;animation:hl-fadeIn .25s 2.3s ease-out forwards}
.hero-logo .glowlayer{opacity:0;animation:hl-ignite 1.1s 2.2s steps(1) forwards,hl-breathe 4s 3.4s ease-in-out infinite}
.hero-logo .spark{opacity:0;stroke-dasharray:.06 .94;animation:hl-spark 3.2s 2.6s linear infinite}
.hero-logo .word{fill:transparent;stroke:var(--hot);stroke-width:1;stroke-dasharray:420;stroke-dashoffset:420;
  animation:hl-wordDraw 1.6s 1.4s ease-out forwards,hl-wordFill .8s 2.7s ease-out forwards}
.hero-logo .hl-sub{opacity:0;letter-spacing:.32em;animation:hl-fadeUp .8s 3s ease-out forwards}
@keyframes hl-fadeIn{to{opacity:1}}
@keyframes hl-draw{to{stroke-dashoffset:0}}
@keyframes hl-ignite{0%{opacity:.9}12%{opacity:.15}22%{opacity:1}34%{opacity:.35}46%,100%{opacity:1}}
@keyframes hl-breathe{0%,100%{opacity:1}50%{opacity:.6}}
@keyframes hl-spark{0%{opacity:1;stroke-dashoffset:1.06}100%{opacity:1;stroke-dashoffset:0}}
@keyframes hl-wordDraw{to{stroke-dashoffset:0}}
@keyframes hl-wordFill{to{fill:url(#hl-metal);stroke-width:.8}}
@keyframes hl-fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hero-logo:hover .glowlayer{animation-play-state:paused;opacity:1}
.hero-logo:hover{filter:brightness(1.25) saturate(1.2)}
.hero-logo .flash{opacity:0;transform-origin:200px 140px;animation:hl-flash 1s 2.45s ease-out forwards}
@keyframes hl-flash{0%{opacity:0;transform:scale(.4)}25%{opacity:.85}100%{opacity:0;transform:scale(1.5)}}
@media (prefers-reduced-motion:reduce){
  .hero-logo *{animation:none!important}
  .hero-logo .tube,.hero-logo .glowlayer,.hero-logo .hl-sub,.hero-logo .patch{opacity:1}
  .hero-logo .neon{stroke-dashoffset:0}
  .hero-logo .word{stroke-dashoffset:0;fill:url(#hl-metal)}
  .hero-logo .spark,.hero-logo .flash{display:none}
}

/* Ícono del menú: versión estática y chica del logo (sin animaciones). */
.nav-logo{width:34px;height:34px;display:block;overflow:visible;
  filter:drop-shadow(0 0 3px rgba(30,144,255,.75)) drop-shadow(0 0 8px rgba(30,144,255,.4));transition:filter .25s ease}
.brand:hover .nav-logo{filter:drop-shadow(0 0 4px rgba(92,200,255,.95)) drop-shadow(0 0 12px rgba(30,144,255,.75))}

/* Resplandor azul radial detrás del logo del hero */
.hero-glow{position:relative;isolation:isolate}
.hero-glow::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:150%;aspect-ratio:1;transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,rgba(30,144,255,.24),rgba(30,144,255,.12) 45%,transparent 75%);filter:blur(24px);pointer-events:none}
