/* Botones minimizar y limpiar */
#minimize-chat,
#clear-chat {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  margin: 0;
  padding: 0 5px;
}

/* Botón minimizar - posición específica */
#minimize-chat {
  font-size: 18px;
  position: relative;
  left: 65px;
}

#chat-send {
  background: #123263;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;       /* evita que el botón se reduzca más de la cuenta */
}
/* Ocultar todo el contenido interno excepto el botón minimizar cuando está minimizado */
#chat-widget.minimized > *:not(#chat-header) {
  display: none !important;
}

/* Ocultar texto en el header excepto el botón minimizar */
#chat-widget.minimized #chat-header {
  justify-content: center !important;
  padding: 0 !important;
}

/* Ocultar los textos dentro del header excepto botones */
#chat-widget.minimized #chat-header > :not(#minimize-chat) {
  display: none !important;
}

#chat-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #123263;
  color: white;
  font-size: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 10000;
  transition: background-color 0.3s ease;

  /* Aquí agregamos la animación */
  animation: pulse 3s ease-in-out infinite;
}

/* Pausa animación al pasar mouse para no molestar */
#chat-bubble:hover {
  background-color: #0e254a;
  animation-play-state: paused;
}

/* Animación pulse */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

#chat-bubble svg {
  vertical-align: middle;
  padding-top: 8px;
  width: 60%;
  height: 60%;
}

#chat-bubble:hover {
  background-color: #0e254a;
  animation-play-state: paused; /* pausa el pulso */
  transform: scale(1.2); /* zoom suave */
  box-shadow: 0 0 12px 3px rgba(18, 50, 99, 0.7); /* brillo extra */
}

@media (max-width: 400px) {
  #chat-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #chat-input {
    width: 100%;
  }

  #chat-send {
    width: 100%;
    margin-top: 6px;
  }
}
.chat-message.bot-message button {
  background-color: #123263;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
}

.chat-message.bot-message button:hover {
  background-color: #0d2445;
}

#chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 16px;
  color: white; /* o el color que uses en el header */
}

.radar-header {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00ff99;
  box-shadow: 0 0 5px 2px #00ff99;
  animation: radar-pulse 1.5s infinite;
}

@keyframes radar-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}



