:root {
  /* Colores de fondo del chat */
  --headerChat: #003e6f;
  --cuerpoChat: #fab600;

  /* Colores de texto de header, mensajes y respuestas */
  --txtHeader: white;
  --txtGlobos: black;

  /* Dimensiones del chat */
  --alturaChatCerrado: 80px;
  --anchoChatPC: 400px;
  --borderInputs: 10px;
  --borderHeader: 12px;
}
*{
  margin: 0;
  box-sizing: border-box;
}
#formulario-chat {
  padding: 2rem 1.5rem;
  overflow-y: scroll;
  height: calc(100% - var(--alturaChatCerrado));
  scroll-behavior: smooth;
  scrollbar-color: var(--headerChat) transparent;
}
.chat-colapsado{
  width: 0!important;
  height: 0!important;
}
.chatdiv {
  position: fixed;
  z-index: 100;
  bottom: 0;
  right: 0;
  width: var(--anchoChatPC);
  max-width: 100%;
  background-color: var(--cuerpoChat);
  border-top-left-radius: var(--borderHeader);
  overflow: hidden;
  height: var(--alturaChatCerrado);
  transition: 800ms ease-in-out;
}
.chatdiv.chat-abierto {
  height: min(600px, 70%);
}
.header-chat-nombres{
  width: 100%;
  height: var(--alturaChatCerrado);
  background-color: var(--headerChat);
  cursor: pointer;
  padding: 5px 1rem;
  color: var(--txtHeader);
}
.info-atencion, .img-header-logo{
  display: inline-block;
}
.img-header-logo{
  height: 55px;
  object-fit: contain;
  max-height: 100%;
  border-radius: 50%;
}
.header-principal{
  display: flex;
  height: 100%;
  gap: 1.5rem;
  align-items: center;
}
.estado-atencion::before{
  content: "";
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: #009832;
}
.iconos-control{
  width: 60px;
  height: 60px;
  margin-left: auto;
  padding: 3% 0;
  text-align: center;
}
.ico-control-chat{
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.bg-format {
  padding: 1rem 7%;
  background-color: white;
  border-radius: var(--borderInputs);
  width: 90%;
  border: none;
  margin-bottom: 1rem;
  color: var(--txtGlobos);
}
.inicial-none{
  display: none;
}
.input-chat {
  border-top-right-radius: 0;
  margin-left: 10%;
}
.pregunta-chat {
  border-top-left-radius: 0;
}
.campo-chat, .container-espera{
  display: none;
}
.campo-activo{
  display: block!important;
}
/* Dots --------------------- */
.container-espera{
  border-radius: var(--borderInputs);
  border-top-left-radius: 0;
  background-color: white;
  padding: 10px 1rem;
  width: fit-content;
  margin-bottom: 1rem;
}
.dots-espera {
  width: 45px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: escribir 1s infinite linear;
}
@keyframes escribir {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }
  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }
  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }
  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}
/* Dots --------------------- */


@media (max-width: 420px){
  .chatdiv{
    width: 100%;
  }
}