/* Chispa: mascota y chat de Openly */
.ch-mascot{position:fixed;right:14px;bottom:80px;z-index:91;width:82px;height:82px;padding:0;border:0;background:none;cursor:pointer;filter:drop-shadow(3px 4px 0 #111);animation:ch-bob 3.4s ease-in-out infinite;-webkit-tap-highlight-color:transparent}
.ch-mascot svg{display:block;width:100%;height:100%;overflow:visible}
.ch-mascot:hover{animation:ch-wig .6s ease-in-out}
.ch-mascot:focus-visible{outline:3px solid #111;outline-offset:4px;border-radius:50%}
@keyframes ch-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}
@keyframes ch-wig{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg) scale(1.08)}75%{transform:rotate(12deg) scale(1.08)}}
@keyframes ch-blink{0%,92%,100%{transform:scaleY(0)}95%{transform:scaleY(1)}}
.ch-hi{position:fixed;right:20px;bottom:162px;z-index:91;max-width:230px;padding:10px 14px;background:#F3EEC9;color:#111;border:2px solid #111;border-radius:8px;box-shadow:4px 4px 0 #111;font:600 14px/1.35 Inter,system-ui,sans-serif;cursor:pointer;transform-origin:90% 100%}
.ch-hi::after{content:"";position:absolute;right:26px;bottom:-9px;width:14px;height:14px;background:#F3EEC9;border:solid #111;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ch-panel{position:fixed;right:16px;bottom:16px;z-index:92;width:min(370px,calc(100vw - 20px));height:min(560px,calc(100dvh - 32px));display:flex;flex-direction:column;background:#F3EEC9;color:#111;border:3px solid #111;border-radius:8px;box-shadow:8px 8px 0 #C8141B;overflow:hidden;font-family:Inter,system-ui,sans-serif}
.ch-panel[hidden],.ch-hi[hidden],.ch-mascot[hidden]{display:none}
.ch-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#111;color:#F3EEC9}
.ch-head svg{width:36px;height:36px;flex:none}
.ch-head b{display:block;font:600 17px Oswald,sans-serif;text-transform:uppercase;letter-spacing:.02em}
.ch-head small{display:block;font-size:12px;opacity:.8}
.ch-x{margin-left:auto;width:44px;height:44px;border:0;background:none;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.ch-log{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;background:radial-gradient(rgba(17,17,17,.08) 1px,transparent 1.5px) 0 0/8px 8px}
.ch-m{max-width:86%;padding:9px 12px;border:2px solid #111;border-radius:8px;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-m.bot{align-self:flex-start;background:#FBF8E6;box-shadow:3px 3px 0 #111}
.ch-m.me{align-self:flex-end;background:#C8141B;color:#F3EEC9;font-weight:600}
.ch-m.typing{display:flex;gap:5px;padding:12px 14px}
.ch-m.typing i{width:7px;height:7px;border-radius:50%;background:#111;animation:ch-dot 1s infinite}
.ch-m.typing i:nth-child(2){animation-delay:.15s}.ch-m.typing i:nth-child(3){animation-delay:.3s}
@keyframes ch-dot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}
.ch-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px}
.ch-chips button{min-height:36px;padding:6px 11px;font:600 13px Inter,system-ui,sans-serif;background:#FBF8E6;color:#111;border:2px solid #111;border-radius:999px;cursor:pointer}
.ch-chips button:hover{background:#111;color:#F3EEC9}
.ch-form{display:flex;gap:8px;padding:10px 12px;border-top:3px solid #111;background:#FBF8E6}
.ch-form input{flex:1;min-width:0;min-height:44px;padding:8px 12px;font:16px Inter,system-ui,sans-serif;color:#111;background:#fff;border:2px solid #111;border-radius:6px}
.ch-form button{min-height:44px;padding:0 16px;font:800 14px Inter,system-ui,sans-serif;background:#C8141B;color:#F3EEC9;border:2px solid #111;border-radius:6px;box-shadow:3px 3px 0 #111;cursor:pointer}
.ch-form input:focus-visible,.ch-form button:focus-visible,.ch-x:focus-visible,.ch-chips button:focus-visible{outline:3px solid #C8141B;outline-offset:2px}
.ch-foot{padding:6px 12px 10px;font-size:12px;color:#3a392b;background:#FBF8E6}
.ch-foot a{color:#C8141B;font-weight:700}
@media(max-width:600px){.ch-mascot{width:60px;height:60px;right:12px;bottom:78px}.ch-hi{right:14px;bottom:146px}.ch-panel{right:10px;bottom:10px}}
@media(prefers-reduced-motion:reduce){.ch-mascot,.ch-m.typing i{animation:none}}

/* Esfera: los ojos se funden y se vuelven el logo de Openly */
.m-look{transition:transform .1s linear}
.m-eye{transform-box:fill-box;transform-origin:center;animation:m-blink 5s infinite}
.m-eyes{transform-origin:50px 53px;animation:m-eyes 11s ease-in-out infinite}
.m-logo{transform-box:fill-box;transform-origin:center;opacity:0;animation:m-logo 11s ease-in-out infinite}
@keyframes m-blink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.07)}}
@keyframes m-eyes{0%,58%{transform:scale(1);opacity:1}65%,90%{transform:scale(.08);opacity:0}97%,100%{transform:scale(1);opacity:1}}
@keyframes m-logo{0%,59%{opacity:0;transform:scale(.2) rotate(-110deg)}67%,88%{opacity:1;transform:scale(1) rotate(0)}95%,100%{opacity:0;transform:scale(.2) rotate(110deg)}}
.think .m-eyes{animation:none;transform:scale(.08);opacity:0}
.think .m-logo{animation:none;opacity:1;transform:scale(1)}
.think .m-ring{transform-box:view-box;transform-origin:100px 100px;animation:m-spin 1.1s linear infinite}
@keyframes m-spin{to{transform:rotate(330deg)}}
.ch-head svg{width:40px;height:40px}
@media(max-width:600px){.ch-mascot{width:70px;height:70px;right:10px;bottom:76px}}
@media(prefers-reduced-motion:reduce){.m-eye,.m-eyes,.m-logo,.think .m-ring{animation:none}.m-look{transition:none}}
