.leo-seller-ai-floating{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:99999;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.lsa-launch{
  border:0;
  border-radius:22px;
  background:#fff;
  color:#111827;
  padding:10px 14px 10px 10px;
  font-weight:700;
  box-shadow:0 16px 44px rgba(15,23,42,.22);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:11px;
  max-width:min(330px,calc(100vw - 28px));
  min-height:62px;
  border:1px solid rgba(31,41,55,.10);
  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.lsa-launch:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 54px rgba(15,23,42,.27);
}

.lsa-launch-icon{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--lsa-primary,#1f2937),#111827);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  letter-spacing:.04em;
  box-shadow:0 9px 20px rgba(31,41,55,.22);
}

.lsa-launch-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.15;
}

.lsa-launch-copy strong{
  font-size:14px;
  color:#111827;
}

.lsa-launch-copy small{
  font-size:12px;
  color:#6b7280;
  font-weight:600;
}

.leo-seller-ai-floating.lsa-open .lsa-launch{
  opacity:.0;
  pointer-events:none;
  transform:translateY(6px);
}

.lsa-panel{
  width:min(410px,calc(100vw - 28px));
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.leo-seller-ai-floating .lsa-panel{
  position:absolute;
  right:0;
  bottom:78px;
}

.lsa-inline-panel{
  width:100%;
  max-width:760px;
  margin:24px auto;
}

.lsa-card{
  background:#fff;
  border:1px solid rgba(31,41,55,.12);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(15,23,42,.18);
  overflow:hidden;
}

.lsa-head{
  background:
    radial-gradient(circle at 16% 0%, rgba(201,163,106,.36), transparent 28%),
    linear-gradient(135deg,var(--lsa-primary,#1f2937),#111827);
  color:#fff;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.lsa-head-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.lsa-avatar{
  width:40px;
  height:40px;
  border-radius:15px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  letter-spacing:.04em;
  flex:0 0 auto;
}

.lsa-head strong{
  display:block;
  font-size:15px;
  line-height:1.15;
}

.lsa-head span:not(.lsa-avatar){
  display:block;
  font-size:12px;
  opacity:.78;
  margin-top:2px;
  line-height:1.15;
}

.lsa-min{
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:50%;
  width:30px;
  height:30px;
  cursor:pointer;
  font-size:18px;
  flex:0 0 auto;
}

.lsa-progress-wrap{
  padding:12px 16px 11px;
  background:#fff;
  border-bottom:1px solid #eef2f7;
}

.lsa-progress-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#6b7280;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.045em;
  margin-bottom:8px;
}

.lsa-progress-track{
  height:7px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
}

.lsa-progress-bar{
  display:block;
  height:100%;
  width:8%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--lsa-accent,#c9a36a),#e4c58f);
  transition:width .22s ease;
}

.lsa-body{
  height:325px;
  overflow:auto;
  padding:17px 16px;
  background:linear-gradient(180deg,#f9fafb,#f3f4f6);
  scroll-behavior:smooth;
}

.lsa-msg{
  max-width:88%;
  padding:11px 13px;
  border-radius:16px;
  margin:0 0 11px;
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
  animation:lsaMsgIn .24s ease both;
}

@keyframes lsaMsgIn{
  from{opacity:0; transform:translateY(5px)}
  to{opacity:1; transform:translateY(0)}
}

.lsa-typing{
  display:inline-flex;
  align-items:center;
  gap:5px;
  width:auto;
  min-width:58px;
  padding:12px 14px;
}

.lsa-typing span{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#9ca3af;
  display:block;
  animation:lsaTypingBounce 1.15s infinite ease-in-out;
}

.lsa-typing span:nth-child(2){ animation-delay:.16s; }
.lsa-typing span:nth-child(3){ animation-delay:.32s; }

@keyframes lsaTypingBounce{
  0%, 80%, 100%{ transform:translateY(0); opacity:.42; }
  40%{ transform:translateY(-4px); opacity:1; }
}

.lsa-bot{
  background:#fff;
  border:1px solid #e8edf3;
  color:#111827;
  border-bottom-left-radius:5px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.lsa-user{
  background:var(--lsa-primary,#1f2937);
  color:#fff;
  margin-left:auto;
  border-bottom-right-radius:5px;
}

.lsa-helper{
  padding:10px 14px 0;
  color:#6b7280;
  font-size:12px;
  line-height:1.4;
  background:#fff;
}


.lsa-helper-success{
  margin:10px 12px 0;
  padding:11px 13px;
  border-radius:16px;
  background:linear-gradient(135deg,#1f2937,#111827);
  color:#ffffff;
  border:1px solid rgba(201,163,106,.34);
  font-weight:500;
  box-shadow:0 10px 24px rgba(15,23,42,.14);
}

.lsa-form{
  display:flex;
  gap:8px;
  padding:12px;
  border-top:1px solid #eef2f7;
  background:#fff;
}


.lsa-nav{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:0 12px 10px;
  background:#fff;
}

.lsa-nav[hidden]{
  display:none !important;
}

.lsa-nav button{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#374151;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.lsa-nav button:hover{
  background:#f3f4f6;
  border-color:#d1d5db;
  transform:translateY(-1px);
}

.lsa-input{
  flex:1;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:12px;
  font-size:14px;
  min-width:0;
}

.lsa-input:focus{
  outline:2px solid rgba(201,163,106,.45);
  border-color:var(--lsa-accent,#c9a36a);
}

.lsa-send{
  border:0;
  background:var(--lsa-accent,#c9a36a);
  color:#111827;
  border-radius:14px;
  padding:0 14px;
  font-weight:700;
  cursor:pointer;
  transition:transform .16s ease, filter .16s ease, opacity .16s ease;
}

.lsa-send:hover:not(:disabled){
  transform:translateY(-1px);
  filter:saturate(1.05);
}

.lsa-send:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.lsa-consent{
  display:block;
  padding:0 14px 14px;
  color:#4b5563;
  font-size:12px;
  line-height:1.35;
  background:#fff;
}

.lsa-consent a{
  color:var(--lsa-primary,#1f2937);
  font-weight:700;
}

.lsa-success-actions{
  margin:4px 0 10px;
}

.lsa-wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 15px;
  border-radius:999px;
  background:linear-gradient(135deg,#128c4a,#0f7a41);
  color:#fff;
  border:1px solid rgba(15,122,65,.86);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  box-shadow:0 10px 24px rgba(18,140,74,.26);
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.lsa-wa:hover{
  color:#fff;
  transform:translateY(-1px);
  filter:saturate(1.05);
  box-shadow:0 13px 30px rgba(18,140,74,.31);
}

.lsa-body::-webkit-scrollbar{
  width:8px;
}

.lsa-body::-webkit-scrollbar-track{
  background:transparent;
}

.lsa-body::-webkit-scrollbar-thumb{
  background:rgba(107,114,128,.25);
  border-radius:999px;
}

@media(max-width:520px){
  .leo-seller-ai-floating{
    right:12px;
    bottom:12px;
  }

  .leo-seller-ai-floating .lsa-panel{
    right:0;
    bottom:72px;
  }

  .lsa-body{
    height:300px;
  }

  .lsa-launch{
    min-height:56px;
    padding:9px 12px 9px 9px;
    border-radius:20px;
  }

  .lsa-launch-icon{
    width:38px;
    height:38px;
    border-radius:14px;
  }

  .lsa-launch-copy strong{
    font-size:13px;
  }

  .lsa-launch-copy small{
    font-size:11px;
  }

  .lsa-card{
    border-radius:18px;
  }

  .lsa-progress-label{
    font-size:10px;
  }
}

.lsa-intent-options{
  display:grid;
  gap:8px;
  margin:2px 0 12px;
  max-width:92%;
}

.lsa-intent-options button{
  border:1px solid rgba(31,41,55,.12);
  background:#ffffff;
  color:#111827;
  border-radius:14px;
  padding:11px 12px;
  text-align:left;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  box-shadow:0 5px 16px rgba(15,23,42,.05);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.lsa-intent-options button:hover{
  transform:translateY(-1px);
  border-color:var(--lsa-accent,#c9a36a);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}

.lsa-form-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#1f2937;
  color:#fff !important;
  text-decoration:none;
  border-radius:999px;
  padding:12px 16px;
  font-weight:500;
  box-shadow:0 10px 22px rgba(31,41,55,.18);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.lsa-form-link:hover{
  background:#111827;
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(31,41,55,.22);
}

/* v0.1.25 · navegación superior fija dentro del asistente */
.lsa-top-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  margin:8px 0 1px;
}

.lsa-top-nav[hidden],
.lsa-top-next[hidden]{
  display:none !important;
}

.lsa-top-nav button{
  border:1px solid rgba(31,41,55,.12);
  background:#ffffff;
  color:#374151;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(15,23,42,.04);
  transition:transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.lsa-top-nav button:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:var(--lsa-accent,#c9a36a);
  background:#fdfbf7;
}

.lsa-top-nav button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.lsa-top-next{
  color:#111827 !important;
  background:linear-gradient(135deg,var(--lsa-accent,#c9a36a),#e4c58f) !important;
  border-color:rgba(201,163,106,.65) !important;
}

@media(max-width:520px){
  .lsa-top-nav{
    gap:6px;
  }
  .lsa-top-nav button{
    padding:7px 9px;
    font-size:10.5px;
  }
}
