#aidchat-wrap,#aidchat-wrap *{box-sizing:border-box;font-family:'Manrope','Helvetica Neue',Arial,sans-serif;line-height:normal}#aidchat-wrap button{cursor:pointer;font-family:inherit}#aidchat-wrap textarea{font-family:inherit;resize:none}#aidchat-tip{position:fixed;bottom:104px;right:28px;z-index:2147483630;background:#0b1526;border:1px solid rgba(0,212,200,.28);border-radius:12px;padding:10px 16px;font-size:13px;font-weight:600;color:#f0f4ff;box-shadow:0 8px 28px rgba(0,0,0,.5);white-space:nowrap;cursor:pointer;display:none;animation:aidchat-up .35s ease both}#aidchat-tip::after{content:'';position:absolute;bottom:-6px;right:20px;width:12px;height:12px;background:#0b1526;border-right:1px solid rgba(0,212,200,.28);border-bottom:1px solid rgba(0,212,200,.28);transform:rotate(45deg)}#aidchat-bub{position:fixed;bottom:28px;right:28px;z-index:2147483640;width:62px;height:62px;border-radius:50%;border:2px solid rgba(0,212,200,.5);outline:none;background:#0b1526;display:flex;align-items:center;justify-content:center;padding:0;box-shadow:0 6px 28px rgba(0,180,220,.5);animation:aidchat-pulse 3s ease-in-out infinite;transition:transform .22s,box-shadow .22s}#aidchat-bub:hover{transform:scale(1.1);animation:none;box-shadow:0 10px 36px rgba(0,180,220,.65)}#aidchat-bub.open{animation:none}.aidchat-ico{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;transition:opacity .2s,transform .2s}.aidchat-ico img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.aidchat-x{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:#fff;background:rgba(11,21,38,.85);border-radius:50%;opacity:0;transform:scale(.3);transition:opacity .2s,transform .2s}#aidchat-bub.open .aidchat-ico{opacity:0;transform:scale(.3)}#aidchat-bub.open .aidchat-x{opacity:1;transform:scale(1)}#aidchat-badge{position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background:#ff4757;border:2px solid #fff;font-size:10px;font-weight:800;color:#fff;display:flex;align-items:center;justify-content:center;font-family:'JetBrains Mono',monospace;z-index:1}#aidchat-panel{position:fixed;bottom:104px;right:28px;z-index:2147483641;width:360px;height:540px;max-height:calc(100vh - 120px);background:#0b1526;border:1px solid rgba(0,212,200,.2);border-radius:20px;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.75);overflow:hidden;transform-origin:bottom right;transform:scale(.85) translateY(10px);opacity:0;pointer-events:none;transition:transform .26s cubic-bezier(.34,1.2,.64,1),opacity .2s ease}#aidchat-panel::before{content:'';position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,200,.6),transparent);pointer-events:none}#aidchat-panel.open{transform:scale(1) translateY(0);opacity:1;pointer-events:all}.aidchat-head{padding:14px 16px;flex-shrink:0;background:linear-gradient(135deg,rgba(26,140,255,.1),rgba(0,212,200,.05));border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:10px}.aidchat-hav{width:40px;height:40px;border-radius:50%;flex-shrink:0;overflow:hidden;border:2px solid rgba(0,212,200,.45);box-shadow:0 4px 14px rgba(0,180,220,.3)}.aidchat-hav img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.aidchat-hname{font-size:14px;font-weight:800;color:#f0f4ff;line-height:1.2}.aidchat-hstatus{font-size:10px;color:#00d4c8;font-family:'JetBrains Mono',monospace;letter-spacing:.08em;display:flex;align-items:center;gap:4px;margin-top:2px}.aidchat-dot{width:6px;height:6px;border-radius:50%;background:#00d4c8;animation:aidchat-blink 2s ease-in-out infinite;flex-shrink:0}.aidchat-hbtns{display:flex;gap:6px;margin-left:auto}.aidchat-hbtns button{width:28px;height:28px;border-radius:7px;border:none;background:rgba(255,255,255,.06);color:#6a7d9e;font-size:13px;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.aidchat-hbtns button:hover{background:rgba(255,255,255,.12);color:#f0f4ff}#aidchat-msgs{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;background:#0b1526}#aidchat-msgs::-webkit-scrollbar{width:3px}#aidchat-msgs::-webkit-scrollbar-thumb{background:rgba(0,212,200,.15);border-radius:2px}.aidchat-msg{display:flex;gap:8px;align-items:flex-end;animation:aidchat-up .22s ease both}.aidchat-msg.u{flex-direction:row-reverse}.aidchat-mav{width:26px;height:26px;border-radius:50%;flex-shrink:0;overflow:hidden;border:1.5px solid rgba(0,212,200,.4)}.aidchat-mav img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.aidchat-mb{max-width:100%;padding:9px 13px;border-radius:14px;font-size:13px;line-height:1.6;font-weight:500;overflow-wrap:anywhere;word-break:break-word}.aidchat-msg>div:not(.aidchat-mav){min-width:0;max-width:80%}.aidchat-msg.b .aidchat-mb{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:#c8d4e8;border-bottom-left-radius:3px}.aidchat-msg.u .aidchat-mb{background:linear-gradient(135deg,rgba(26,140,255,.22),rgba(0,212,200,.13));border:1px solid rgba(0,212,200,.2);color:#f0f4ff;border-bottom-right-radius:3px}.aidchat-mt{font-size:9px;color:rgba(255,255,255,.2);margin-top:3px;padding:0 2px;font-family:'JetBrains Mono',monospace}.aidchat-typing .aidchat-mb{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);padding:12px 14px}.aidchat-dots{display:flex;gap:4px}.aidchat-dots span{width:6px;height:6px;border-radius:50%;background:#6a7d9e;animation:aidchat-dt .9s ease-in-out infinite}.aidchat-dots span:nth-child(2){animation-delay:.18s}.aidchat-dots span:nth-child(3){animation-delay:.36s}#aidchat-chips{padding:0 12px 8px;display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0;background:#0b1526}.aidchat-chip{padding:5px 11px;border-radius:999px;border:1px solid rgba(0,212,200,.22);background:rgba(0,212,200,.07);font-size:11px;font-weight:600;color:#00d4c8;cursor:pointer;transition:background .15s,transform .12s;white-space:nowrap}.aidchat-chip:hover{background:rgba(0,212,200,.16);transform:translateY(-1px)}.aidchat-lead{margin:4px 0;padding:11px 13px;background:rgba(0,212,200,.05);border:1px solid rgba(0,212,200,.15);border-radius:11px;display:flex;flex-direction:column;gap:7px}.aidchat-lead input{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 11px;font-size:12px;color:#f0f4ff;outline:none;width:100%;transition:border-color .2s}.aidchat-lead input:focus{border-color:rgba(0,212,200,.5)}.aidchat-lead input::placeholder{color:#6a7d9e}.aidchat-lbtn{width:100%;padding:9px;border:none;border-radius:8px;background:linear-gradient(135deg,#1a8cff,#00d4c8);font-size:11px;font-weight:800;color:#fff;cursor:pointer;text-transform:uppercase;letter-spacing:.04em;transition:filter .15s}.aidchat-lbtn:hover{filter:brightness(1.1)}.aidchat-input{padding:10px 12px;border-top:1px solid rgba(255,255,255,.06);display:flex;gap:8px;align-items:flex-end;flex-shrink:0;background:rgba(6,12,24,.5)}#aidchat-inp{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:9px 13px;font-size:13px;color:#f0f4ff;outline:none;max-height:80px;line-height:1.5;transition:border-color .2s}#aidchat-inp:focus{border-color:rgba(0,212,200,.4)}#aidchat-inp::placeholder{color:#6a7d9e}#aidchat-send{width:36px;height:36px;border-radius:10px;border:none;flex-shrink:0;background:linear-gradient(135deg,#1a8cff,#00d4c8);color:#fff;font-size:14px;display:flex;align-items:center;justify-content:center;transition:filter .15s,transform .12s}#aidchat-send:hover{filter:brightness(1.1);transform:scale(1.06)}#aidchat-send:disabled{opacity:.4;cursor:not-allowed;transform:none}.aidchat-foot{padding:5px 12px 8px;text-align:center;flex-shrink:0;font-size:9px;color:rgba(255,255,255,.15);letter-spacing:.08em;font-family:'JetBrains Mono',monospace;background:#0b1526}@keyframes aidchat-pulse{0%,100%{box-shadow:0 6px 28px rgba(0,180,220,.5),0 0 0 0 rgba(0,212,200,.4)}50%{box-shadow:0 6px 28px rgba(0,180,220,.5),0 0 0 12px rgba(0,212,200,0)}}@keyframes aidchat-up{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes aidchat-blink{0%,100%{opacity:1}50%{opacity:.2}}@keyframes aidchat-dt{0%,80%,100%{transform:translateY(0);opacity:.3}40%{transform:translateY(-5px);opacity:1}}@media(max-width:480px){#aidchat-panel{width:calc(100vw - 20px);right:10px;bottom:82px}#aidchat-bub{bottom:16px;right:16px;width:56px;height:56px}#aidchat-tip{right:10px;bottom:84px}}
/* v4.10 — logo «Nodo» animado en el botón flotante y en la cabecera del chat (antes, chip de circuito) */
#aidchat-wrap .aidchat-ico .aid-mark{display:block;width:54%;height:54%}
#aidchat-wrap .aidchat-hav{display:flex;align-items:center;justify-content:center;background:#0b1526}
#aidchat-wrap .aidchat-hav .aid-mark{display:block;width:58%;height:58%}

/* v4.13 — chat.css se carga sin bloquear la página; hasta entonces el chat está oculto (functions.php, aid_head_perf) */
html #aidchat-wrap{display:block}
