/* ===== logo SVG: se dibuja, se rellena, se mantiene y se borra en bucle ===== */
.logo{width:250px;height:auto;font-size:0;line-height:0;transform-origin:left center;color:var(--ink)}
.logo:hover{transform:scale(1.03)}
.logo-svg{display:block;width:100%;height:auto;overflow:visible}
.logo-svg path{
  fill:currentColor;fill-opacity:1;              /* estado base = logo completo (sin animacion / movimiento reducido) */
  stroke:currentColor;stroke-width:1.15;stroke-linejoin:round;stroke-linecap:butt;
  stroke-dasharray:1;stroke-dashoffset:1;        /* contorno oculto hasta que se dibuja */
  animation:logo-draw 11s cubic-bezier(.45,.05,.3,1) infinite both;
  animation-delay:calc(var(--i) * .45s)          /* cada trazo arranca un poco despues; el desfase se mantiene en cada vuelta */
}
@keyframes logo-draw{
  0%   {stroke-dashoffset:1;fill-opacity:0;opacity:1}
  28%  {stroke-dashoffset:0;fill-opacity:0;opacity:1}   /* contorno dibujado (~3 s, igual que antes) */
  38%  {stroke-dashoffset:0;fill-opacity:1;opacity:1}   /* se rellena */
  85%  {stroke-dashoffset:0;fill-opacity:1;opacity:1}   /* se mantiene completo (~5 s) */
  95%  {stroke-dashoffset:0;fill-opacity:1;opacity:0}   /* se desvanece */
  100% {stroke-dashoffset:1;fill-opacity:0;opacity:0}
}
@media(prefers-reduced-motion:reduce){.logo-svg path{animation:none;stroke-dashoffset:1;fill-opacity:1;opacity:1}}

/* ajuste de huecos para el nuevo alto del logo */
.side nav{margin-top:60px}
.scrolled .logo{width:160px}
.scrolled .side nav{margin-top:20px}
@media(max-width:900px){.logo,.scrolled .logo{width:170px}.side nav,.scrolled .side nav{margin-top:26px}}
