/* =====================================================================
   Bot de chat de la web de Kassfinol — bot.css
   Diseño sobrio, fondo oscuro, acento morado de la marca (#990099),
   texto grande pensado para leer en el celular.
   ===================================================================== */

#kfb-boton {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #990099;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#kfb-boton:hover { background: #7a007a; }

#kfb-ventana {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #1b1b1b;
  color: #f2f2f2;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  flex-direction: column;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

#kfb-cabecera {
  background: #990099;
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#kfb-cerrar {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

#kfb-mensajes {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kfb-burbuja {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.kfb-bot {
  background: #2d2d2d;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.kfb-usuario {
  background: #990099;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.kfb-burbuja a { color: #e08ae0; text-decoration: underline; }
.kfb-usuario a { color: #fff; }
.kfb-escribiendo { opacity: 0.6; font-style: italic; }

#kfb-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #333;
  background: #222;
}
#kfb-entrada {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #1b1b1b;
  font-size: 16px;
}
#kfb-entrada::placeholder { color: #777; }
#kfb-entrada:disabled { opacity: 0.5; }
#kfb-enviar {
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: #990099;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
#kfb-enviar:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  #kfb-ventana {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
  }
  #kfb-boton { right: 12px; bottom: 12px; }
}
