/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-image: url("img/fondo.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden; /* Para ocultar cualquier contenido que se desborde del body */
  display: flex;
  align-items: center;
}

p {
  overflow-wrap: break-word; /* Asegura que las palabras largas se corten y pasen a la siguiente línea */
  word-break: break-word; /* Rompe palabras largas para evitar que se desborden del contenedor */
  font-family: "Roboto", sans-serif;
}

#main-container {
  width: 500px;
  height: 800px;
  border-radius: 40px 40px 30px 30px;
  background-color: #e8e8e8 !important;
  position: fixed;
  bottom: 0;
  right: 4rem;
  /* opacity: 0;
  visibility: hidden; */
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 999;
}

#chatbox-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  max-height: calc(100vh - 100px); /* Ajusta el valor según tus necesidades */
  overflow-y: auto;
  overflow-y: auto;
  position: relative;
}

#chatbox {
  width: 100%;
  max-width: 100%;
  padding: 1rem 0 1rem;
  max-width: 100%;
  height: 80.5%;
  max-height: 100%;
  overflow-y: scroll;
  margin: 0 !important;
  background-color: #fff !important;
  position: relative;
  margin-top: 4rem !important;
}

#chatForm {
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-top: 10px; */
  position: absolute;
  bottom: 0;
  background-color: #fff;
  padding: 10px 0 10px 10px;
  /* padding: 10px; */
  width: 78.6%;
  border-radius: 50px;
  margin-bottom: 1rem;
  /* border: 1px solid #e8e8e8; */
}

#chatForm img {
  width: 2rem;
}

#userInput {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  margin-right: 10px;
}

#submitButton {
  background-image: url(img/send.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border: none;
  background-color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  margin-right: 0.7rem;
  width: 2rem;
  height: 2rem;
}

#leo-v {
  background: none !important;
  color: white !important;
  font-weight: bold;
  font-size: 20px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0;

  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 1.5rem);
}

#leo-v p {
  text-transform: uppercase;
  width: 100%;
  margin: 0;
  text-align: right;
  font-size: 14px;
  display: flex;
  justify-content: center;
  margin-left: 4.3rem;
  margin-right: 2rem;
  /* padding-right: 15rem; */
}

#leo-v :first-child {
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-left: 0;
}

#leo-v svg {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

div {
  border-radius: 5px;
  font-size: 16px;
  /* background-color: #fff; */
}

/* Estilos para los mensajes del usuario */
/* div:nth-child(even) {
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  padding-left: 5rem;
} */

/* Estilos para los mensajes del bot */
/* div:nth-child(odd):not(#chatbox):not(#dynamicFields) {
  background-color: #f2f5f7;
  color: #000; 
  display: flex;
  align-items: center;
  justify-content: end;
  padding-right: 5rem;
} */

/* div:nth-child(even) img {
  margin-right: 1rem;
}

div:nth-child(odd):not(#chatbox) img {
  margin-left: 1rem;
} */

input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important; /* Cambia 'white' al color de fondo deseado */
}

#userInput:focus {
  outline: none; /* Esto eliminará el borde al hacer click */
  /* Si quieres poner un borde personalizado, puedes hacer algo como: */
  /* border: 2px solid blue; */
}

#waitingDiv {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 5rem !important;
  background: none !important;
  color: rgb(0, 110, 255) 0 !important;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.waiting-dot {
  display: inline-block;
  animation: bounce 1s infinite ease-in-out;
  font-size: 80px !important;
}

.waiting-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.waiting-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.info-data {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: wrap !important;
  justify-content: left !important;
  align-items: start !important;
  background-color: #fff;
  border-radius: 25px;
  padding: 1rem;
  background-color: #e8e8e8;
}

.info-data p {
  margin: 0.3rem !important;
  color: #003056;
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
}

.info-data p > svg {
  margin-right: 1rem;
}

