/* Juan Saurio — estilos del widget de chat */
:root{
  --jusa-green:#8bbf3f; --jusa-green-dk:#6f9e2c;
  --jusa-ink:#1c1c22; --jusa-pink:#ec4d96; --jusa-blue:#1fb6db;
}
#jusa-root *{box-sizing:border-box}

.jusa-fab{
  position:fixed;right:20px;bottom:20px;z-index:99998;
  width:66px;height:66px;border-radius:50%;border:none;cursor:pointer;
  background:none;padding:0;box-shadow:0 12px 30px rgba(0,0,0,.28);
  transition:transform .2s;
}
.jusa-fab:hover{transform:scale(1.08) rotate(-4deg)}
.jusa-fab svg{width:66px;height:66px;border-radius:50%}
.jusa-fab .jusa-ava-img{width:66px;height:66px;border-radius:50%;object-fit:cover;background:#fff;border:3px solid #fff;box-sizing:border-box}
.jusa-ava-img{display:block}

.jusa-panel{
  position:fixed;right:20px;bottom:98px;z-index:99999;
  width:min(380px,calc(100vw - 40px));max-height:min(640px,80vh);
  display:flex;flex-direction:column;
  background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.30);
  font-family:'Nunito',system-ui,sans-serif;
  animation:jusa-pop .25s ease;
}
@keyframes jusa-pop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.jusa-head{
  display:flex;align-items:center;gap:.6rem;
  background:var(--jusa-green);padding:.7rem .9rem;color:#234;
}
.jusa-head-ava{width:38px;height:38px;flex:none}
.jusa-head-ava svg{width:38px;height:38px}
.jusa-head-ava .jusa-ava-img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#fff}
.jusa-head-name{font-family:'Poppins',sans-serif;font-weight:600;font-size:1.05rem;flex:1;color:#fff}
.jusa-close{background:none;border:none;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}

.jusa-log{flex:1;overflow-y:auto;padding:1rem;background:#f6f7f2;display:flex;flex-direction:column;gap:.6rem}

.jusa-msg{display:flex}
.jusa-bot{justify-content:flex-start}
.jusa-user{justify-content:flex-end}
.jusa-bub{max-width:84%;padding:.6rem .85rem;border-radius:14px;font-size:.92rem;line-height:1.45}
.jusa-bot .jusa-bub{background:#fff;color:#222;border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.jusa-user .jusa-bub{background:var(--jusa-blue);color:#fff;border-bottom-right-radius:4px}

.jusa-typing{display:flex;gap:4px;align-items:center}
.jusa-typing span{width:7px;height:7px;border-radius:50%;background:#bbb;animation:jusa-blink 1.2s infinite}
.jusa-typing span:nth-child(2){animation-delay:.2s}
.jusa-typing span:nth-child(3){animation-delay:.4s}
@keyframes jusa-blink{0%,60%,100%{opacity:.3}30%{opacity:1}}

/* tarjetas de producto */
.jusa-cards{display:flex;flex-direction:column;gap:.6rem;margin:.2rem 0}
.jusa-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08);display:flex}
.jusa-card-img{width:84px;flex:none;background-size:cover;background-position:center;min-height:96px;
  display:grid;place-items:center;font-size:1.8rem}
.jusa-card-noimg{background:linear-gradient(135deg,var(--jusa-pink),#c93576);color:#fff}
.jusa-card-body{padding:.6rem .75rem;flex:1;min-width:0}
.jusa-card-tag{font-family:'Poppins',sans-serif;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;
  color:#fff;background:#9a9aa3;padding:.1rem .5rem;border-radius:999px;display:inline-block;margin-bottom:.25rem}
.jusa-card h4{font-family:'Poppins',sans-serif;font-size:.95rem;margin:0 0 .2rem;line-height:1.2}
.jusa-card p{font-size:.78rem;color:#666;margin:0 0 .4rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jusa-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.4rem;flex-wrap:wrap}
.jusa-card-price{font-family:'Poppins',sans-serif;font-weight:700;font-size:.95rem}
.jusa-card-actions{display:flex;gap:.35rem;align-items:center}
.jusa-btn{font-family:'Poppins',sans-serif;font-weight:600;font-size:.78rem;border-radius:999px;
  padding:.35rem .7rem;cursor:pointer;border:none;text-decoration:none;white-space:nowrap}
.jusa-btn-ghost{background:#eee;color:#333}
.jusa-btn-solid{background:var(--jusa-ink);color:#fff}
.jusa-btn-solid.jusa-added{background:var(--jusa-green-dk)}
.jusa-cartlink{display:block;font-size:.76rem;font-weight:700;color:var(--jusa-green-dk);margin-top:.3rem;text-decoration:none}

/* CTA WhatsApp */
.jusa-wa{align-self:flex-start;background:#25d366;color:#fff;font-family:'Poppins',sans-serif;font-weight:600;
  font-size:.86rem;padding:.55rem 1rem;border-radius:999px;text-decoration:none;margin:.2rem 0}
.jusa-wa:hover{filter:brightness(1.05)}

.jusa-form{display:flex;gap:.5rem;padding:.7rem;background:#fff;border-top:1px solid #eee}
.jusa-form input{flex:1;border:1.5px solid #ddd;border-radius:999px;padding:.6rem .9rem;font-size:.92rem;font-family:inherit}
.jusa-form input:focus{outline:none;border-color:var(--jusa-green)}
.jusa-form button{border:none;background:var(--jusa-ink);color:#fff;border-radius:50%;width:42px;height:42px;cursor:pointer;font-size:1rem}
