#chat-container {
  display: none;
  position: fixed;
  left: 30px;
  bottom: 115px;
  z-index: 12;
  width: 320px;
  max-height: 450px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  overflow: hidden;
}

#Total-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ebebeb;
}

#header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#headercontainer2 {
  display: flex;
  align-items: center;
}

#headercontainer2 .refresh {
  color: #005ee6;
  font-size: 18px;
  margin-right: 20px;
  cursor: pointer;
  transition: 0.3s;
}

#headercontainer2 .refresh:hover {
  color: #1c58ac;
}

#headercontainer2 .close {
  font-size: 18px;
  margin-right: 12px;
  cursor: pointer;
  color: #000;
  transition: 0.3s;
}

#headercontainer2 .close:hover {
  color: red;
}

#header-container img {
  width: 60px;
  border-radius: 50%;
}

#chatbox {
  height: 35vh;
  overflow-y: auto;
  padding: 5px;
  margin-bottom: 10px;
}

input[type="text"] {
  width: calc(100% - 60px);
  padding: 5px;
  border: none;
  background: #d8d9db;
  border-radius: 4px;
}

input:focus {
  outline-color: #005ee6;
}

#sendChatButton {
  width: 45px;
  height: 35px;
  border-radius: 8px;
  border: none;
  background: #005ee6;
  color: #ebebeb;
  padding: 6px;
  margin-top: 8px;
  transition: 0.3s;
}

#sendChatButton:hover {
  background: #ebebeb;
  border: 1px solid #005ee6;
  color: #005ee6;
}

#sendChatButton:focus {
  outline: none;
}

#sendChatButton:active {
  animation: buttonFocus1 ease-out 0.2s;
}

#chat-button {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 11;
}

#chat-button button img {
  width: 60px;
  border-radius: 50%;
  justify-content: center;
}

#chat-button button {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  transition: 0.3s;
  /* background: #af8600; */
  background: #0e517a;

  border: none;
}

/* #chat-button button:focus {
  outline: none;
}

#chat-button button:hover {
  scale: 1.1;
} */

#chat-button button:active {
  /* background: #c3b666; */
  background: #12689c;
}

/* Animación de apertura */
@keyframes buttonFocus1 {
  0% {
    background-color: #ccc;
    color: #005ee6;
  }
  50% {
    background-color: #005ee6;
    color: #ccc;
  }
  100% {
    background-color: #ccc;
    color: #005ee6;
  }
}

@keyframes abrirChat {
  0% {
    width: 400px;
    height: 0vh;
    opacity: 0; /* Comienza invisible */
  }
  100% {
    height: 70vh;
    opacity: 1; /* Termina visible */
  }
}

/* Animación de cierre */
@keyframes cerrarChat {
  0% {
    height: 70vh;
    opacity: 1; /* Comienza visible */
  }
  100% {
    height: 0vh;
    opacity: 0; /* Termina invisible */
  }
}

/* Clase para mostrar el chat con animación de apertura */
.show-chat {
  display: block; /* Mostrar el contenedor */
  animation: abrirChat 0.5s forwards; /* Aplicar la animación de apertura */
}

/* Clase para ocultar el chat con animación de cierre */
.hide-chat {
  animation: cerrarChat 0.5s forwards; /* Aplicar la animación de cierre */
}

/* original */
/*-------------BotMessage----------------*/

.message-Bot {
  display: flex;
  align-items: flex-end; /* Alinea imagen y mensaje en la parte inferior */
  margin-bottom: 20px;
}

/* Contenedor de la imagen (ajustado para alineación lateral) */
.chatBot-Container1 {
  display: flex;
  align-items: flex-end;
  margin-right: 8px; /* Espacio entre imagen y mensaje */
}

/* Imagen del bot (tamaño fijo y alineada) */
.chatBot-Container1 img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Contenedor del mensaje (para alineación con hora) */
.chatBot-Container3 {
  display: flex;
  align-items: flex-end;
}

/* Mensaje del bot (estilo existente) */
.botMessage {
  background: #eeeff1;
  font-size: 14px;
  border-radius: 12px;
  padding: 5px;
  margin: 0;
  max-width: 300px;
  word-wrap: break-word;
}

.chatBot-Container1 img,
.chatBot-Container2 img,
.chatBot-Container3 img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  min-width: 30px; /* Evita que se encojan en flexbox */
  margin-right: 8px; /* Espaciado opcional entre imagen y texto */
}

/* Mantén el resto de tus estilos de .botMessage, .botName, etc. */
.botMessage {
  background: #eeeff1;
  font-size: 14px;
  border-radius: 12px;
  padding: 5px;
  margin: 0;
  max-width: 300px;
  word-wrap: break-word;
}

