/* Estilos del Widget de Chat IA Zkynet */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.7), 0 0 45px rgba(59, 130, 246, 0.4);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s ease-out forwards;
}

.chat-trigger-pulse {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Scrollbar personalizada para el chat */
#zkyChatMessages::-webkit-scrollbar {
  width: 5px;
}

#zkyChatMessages::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

#zkyChatMessages::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}

#zkyChatMessages::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

/* Ajustes para pantalla completa en móviles pequeños */
@media (max-width: 640px) {
  #zkyChatWidget {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    z-index: 99999;
  }
}

/* Animaciones del Robot Avatar ZkyBot */
@keyframes robotFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3.5px) rotate(1.2deg);
  }
}

@keyframes robotBlink {
  0%, 86%, 92%, 100% {
    transform: scaleY(1);
  }
  89% {
    transform: scaleY(0.12);
  }
}

@keyframes antennaPulse {
  0%, 100% {
    fill: #22D3EE;
    filter: drop-shadow(0 0 2px rgba(34, 211, 238, 0.6));
  }
  50% {
    fill: #38BDF8;
    filter: drop-shadow(0 0 9px rgba(34, 211, 238, 1));
  }
}

@keyframes earWiggle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.zky-robot-icon {
  animation: robotFloat 3.2s ease-in-out infinite;
}

.zky-robot-eye {
  transform-origin: 50% 50%;
  animation: robotBlink 4s infinite;
}

.zky-robot-antenna {
  animation: antennaPulse 2s ease-in-out infinite;
}

.zky-robot-ear {
  transform-origin: center;
  animation: earWiggle 3.2s ease-in-out infinite;
}
