/* Animación del circuito integrado */

.hero .chip {
  animation: ph-chip-float 5s ease-in-out infinite;
  will-change: transform;
}

.hero .chip svg {
  animation: ph-circuit-glow 3s ease-in-out infinite;
}

.hero .chip svg path {
  stroke-dasharray: 20 8;
  animation: ph-circuit-current 4s linear infinite;
}

.hero .chip::before {
  animation: ph-circuit-ring 5s ease-in-out infinite;
}

.hero .chip::after {
  animation: ph-circuit-ring 5s ease-in-out infinite 1s;
}

@keyframes ph-chip-float {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-9px) rotate(-6deg);
  }
}

@keyframes ph-circuit-glow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(55,201,244,.4));
    opacity: .8;
  }
  50% {
    filter: drop-shadow(0 0 13px rgba(55,201,244,.9));
    opacity: 1;
  }
}

@keyframes ph-circuit-current {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -112; }
}

@keyframes ph-circuit-ring {
  0%, 100% { opacity: .25; }
  50% { opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .chip,
  .hero .chip svg,
  .hero .chip svg path,
  .hero .chip::before,
  .hero .chip::after {
    animation: none !important;
  }
}