#dynamicFields {
  background: none !important;
  margin: 0 !important;
  display: none;
  background-color: #f2f5f7; /* Color de fondo gris */
  color: #000; /* Texto negro */
  align-items: center;
  justify-content: end;
  padding-left: 1rem;
  width: 75%;
}

/* Estilo para ocultar la flecha del select */
#dynamicFields select,
#dynamicFields input {
  -webkit-appearance: none !important; /* Remueve la flecha en WebKit/Blink */
  -moz-appearance: none !important; /* Remueve la flecha en Firefox */
  appearance: none !important; /* Remueve la flecha en modernos navegadores que soportan 'appearance' */
  background: white !important; /* Color de fondo (opcional) */
  padding-right: 10px !important; /* Espacio para que el texto no se sobreponga donde estaría la flecha (ajustar según sea necesario) */
  /* margin-left: 1rem; */
  font-weight: bold;
  font-size: 12px;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  border: 1px solid #b1b4b5;
  width: 50%;
}

/* Estilo para cambiar el borde al hacer clic */
#dynamicFields select:focus {
  outline: none !important;
}

.user-response {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 90%;
  margin-left: auto;
  padding-right: 1rem;
}

.bot-response {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 90%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.bot-response > p {
  background-color: #e8e8e8;
  color: #003056; /* Texto blanco */
  padding: 1rem;
  min-height: 3rem;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}

.user-response > p {
  background-color: #003056;
  color: #fff;
  padding: 1rem;
  margin: 0;
  min-height: 3rem;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}

.user-response img {
  width: 3rem;
  margin-left: 1rem;
}

.bot-response img {
  width: 3rem;
  margin-right: 1rem;
}

/* Estilo general para todos los scrollbars */
::-webkit-scrollbar {
  width: 5px; /* Ancho del scrollbar */
  height: 5px; /* Altura del scrollbar para scroll horizontal */
}

/* El track del scrollbar (la parte "track" es la barra en sí) */
::-webkit-scrollbar-track {
  background: transparent; /* Fondo transparente para que no se vea */
  border-radius: 5px; /* Bordes redondeados */
  margin-block: 1px; /* Margen superior e inferior en píxeles */
}

/* La "thumb" del scrollbar (la parte que se mueve) */
::-webkit-scrollbar-thumb {
  background: #888; /* Color de la "thumb" */
  border-radius: 5px; /* Bordes redondeados */
}

/* Estilo para la "thumb" del scrollbar al pasar el mouse por encima */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* Color de la "thumb" al pasar el mouse por encima */
}

/* Estilo para eliminar las flechas (en Firefox) */
* {
  scrollbar-width: thin; /* 'thin' o 'none' en Firefox */
  scrollbar-color: #888 transparent; /* Color del scrollbar y del track en Firefox */
}

#dynamicFields label {
  font-size: 12px;
  padding: 0.2rem;
}

#leo-git {
  position: absolute;
  bottom: 0;
  left: 0;
}

#cancel {
  width: 30px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

#texto-leo {
  position: absolute;
  /* color: #003056; */
  font-weight: bold;
  font-size: 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  width: 175px;
  opacity: 0;
  transition: opacity 1s ease;
  right: 7rem;
  bottom: 6rem;
}

#arrow-down {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid #fff;
  position: absolute;
  /* top: 0; */
  right: 9rem;
  bottom: 5rem;
  opacity: 0;
}

#img-leo-static {
  position: absolute;
  right: 5rem;
  bottom: 1rem;
}

.letter,
.space {
  display: inline-block; /* Cada letra es un bloque en línea */
  opacity: 0; /* Inicia invisible */
  transition: opacity 0.5s ease; /* Transición suave para aparecer */
  color: #003056; /* Color para la mayoría del texto */
}

.letter-highlight {
  color: #13b8b6; /* Color para 'asistente virtual' */
}

#container-static {
  position: fixed;
  bottom: 0;
  right: 1rem;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

.visible {
  opacity: 1;
  visibility: visible;
}
