.vesc-widget{--vesc-accent:#2563eb;--vesc-accent-dark:#1e3a8a;--vesc-accent-soft:rgba(37,99,235,.12);position:fixed;right:24px;bottom:24px;z-index:999999;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.vesc-launcher{position:relative;display:flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:14px 18px;background:linear-gradient(135deg,var(--vesc-accent-dark),var(--vesc-accent));color:#fff;font-weight:800;box-shadow:0 14px 38px rgba(15,23,42,.28),0 0 0 0 var(--vesc-accent-soft);cursor:pointer;transition:transform .2s,box-shadow .2s;overflow:visible}.vesc-launcher:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 18px 42px rgba(15,23,42,.34)}.vesc-launcher-icon{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--vesc-accent);box-shadow:0 3px 10px rgba(0,0,0,.12)}.vesc-launcher-alert{position:absolute;right:8px;top:-3px;width:11px;height:11px;border-radius:50%;background:#ef4444;border:2px solid #fff;box-shadow:0 0 0 0 rgba(239,68,68,.5);animation:vescAlert 2s infinite}.vesc-attention{animation:vescNudge 3.2s ease-in-out infinite}.vesc-gentle-pulse{animation:vescPulse 3.5s ease-in-out 2}.vesc-proactive{position:absolute;right:0;bottom:64px;max-width:290px;display:flex;align-items:flex-start;gap:9px;background:#fff;color:#111827;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:13px 15px;box-shadow:0 16px 42px rgba(15,23,42,.18);font-size:14px;line-height:1.4;font-weight:650;cursor:pointer;opacity:0;transform:translateY(10px) scale(.97);transition:.28s ease}.vesc-proactive[hidden]{display:none}.vesc-proactive-show{opacity:1;transform:translateY(0) scale(1)}.vesc-proactive:after{content:"";position:absolute;right:28px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);border-right:1px solid rgba(15,23,42,.08);border-bottom:1px solid rgba(15,23,42,.08)}.vesc-proactive-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#22c55e;margin-top:4px;box-shadow:0 0 0 4px rgba(34,197,94,.12)}.vesc-panel{width:min(400px,calc(100vw - 28px));height:610px;max-height:78vh;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden;position:relative}.vesc-header{height:78px;display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,var(--vesc-accent-dark),var(--vesc-accent));color:#fff;padding:0 18px}.vesc-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff;color:var(--vesc-accent-dark);font-weight:900;font-size:13px}.vesc-headcopy{flex:1}.vesc-headcopy strong,.vesc-headcopy span{display:block}.vesc-headcopy span{font-size:12px;opacity:.82;margin-top:3px}.vesc-headcopy i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;margin-right:4px}.vesc-close{background:transparent!important;border:0!important;color:#fff!important;font-size:29px!important;line-height:1!important;cursor:pointer!important;padding:4px!important}.vesc-messages{height:calc(100% - 151px);overflow:auto;padding:18px 16px 12px;background:#f8fafc;scroll-behavior:smooth}.vesc-msgrow{display:flex;margin:0 0 11px}.vesc-userrow{justify-content:flex-end}.vesc-msg{max-width:84%;padding:11px 13px;border-radius:16px;line-height:1.45;font-size:14px;white-space:pre-wrap;box-sizing:border-box}.vesc-bot{background:#fff;color:#111827;border:1px solid #e5e7eb;border-bottom-left-radius:5px}.vesc-user{background:linear-gradient(135deg,var(--vesc-accent-dark),var(--vesc-accent));color:#fff;border-bottom-right-radius:5px}.vesc-typing{position:absolute;left:18px;bottom:66px;background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:9px 12px}.vesc-typing span{display:inline-block;width:5px;height:5px;margin:0 2px;border-radius:50%;background:#94a3b8;animation:vescblink 1s infinite}.vesc-typing span:nth-child(2){animation-delay:.15s}.vesc-typing span:nth-child(3){animation-delay:.3s}.vesc-form{height:58px;display:flex;gap:8px;padding:9px 11px;border-top:1px solid #e5e7eb;background:#fff;box-sizing:border-box}.vesc-form input{flex:1;min-width:0;border:1px solid #dbe2ea!important;border-radius:13px!important;padding:0 13px!important;outline:none!important;background:#fff!important;color:#111827!important;font-size:14px!important;box-shadow:none!important}.vesc-form input:focus{border-color:var(--vesc-accent)!important;box-shadow:0 0 0 3px var(--vesc-accent-soft)!important}.vesc-form button{width:42px!important;height:40px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--vesc-accent-dark),var(--vesc-accent))!important;color:#fff!important;padding:0!important;font-size:18px!important;font-weight:700!important;cursor:pointer!important}.vesc-brand{height:15px;text-align:center;background:#fff;color:#94a3b8;font-size:9px;line-height:13px}@keyframes vescblink{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}@keyframes vescAlert{0%{box-shadow:0 0 0 0 rgba(239,68,68,.45)}70%{box-shadow:0 0 0 9px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}@keyframes vescNudge{0%,72%,100%{transform:translateY(0) rotate(0)}78%{transform:translateY(-5px) rotate(-1deg)}84%{transform:translateY(0) rotate(1deg)}90%{transform:translateY(-3px) rotate(0)}}@keyframes vescPulse{0%,100%{box-shadow:0 14px 38px rgba(15,23,42,.28),0 0 0 0 var(--vesc-accent-soft)}50%{box-shadow:0 14px 38px rgba(15,23,42,.28),0 0 0 10px transparent}}@media(max-width:600px){.vesc-widget{right:10px;bottom:10px}.vesc-panel{width:calc(100vw - 20px);height:78vh;max-height:720px;border-radius:18px}.vesc-launcher{padding:13px 16px}.vesc-header{height:72px}.vesc-messages{height:calc(100% - 145px)}.vesc-proactive{right:0;max-width:min(280px,calc(100vw - 32px));bottom:62px}}
.vesc-whatsapp{position:fixed;z-index:1000000;width:58px;height:58px;border:0;border-radius:50%;padding:0;background:#25D366;color:#fff;box-shadow:0 12px 30px rgba(15,23,42,.24);cursor:pointer;display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.vesc-whatsapp:hover{transform:translateY(-2px) scale(1.05)!important;box-shadow:0 16px 36px rgba(15,23,42,.3)}.vesc-whatsapp:disabled{opacity:.72;cursor:wait}.vesc-wa-icon{width:34px;height:34px;display:block;color:#fff}.vesc-wa-icon svg{display:block;width:100%;height:100%}.vesc-wa-tooltip{position:absolute;right:68px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#111827;color:#fff;font-size:12px;font-weight:700;padding:8px 10px;border-radius:9px;opacity:0;pointer-events:none;transition:.18s ease;box-shadow:0 8px 24px rgba(15,23,42,.18)}.vesc-whatsapp:hover .vesc-wa-tooltip{opacity:1}.vesc-whatsapp.is-left-position .vesc-wa-tooltip{left:68px;right:auto}.vesc-whatsapp.is-left-position .vesc-wa-tooltip:after{left:-5px;right:auto}.vesc-whatsapp.is-offline{background:#25D366}.vesc-whatsapp.is-offline .vesc-wa-tooltip{opacity:1;background:#f59e0b;color:#111827}.vesc-whatsapp.is-offline:after{content:"";position:absolute;right:1px;top:1px;width:12px;height:12px;border-radius:50%;background:#f59e0b;border:2px solid #fff}.vesc-panel:not([hidden])~.vesc-whatsapp{display:none}@media(max-width:600px){.vesc-whatsapp{width:54px;height:54px}.vesc-wa-icon{width:31px;height:31px}.vesc-wa-tooltip{display:none}}

/* Ocultar WhatsApp mientras VE Smart Chat está abierto */
.vesc-whatsapp.vesc-force-hide{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}

/* v0.3.6: WhatsApp nunca se superpone al Smart Chat abierto. */
#vesc-panel:not([hidden]) + #vesc-whatsapp, #vesc-whatsapp.vesc-force-hide, #vesc-whatsapp[aria-hidden="true"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
