@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-image: url(../);
}
/* Boton para abrir chat */
.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 60px;
  width: 60px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(255,104,1);
  background: linear-gradient(4deg, rgba(255,104,1,1) 0%, rgba(255,224,1,1) 100%);
  padding: 10px;
  transition: all 0.3s ease;
}

body .show-chatbot .chatbot-toggler {
  transform: rotate(45deg);
  transition: all 0.3s ease;
}
.chatbot-toggler span {
  color: #fff;
  position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}
/* Contenedor todo chat */
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 100px;
  width: 400px;
  height: 530px;
  background: #fff;
  border-radius: 20px 20px 5px 20px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0px 0px 11px 6px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  z-index: 99;
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
/* Header de chat */
.chatbot .header-chat {
  padding: 16px 0px;
  position: relative;
  text-align: center;
  color: #fff;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Imagen de Headder */
.chatbot header img {
  height: 40px;
  
}
header h2 {
  font-size: 1.4rem;
}
/* Boton para cerrar el chat, responsive */
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
/* Contenedor chat  */
.chatbot .chatbox {
  overflow-y: auto;
  height: 390px;
  padding: 30px 20px 10px 20px;
/*  margin-bottom: 50px*/
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox{
  background: #fff;
}
/* Preguntas de cliente a ChatGpt*/
.chatbox .chat {
  display: flex;
  list-style: none;
}
.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #000;
  font-size: 0.95rem;
  background: #F2F2F2;
}
/* Respuestas de ChatGpt */
.chatbox .incoming span {
  width: 24px;
  height: 24px;
  color: #fff;
  cursor: default;
  text-align: center;
  /* line-height: 32px; */
  align-self: flex-end;
  background-color: rgba(174, 177, 179, 0.9);
  border-radius: 50%;
  margin: 0 5px 0px 0px;
  display: inline-block;
}
.chatbox .incoming p {
  border-radius: 10px 8px 0px 0;
  /* margin-top: 10px; */
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
/*  */
.chatbox .incoming p {
  color: #fff;
  background: #fF6801;
}
/* Footer de chat */
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 0px 20px 5px;
  border-top: 1px solid #ddd;
}
/* Text area */
.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
}

/* Boton de enviar mensaje */
.chat-input span {
  align-self: flex-end;
  color: #FF6801;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid ~ span {
  visibility: visible;
}

.conversation-form-archivo{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 3px;
  cursor: pointer;
}

.boton-subir-archivo-chat{
  background: rgb(255,104,1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.conversation-form-archivo:hover{
  cursor: pointer;
  transform: scale(1.05);
  transition: .2s;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
}

/* Inicio: Conversación datos HEADER */

/* FIN: Conversación datos HEADER */

/* Inicio: Contenedor de chats */
.conversation-wrapper {
  margin-top: 0px;
  list-style-type: none;
  height: 390px
}
/* Imagen de usuario */
.conversation-item {
  display: flex;
  align-items: flex-end;
  flex-direction: row-reverse;
  margin-bottom: 16px;
}
/* Posición imagen usuario */
.conversation-item.usuario {
  flex-direction: row;
}
.conversation-item-side {
  margin-left: 0px;
}
.conversation-item.usuario .conversation-item-side {
  margin-right: 5px;
}
/* Estilos para tamaño de imagen */
.conversation-item-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* Tamaño de los globos de la conversación */
.conversation-item-content {
  /* overflow: hidden; */
  width: auto;
  max-width: 75%;
}
.conversation-item-wrapper:not(:last-child) {
  margin-bottom: 3px;
}

.conversation-item.usuario .conversation-item-box {
  margin-left: unset;
}
/* Conversación Cliente */
.conversation-item-text {
  padding: 12px 16px 8px;
  background-color: #e1e1e1ee;
  color: #212b35;
  font-size: 13px;
  border-radius: 20px ;
  line-height: 1.5;
  margin-left: 32px;
  word-wrap: break-word;
  border-radius: 25px 25px 3px 25px;
}
/* Conversación usuario */
.conversation-item.usuario .conversation-item-text {
  margin-left: unset;
  margin-right: 32px;
}
.conversation-item.usuario .conversation-item-text {
  background-color: #ff6801;
  border-radius: 25px 25px 25px 3px;
  color: #fff;
}
/* Hora Clientes */
.conversation-item-time {
  font-size: 10px;
  color: #000;
  display: block;
  text-align: right;
  margin-top: 4px;
  line-height: 1;
}
/* Hora usuarios */
.conversation-item.usuario .conversation-item-time {
  color: #fff;
}
/* Linea que divide */
.coversation-divider {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 0px;
  position: relative;
}
.coversation-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 0;
  border-bottom: 1px solid #cbd5e1;
}
.coversation-divider span {
  display: inline-block;
  padding: 0 5px;
  background-color: #fff;
  position: relative;
  z-index: 1;
}
/* =========================== botones ======================== */
.button-container .btn-respuesta-accion{
  border-radius: 20px 20px 20px 20px;
  background-color: #fff;
  border: 2px solid #ff6801;
  color: #ff6801;
  font-size: 14px;
  font-weight: 400;
  height: auto;
  padding: 4px 15px 4px 15px;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
}
.button-container{
  text-align: right;
  margin-bottom: 1px;
  display: block;
}
.conversation-item-content-btn {
  /* overflow: hidden; */
  width: auto;
  max-width: 100%;
}
.btn:hover{
  background: #ff6701;
  color: #fff;
}
.btn:active{
  transform: scale(.95);
}
.ocultar {
  display: none;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.button-container .btn {
    flex: 1;
    margin: 5px;
	word-wrap: break-word;
}

/* =============================================================================================== */


.formu {
	position: absolute;
	padding: 20px 20px 20px 20px;
	margin-top: 10px;
	z-index: 1;
	width: 90%;
  height: 350px;
	background-color: #f2f2f2;
	border-radius: 10px;
}

.formu .field{
    display: flex;
    position: relative;
    flex-direction: column;
    margin-bottom: 10px;
}
.formu .field input:focus{
    border: 2px solid #ff6801;
    outline: none;
}

.formu .field input{
  
    outline: none;
    margin-bottom: 15px;
}
.formu .input input{
    border-radius: 25px;
    height: 40px;
    width: 100%;
    font-size: 16px;
    padding: 0px 10px 0px 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    border-radius: 25px;
}
.formu .input textarea{
    width: 100%;
    font-size: 16px;
    padding: 5px 5px 5px 20px;
    border: 2px solid #ccc;
    border-radius: 25px;
    min-width: 100%;
    height: 100px;
    min-height: 44px;
    max-width: 320px;
    max-height: 100px;
}
.formu .field textarea:focus{
    border: 2px solid #ff6801;
    outline: none;
}
.btnContenedor {
    display: flex;
    justify-content: center;
    align-items: center;
 }
.formu .field .entrar{
    margin-top: 13px;
    height: 35px;
    width: 200px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    background: #ff6801;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
}
.formu .field .entrar:hover{
    color: #fff;
    background: #ff6801;
}
.msg .content label {
	display: flex;
	text-align: center;
	justify-content: center;
}
.msg .field .entrar{
    margin-top: 13px;
    height: 45px;
    width: 200px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    background: #ff6801;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
}
.msg .field .entrar:hover{
    color: #fff;
    background: #e76209;
}


.msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; 
	margin-top: -50px
}

.msg .content {
    text-align: center; 
}

.msg .btnContent {
    margin-top: 10px;
}


/*==============*/

.header-mensaje-bienvenida{
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  height: 80px;
}

.header-mensaje-bienvenida img{
  width: 350px;
}