.botMessage {
  background: #eeeff1;
  font-size: 14px;
  border-radius: 12px;
  padding: 5px;
  margin: 0;
  max-width: 300px;
  word-wrap: break-word;
}

.botName {
  color: #797a7c;
  font-size: 14px;
}

/* .chatBot-Container1 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
} */

.chatBot-Container3 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.hora {
  margin: 0;
  font-size: 10px;
  margin-left: 2px;
  color: #797a7c;
  white-space: nowrap;
}

.message-Bot {
  margin-bottom: 20px;
}

#chat-contact-form input,
#chat-contact-form textarea,
#chat-contact-form button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  box-sizing: border-box;
}
/*------------End-BotMessage----------------*/

/*-------------UserMessage----------------*/

.chatUser-Container1 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.chatUser-Container3 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.userMessage {
  background: #005ee6;
  font-size: 14px;
  color: #ebebeb;
  border-radius: 12px;
  padding: 5px;
  margin: 0;
  max-width: 300px;
  word-wrap: break-word;
}

.userName {
  color: #797a7c;
  font-size: 14px;
  text-align: right;
}

.message-User {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hora-User {
  margin: 0;
  font-size: 10px;
  margin-right: 2px;
  color: #797a7c;
  white-space: nowrap;
}

.message-User {
  margin-bottom: 20px;
}

/*-------------End-UserMessage----------------*/

.loader {
  display: none;
  position: absolute;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  perspective: 800px;
}

.inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.inner.one {
  left: 0%;
  top: 0%;
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid #005ee6;
}

.inner.two {
  right: 0%;
  top: 0%;
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid #005ee6;
}

.inner.three {
  right: 0%;
  bottom: 0%;
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid #005ee6;
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}

/* Media Queries para hacer el chatbot responsive */
@media (max-width: 325px) {
  #chat-container {
    width: 90%;
    left: 5%;
    bottom: 10px;
  }

  #chatbox {
    height: calc(100% - 100px);
  }

  #sendChatButton {
    width: 35px;
    height: 30px;
  }
}

@media (max-width: 250px) {
  #chat-container {
    width: 100%;
    left: 0;
    border-radius: 0;
  }

  #chatbox {
    height: calc(100% - 90px);
  }

  #sendChatButton {
    width: 30px;
    height: 25px;
  }
}

/* Estilos del button enviar de formulario de atichat */
.atichat-btn {
  display: inline-block;
  min-width: 120px;
  padding: 0 12px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #03045e;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in;
  z-index: 1;
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  margin: 5px;
  flex: 1 1 auto;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #03045e;
  line-height: 42px; /* centra verticalmente el texto */
}

/* Animaciones de fondo al pasar el mouse */
.atichat-btn::before,
.atichat-btn::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 100%;
  transform: skew(15deg);
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.atichat-btn::before {
  left: -10px;
  background: #18669a;
}

.atichat-btn::after {
  right: -10px;
  background: #070046;
}

.atichat-btn:hover::before,
.atichat-btn:hover::after {
  width: 58%;
}

/* Cambiar color del texto en hover */
.atichat-btn:hover {
  color: #e4cfcf;
}

/* Contenedor flexible para que se adapten los botones */
/* .suggestion-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
} */

/* Responsivo */
@media (max-width: 250px) {
  .atichat-btn {
    min-width: 100%;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }

  /* .suggestion-buttons {
    flex-direction: column;
    align-items: stretch;
  } */
}

/* Estilos para los botones de sugerencias*/
.sugerencia-btn {
  display: inline-block;
  min-width: 120px;
  padding: 0 12px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #03045e;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in;
  z-index: 1;
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  margin: 5px;
  flex: 1 1 auto;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #03045e;
  line-height: 42px; /* centra verticalmente el texto */
}

/* Animaciones de fondo al pasar el mouse */
.sugerencia-btn::before,
.sugerencia-btn::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 100%;
  transform: skew(15deg);
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.sugerencia-btn::before {
  left: -10px;
  background: #070046;
}

.sugerencia-btn::after {
  right: -10px;
  background: #18669a;
}

.sugerencia-btn:hover::before,
.sugerencia-btn:hover::after {
  width: 58%;
}

/* Cambiar color del texto en hover */
.sugerencia-btn:hover {
  color: #ffffff;
}

/* Contenedor flexible para que se adapten los botones */
.suggestion-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Responsivo */
@media (max-width: 250px) {
  .sugerencia-btn {
    min-width: 100%;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }

  .suggestion-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
