/* ==========================================================================
   Animaciones de las ilustraciones SVG (hero, illustration)
   Se activan poniendo .motion en el contenedor; se desactivan solas con
   prefers-reduced-motion. Clases que se animan dentro del SVG:
   .ring .dots-rot .orbit .orbit-b .meridian .twinkle .flow .float
   ========================================================================== */

.motion .ring,
.motion .dots-rot,
.motion .orbit,
.motion .meridian,
.motion .float {
  transform-box: fill-box;
  transform-origin: center;
}

.motion .ring      { animation: motion-spin 140s linear infinite; }
.motion .dots-rot  { animation: motion-spin 70s linear infinite; }
.motion .orbit     { animation: motion-spin 26s linear infinite; }
.motion .orbit-b   { animation: motion-spin 40s linear infinite reverse; }
.motion .meridian  { animation: motion-meridian 14s linear infinite; }
.motion .twinkle   { animation: motion-twinkle 4.5s ease-in-out infinite; }
.motion .flow      { animation: motion-dash 4s linear infinite; }
.motion .float     { animation: motion-bob 8s ease-in-out infinite; }

@keyframes motion-spin { to { transform: rotate(360deg); } }

@keyframes motion-meridian {
  0% { transform: scaleX(1); }
  8.33% { transform: scaleX(0.866); }
  16.67% { transform: scaleX(0.5); }
  25% { transform: scaleX(0.01); }
  33.33% { transform: scaleX(-0.5); }
  41.67% { transform: scaleX(-0.866); }
  50% { transform: scaleX(-1); }
  58.33% { transform: scaleX(-0.866); }
  66.67% { transform: scaleX(-0.5); }
  75% { transform: scaleX(-0.01); }
  83.33% { transform: scaleX(0.5); }
  91.67% { transform: scaleX(0.866); }
  100% { transform: scaleX(1); }
}

@keyframes motion-twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes motion-dash { to { stroke-dashoffset: -48; } }

@keyframes motion-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .motion .ring, .motion .dots-rot, .motion .orbit, .motion .orbit-b,
  .motion .meridian, .motion .twinkle, .motion .flow, .motion .float { animation: none; }
}
