.input-error {
  border: 1px solid red !important;
}

.radio-error {
  border: 1px solid red;
  padding: 10px;
  border-radius: 4px;
}

.checkbox-error {
  border: 1px solid red;
  padding: 10px;
  border-radius: 4px;
}

.grecaptcha-badge {
  z-index: 9999 !important;
  position: fixed !important;
  right: 14px !important;
  bottom: 14px !important;
  width: 70px !important;
  /* tamaño compacto */
  height: 60px !important;
  overflow: hidden !important;
  transition: width 0.3s ease !important;
  /* transición suave */
  cursor: pointer;
  /* para que parezca interactivo */
}

.grecaptcha-badge:hover {
  width: 256px !important;
  /* tamaño expandido */
}

.modal-con-borde-resaltante {
  /* Color del borde: un tono claro para contrastar con el fondo oscuro */
  border: 3px solid #66d9ef;
  /* Opcional: añade una ligera sombra para que resalte más */
  box-shadow: 0 0 15px rgba(102, 217, 239, 0.7);
}

.agente-flotante {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  /* Degradado moderno */
  background: linear-gradient(135deg, #0774e2 0%, #055db5 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  z-index: 9999;
  /* Sombra con profundidad */
  box-shadow:
    0 10px 25px rgba(7, 116, 226, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.agente-flotante:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 15px 30px rgba(7, 116, 226, 0.6);
  background: linear-gradient(135deg, #0a84ff 0%, #0774e2 100%);
}

.icon-container {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  /* Animación de flotado para el icono */
  animation: floatingIcon 3s ease-in-out infinite;
}

.indicador-online {
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid #0774e2;
  /* Efecto de parpadeo */
  animation: pulseGlow 2s infinite;
}

.texto-agente {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.texto-agente small {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
}

/* Animaciones */
@keyframes floatingIcon {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Efecto de brillo que pasa sobre el botón ocasionalmente */
.agente-flotante::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  animation: sweep 5s infinite;
}

@keyframes sweep {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.agente-flotante {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  /* Lo centra horizontalmente */
  background: #0774e2;
  /* Azul Querétaro */
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "sans-serif";
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulso-agente 2s infinite;
}

.agente-flotante:hover {
  background: #055db5;
  transform: translateX(-50%) scale(1.05);
}

.texto-agente {
  font-size: 14px;
}

/* Animación de pulso para llamar la atención */
@keyframes pulso-agente {
  0% {
    box-shadow: 0 0 0 0 rgba(7, 116, 226, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(7, 116, 226, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(7, 116, 226, 0);
  }
}

.indicador-online {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  position: absolute;
  top: 39px;
  left: 135px;
  border: 2px solid white;
}

.chat-container {
  margin-top: 20px;
  background: #222;
  border-radius: 10px;
  padding: 15px;
  height: 250px;
  /* Aumentamos un poco la altura */
  overflow-y: auto;
  border: 1px solid #444;
  display: flex;
  /* IMPORTANTE */
  flex-direction: column;
  /* IMPORTANTE */
}

/* NEW */
/* Animación de los puntitos de escritura */
.typing {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
}

.typing span {
  width: 6px;
  height: 6px;
  background-color: #bbb;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Animación del Robot en la esquina */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.robot-icon-active {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  color: #0774e2;
  font-size: 1.5em;
}

#chat-historial b {
  color: #0774e2; /* Opcional: un color diferente para las negritas para que resalten más */
}
