/* Sofía — asistente virtual */
.sa-launch{position:fixed;right:28px;bottom:100px;z-index:46;width:60px;height:60px;border-radius:50%;padding:0;border:2px solid #83b7f0;background:#0b1426;cursor:pointer;box-shadow:0 8px 30px #0008,0 0 0 0 #3276c980;animation:saPulse 2.6s infinite;transition:transform .2s}
.sa-launch:hover{transform:translateY(-3px)}
.sa-launch img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 20%;display:block}
.sa-launch::after{content:"";position:absolute;right:2px;bottom:2px;width:13px;height:13px;border-radius:50%;background:#25d366;border:2px solid #0b1426}
@keyframes saPulse{0%{box-shadow:0 8px 30px #0008,0 0 0 0 #3276c999}70%{box-shadow:0 8px 30px #0008,0 0 0 16px #3276c900}100%{box-shadow:0 8px 30px #0008,0 0 0 0 #3276c900}}
.sa-bubble{position:fixed;right:100px;bottom:112px;z-index:46;max-width:230px;background:#fff;color:#0b1426;padding:.65rem .9rem;border-radius:14px 14px 4px 14px;font:500 .85rem/1.35 system-ui,sans-serif;box-shadow:0 8px 24px #0006;cursor:pointer;opacity:0;transform:translateY(8px);transition:.3s;pointer-events:none}
.sa-bubble.show{opacity:1;transform:none;pointer-events:auto}
.sa-bubble b{color:#3276c9}
.sa-bubble button{position:absolute;top:-8px;left:-8px;width:22px;height:22px;border-radius:50%;border:0;background:#0b1426;color:#fff;font-size:12px;cursor:pointer;line-height:1}
.sa-win{position:fixed;right:28px;bottom:100px;z-index:60;width:380px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 130px);display:none;flex-direction:column;overflow:hidden;border-radius:18px;background:#070c16;border:1px solid #3276c955;box-shadow:0 20px 60px #000c;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#e7eefb}
.sa-win.open{display:flex;animation:saIn .25s ease}
@keyframes saIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.sa-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:linear-gradient(100deg,#0b1426,#10284d);border-bottom:1px solid #3276c940}
.sa-head img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:2px solid #83b7f0}
.sa-head div{flex:1;min-width:0}
.sa-head strong{display:block;font-size:15px}
.sa-head small{font-size:12px;color:#9fc3ee}
.sa-head small::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#25d366;margin-right:5px;vertical-align:1px}
.sa-ico{background:none;border:0;color:#cfe0f7;cursor:pointer;padding:7px;border-radius:8px;display:flex}
.sa-ico:hover{background:#ffffff14}
.sa-ico svg{width:18px;height:18px}
.sa-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:9px;scroll-behavior:smooth}
.sa-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.45}
.sa-msg.bot{align-self:flex-start;background:#122038;border-top-left-radius:4px}
.sa-msg.user{align-self:flex-end;background:#3276c9;color:#fff;border-top-right-radius:4px}
.sa-msg a{color:#83b7f0;font-weight:600}
.sa-quick{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start}
.sa-quick button,.sa-quick a{background:transparent;border:1.5px solid #3276c9;color:#cfe0f7;border-radius:20px;padding:7px 13px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;font-family:inherit}
.sa-quick button:hover,.sa-quick a:hover{background:#3276c9;color:#fff}
.sa-quick .wa{background:#25d366;border-color:#25d366;color:#062b15}
.sa-quick .wa:hover{background:#46e782;color:#062b15}
.sa-typing{align-self:flex-start;background:#122038;padding:12px 14px;border-radius:14px;display:flex;gap:4px}
.sa-typing span{width:7px;height:7px;background:#83b7f0;border-radius:50%;animation:saDot 1s infinite}
.sa-typing span:nth-child(2){animation-delay:.15s}.sa-typing span:nth-child(3){animation-delay:.3s}
@keyframes saDot{0%,60%,100%{opacity:.3}30%{opacity:1}}
.sa-foot{display:flex;gap:6px;padding:10px 12px;border-top:1px solid #3276c940;background:#0b1426}
.sa-foot input{flex:1;min-width:0;background:#070c16;border:1px solid #3276c966;color:#fff;border-radius:22px;padding:10px 14px;font-size:16px;outline:none;font-family:inherit}
.sa-foot input:focus{border-color:#83b7f0}
.sa-note{font-size:10.5px;color:#7f93b3;text-align:center;padding:0 12px 8px;background:#0b1426}
.sa-note a{color:#9fc3ee}
body.modal-open .sa-launch,body.modal-open .sa-bubble{visibility:hidden}
@media(max-width:599px){
 .sa-launch{right:18px;bottom:calc(84px + env(safe-area-inset-bottom));width:56px;height:56px}
 .sa-bubble{right:84px;bottom:calc(92px + env(safe-area-inset-bottom))}
 .sa-win{right:0;left:0;bottom:0;width:100%;max-width:100%;height:100%;max-height:100dvh;border-radius:0}
}
@media(prefers-reduced-motion:reduce){.sa-launch{animation:none}}
.sa-promo{align-self:stretch;position:relative;padding:14px 14px 12px;border-radius:16px;background:linear-gradient(135deg,#1a4fa0,#3276c9 55%,#5aa0f0);color:#fff;box-shadow:0 8px 24px #3276c955;overflow:hidden}
.sa-promo::after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:#ffffff1f}
.sa-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#ffc400;color:#1b1300;padding:3px 8px;border-radius:99px}
.sa-promo strong{display:block;font-size:17px;margin-top:8px}
.sa-promo p{margin:2px 0 6px;font-size:14px}
.sa-promo p b{font-size:28px;font-weight:800;letter-spacing:-.02em}
.sa-promo small{display:block;font-size:12.5px;line-height:1.4;color:#e8f1ff}
.sa-promo a{position:relative;z-index:1;display:block;text-align:center;margin-top:10px;padding:10px;border-radius:12px;background:#25d366;color:#062b15;font-weight:800;font-size:14px;text-decoration:none;animation:saGlow 2s infinite}
.sa-promo a:hover{background:#46e782}
@keyframes saGlow{50%{box-shadow:0 0 0 6px #25d36633}}
.sa-bubble{max-width:250px}
.sa-body>*{flex-shrink:0}
