html {
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: transparent;
  text-align: center;
  /* padding: 20px; */
  /* background-image: url('fondo.PNG'); */
  /* Reemplaza con la URL de tu imagen */
  background-size: cover;
  /* Ajusta la imagen para cubrir toda la pantalla */
  background-position: center;
  /* Centra la imagen */
  background-repeat: no-repeat;
  /* Evita que la imagen se repita */
  background-attachment: fixed;
  /* Hace que la imagen no se mueva al hacer scroll */
  height: 100vh;
  /* Asegura que cubra toda la pantalla */
  margin: 0;
  /* Elimina los márgenes predeterminados del body */
}

#texto{
  color: #fff;
}


.chatbot-container {
  position: fixed;
  /* bottom: 18px; */
  right: 0px;
  z-index: 1000;
}

.chat-button {
  background-color: #d79fff96; /*#D79FFF;*/
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.chat-button:hover {
  transform: scale(1.1);
}

.chat-window {
  width: 99%;
  height: 100vh;
  background: white;
  border-radius: 15px;
  /* box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0px;
  right: 0px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none;
}

.chat-header {
  background-color: #003B61;
  color: white;
  padding: 10px;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 16px;
}

.bot-message,
.user-message {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 16px;
}

.bot-message {
  background-color: #e1f5fe;
  text-align: left;
}

.user-message {
  background-color: #d1c4e9;
  text-align: right;
  align-self: flex-end;
}

.chat-footer {
  display: flex;
  padding: 12px;
  border-top: 1px solid #ddd;
}

.chat-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
}

.chat-footer button {
  background-color: #D79FFF;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 8px;
  font-size: 16px;
}

/* Estilos para móviles */
.chatbot-container-mobile {
  position: fixed;
  /* bottom: 20px; */
  right: 0px;
  z-index: 1000;
}

.chat-button-mobile {
  background-color: #d79fff96;
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.chat-window-mobile {
  max-height: 98vh;
  width: 98%;
  height: 98vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 50px;
  right: 1%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-header-mobile {
  background-color: #003B61;
  color: white;
  padding: 0.5em;
  font-size: 300%;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body-mobile {
  flex: 1; 
  padding: 0.3em;
  overflow-y: auto;
  font-size: 2em;
}

.bot-message-mobile,
.user-message-mobile {
  padding: 0.5em;
  border-radius: 0.5em;
  margin-bottom: 0.5em;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 1.3em;
}

.bot-message-mobile {
  background-color: #e1f5fe;
  text-align: left;
}

.user-message-mobile {
  background-color: #d1c4e9;
  text-align: right;
  align-self: flex-end;
}


.chat-footer-mobile {
  display: flex;
  padding: 0.5em;
  border-top: 1px solid #ddd;
}

.chat-footer-mobile input {
  flex: 1;
  padding: 0.5em;
  border: none;
  border-radius: 00.5em;
  outline: none;
  font-size: 2em;
}

.chat-footer-mobile button {
  background-color: #D79FFF;
  color: white;
  border: none;
  padding: 0.5em 0.9em;
  border-radius: 0.5em;
  cursor: pointer;
  margin-left: 0.3em;
  font-size: 2.5em;
}

@media (max-width: 575px) {
  .chat-window-mobile {
    height: 80vh;
    max-height: 90vh;
  }

  .chat-header-mobile {
    font-size: 1.2rem;
  }

  .chat-body-mobile {
    font-size: 0.7rem;
  }

  .chat-footer-mobile input {
    font-size: 0.8rem;
  }

  .chat-footer-mobile button {
    font-size: 1.3rem;
  }

}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  background: #f8f9fa;
  border-radius: 10px;
  max-width: 91%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-size: 16px;

}

.recommendation-list li {
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}
.recommendation-list li.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}
.recommendation-list li:last-child {
  border-bottom: none;
}

.recommendation-list li:hover {
  background: #D79FFF;
  color: white;
  transform: scale(1.02);

}

.recommendation-list-mobile {
  list-style: none;
  padding: 0;
  background: #f8f9fa;
  border-radius: 0.5em;
  max-width: 85%;
  max-height: 100vh;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  word-wrap: break-word;
  font-size: 16px;
  /* font-size: 100px; */

}

.recommendation-list-mobile li {
  padding: 0.5em;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s ease, transform 0.2s ease;
  color: #333;
  cursor: pointer;
  font-size: 16px;
}

.recommendation-list-mobile li:last-child {
  border-bottom: none;
}

.recommendation-list-mobile li:hover {
  background: #D79FFF;
  color: white;
  transform: scale(1.02);

}

#role-ver {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  cursor: pointer;
  background-color: #fff;
  transition: border-color 0.3s ease-in-out;
  appearance: none;
  /* Elimina el estilo predeterminado del sistema */
  outline: none;
}

#role-ver:hover {
  border-color: #D79FFF;
}
