/* ACIRUS companion: shared character and SVG rig styles */
.acirus-buddy{position:absolute;top:0;left:0;width:0;height:0;z-index:66;--buddy-vest:#356B52;--buddy-sleeve:#274d3e;--buddy-stripe:#f7f6f1;--buddy-accent:#d9a441;--border:#d8ded6;--surface:#ffffff;--muted:#66736b;--accent:#356b52;--hover:#274d3e;--text:#26312c;opacity:1;transition:opacity .22s ease}
/* Guard stays in document space so the mover's document coordinates map 1:1
   and the character scrolls with the page. A fixed guard would reinterpret the
   document-coordinate transform as viewport coordinates and, with overflow
   clipping, hide the character whenever the page is not scrolled to the very
   top (e.g. after navigation restores a scrolled station). */
.acirus-buddy__guard{position:absolute;top:0;left:0}
/* Prevent the transformed character from ever creating a horizontal scrollbar
   without turning the document into a scroll container (keeps sticky header). */
html{overflow-x:clip}
.acirus-buddy__mover{position:absolute;top:0;left:0;width:64px;height:84px;pointer-events:auto;will-change:transform;z-index:1}
.acirus-buddy.is-chatting .acirus-buddy__mover{position:fixed;z-index:2}
main h1, main h2, main h3, main h4, main p, main li {
  position: relative;
  z-index: 1;
}
.acirus-buddy__character{display:block;width:64px;height:84px;padding:0;border:0;background:transparent;overflow:visible;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 7px 7px #26312c24);transition:filter .2s ease,touch-action .2s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(hover:hover){.acirus-buddy__character:hover{filter:drop-shadow(0 9px 9px #26312c2b) brightness(1.02)}}
.acirus-buddy__character:active{filter:drop-shadow(0 4px 5px #26312c29) brightness(.98)}
.acirus-buddy__character:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:12px}
.acirus-buddy__figure{position:absolute;inset:0;display:block}
.acirus-buddy__view-layer{position:absolute;inset:0;display:block;opacity:1}
.acirus-buddy__view-frame{position:absolute;inset:0;display:block}
.acirus-buddy__svg{display:block;width:100%;height:100%;overflow:visible}
.acirus-buddy__view{transform-box:view-box}


/* rig anatomy */
.acirus-buddy__shadow{fill:#26312c1f}
.acirus-buddy__pants{stroke:#3d4943;fill:none}
.acirus-buddy__boot{fill:#26312c}
.acirus-buddy__shirt{fill:#f2efe4;stroke:#d9d4c5;stroke-width:.7}
.acirus-buddy__sleeve{stroke:var(--buddy-sleeve,#274d3e);fill:none}
.acirus-buddy__hand{fill:#e7b98c}
.acirus-buddy__vest{fill:var(--buddy-vest,#356B52)}
.acirus-buddy__stripe{fill:var(--buddy-stripe,#f7f6f1);opacity:.9}
.acirus-buddy__belt{fill:#26312c}
.acirus-buddy__pouch{fill:#b98b3e}
.acirus-buddy__collar{fill:none;stroke:#f2efe4;stroke-width:2;stroke-linecap:round}
.acirus-buddy__zipper{fill:none;stroke:#26312c;stroke-width:1;opacity:.45}
.acirus-buddy__back-seam{fill:none;stroke:#26312c;stroke-width:1;opacity:.3}
.acirus-buddy__hair,.acirus-buddy__hairside{fill:#6b4a33}
.acirus-buddy__helmet{fill:#d9a441}
.acirus-buddy__brim{fill:#c49132}
.acirus-buddy__helmet-ridge{stroke:#b07f2a;stroke-width:1.5;stroke-linecap:round;fill:none}
.acirus-buddy__eyes{fill:#26312c}
.acirus-buddy__brow{fill:none;stroke:#5b3c28;stroke-width:1;stroke-linecap:round}
.acirus-buddy__nose{fill:none;stroke:#c58e67;stroke-width:1.2;stroke-linecap:round}
.acirus-buddy__mouth{fill:none;stroke:#26312c;stroke-width:1.3;stroke-linecap:round}
.acirus-buddy__mouth-open{fill:#26312c}
.acirus-buddy__tool,.acirus-buddy__carry-item{pointer-events:none}
.acirus-buddy__zzz,.acirus-buddy__sparkles,.acirus-buddy__steam{opacity:0;pointer-events:none}
.acirus-buddy__zzz text{fill:#5f6b63;font-family:Georgia,"Times New Roman",serif;font-weight:700}
.acirus-buddy__sparkles{fill:var(--buddy-accent,#d9a441)}
.acirus-buddy__steam{fill:none;stroke:#d7d2c4;stroke-width:1.2;stroke-linecap:round}

/* holiday clothing lives on the same body, not on separate layers */
.acirus-buddy__holiday{opacity:0}
.acirus-buddy[data-holiday="santa"]{--buddy-vest:#a83232;--buddy-sleeve:#7d2323;--buddy-stripe:#f7f6f1}
.acirus-buddy[data-holiday="party"]{--buddy-vest:#2f6e8f;--buddy-sleeve:#245568;--buddy-stripe:#e7c95a}
.acirus-buddy[data-holiday="heart"]{--buddy-vest:#b24a62;--buddy-sleeve:#843648;--buddy-stripe:#f2c8d0}
.acirus-buddy[data-holiday="halloween"]{--buddy-vest:#5a3d66;--buddy-sleeve:#412e4a;--buddy-stripe:#df9b3a;--buddy-accent:#df9b3a}
.acirus-buddy[data-holiday="bunny"]{--buddy-vest:#7d9c7a;--buddy-sleeve:#5e775b;--buddy-stripe:#f2e4d8}
.acirus-buddy[data-holiday="pilgrim"]{--buddy-vest:#6b4a2f;--buddy-sleeve:#4f3521;--buddy-stripe:#d9b26a}
.acirus-buddy[data-holiday="shamrock"]{--buddy-vest:#2f7a4d;--buddy-sleeve:#205a37;--buddy-stripe:#d9e8cf}
.acirus-buddy[data-holiday="jester"]{--buddy-vest:#3f6b4e;--buddy-sleeve:#2d4d38;--buddy-stripe:#b33a32}
.acirus-buddy[data-holiday="costarica"]{--buddy-vest:#1b3f8b;--buddy-sleeve:#142f66;--buddy-stripe:#f7f6f1}
.acirus-buddy[data-holiday="badge"]{--buddy-vest:#5d6b35;--buddy-sleeve:#454f27;--buddy-stripe:#d9a441}
.acirus-buddy[data-holiday="flower"]{--buddy-vest:#4f7b58;--buddy-sleeve:#3b5d42;--buddy-stripe:#e7b8c1}
.acirus-buddy[data-holiday="santa"] .acirus-buddy__holiday--santa,
.acirus-buddy[data-holiday="party"] .acirus-buddy__holiday--party,
.acirus-buddy[data-holiday="heart"] .acirus-buddy__holiday--heart,
.acirus-buddy[data-holiday="halloween"] .acirus-buddy__holiday--halloween,
.acirus-buddy[data-holiday="bunny"] .acirus-buddy__holiday--bunny,
.acirus-buddy[data-holiday="pilgrim"] .acirus-buddy__holiday--pilgrim,
.acirus-buddy[data-holiday="shamrock"] .acirus-buddy__holiday--shamrock,
.acirus-buddy[data-holiday="jester"] .acirus-buddy__holiday--jester,
.acirus-buddy[data-holiday="costarica"] .acirus-buddy__holiday--costarica,
.acirus-buddy[data-holiday="badge"] .acirus-buddy__holiday--badge,
.acirus-buddy[data-holiday="flower"] .acirus-buddy__holiday--flower{opacity:1}
.acirus-buddy[data-state="sleeping"] .acirus-buddy__zzz{opacity:1;animation:ab-zzz 3.4s ease-in-out infinite}
.acirus-buddy[data-state="celebrating"] .acirus-buddy__sparkles{opacity:1;animation:ab-sparkle 1.8s ease-in-out infinite}
.acirus-buddy[data-state="resting"] .acirus-buddy__steam{opacity:.8;animation:ab-steam 2.8s ease-in-out infinite}
.acirus-buddy[data-state="walking"] .acirus-buddy__svg,
.acirus-buddy[data-state="approaching"] .acirus-buddy__svg{animation:none}

/* panel and chat UI */


.acirus-buddy__dismiss{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted);font:inherit;font-size:15px;line-height:1;cursor:pointer;pointer-events:auto;opacity:.8;box-shadow:0 2px 6px #26312c1a;touch-action:manipulation}
.acirus-buddy__dismiss:hover{opacity:1;color:var(--hover)}
.acirus-buddy__dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acirus-buddy__restore{position:fixed;right:16px;bottom:16px;z-index:61;display:none;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--accent);font:inherit;font-size:18px;font-weight:750;line-height:1;cursor:pointer;pointer-events:auto;box-shadow:0 6px 18px #26312c1f;touch-action:manipulation}
.acirus-buddy.is-off .acirus-buddy__restore{display:inline-flex}
.acirus-buddy__restore:hover{color:var(--hover);border-color:var(--accent)}
.acirus-buddy__restore:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.acirus-buddy.is-off .acirus-buddy__mover,.acirus-buddy.is-off .acirus-buddy__panel{display:none!important}
.acirus-buddy.is-keyboard .acirus-buddy__mover{opacity:0;pointer-events:none}
.acirus-buddy__panel[hidden]{display:none}
.acirus-buddy__panel{position:fixed;z-index:62;display:flex;flex-direction:column;width:min(360px,calc(100vw - 32px));height:min(520px,calc(100dvh - 96px));max-height:min(520px,calc(100dvh - 96px));border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 20px 50px #26312c2b;overflow:hidden;pointer-events:auto;font-size:14px;line-height:1.45}
.acirus-buddy__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 14px 11px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fbfbf8,#fff);flex:0 0 auto}
.acirus-buddy__brand{margin:0;color:var(--accent);font-size:10px;font-weight:750;letter-spacing:.14em;line-height:1.2}
.acirus-buddy__title{margin:1px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:19px;font-weight:500;line-height:1.15;letter-spacing:-.015em}
.acirus-buddy__subtitle{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.35}
.acirus-buddy__close{display:grid;place-items:center;width:28px;height:28px;flex:0 0 auto;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted);font:inherit;font-size:18px;line-height:1;cursor:pointer;touch-action:manipulation}
.acirus-buddy__close:hover{color:var(--hover);border-color:var(--accent)}
.acirus-buddy__close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acirus-buddy__messages{flex:1 1 auto;min-height:0;padding:12px 14px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:9px;background:#fbfbf8}
.acirus-buddy__message{display:flex;flex-direction:column;gap:3px;max-width:92%}
.acirus-buddy__message--user{align-self:flex-end;align-items:flex-end}
.acirus-buddy__message--assistant{align-self:flex-start}
.acirus-buddy__message-label{color:var(--muted);font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.acirus-buddy__bubble{margin:0;padding:8px 11px;border-radius:10px;font-size:13.5px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.acirus-buddy__message--assistant .acirus-buddy__bubble{border:1px solid var(--border);border-top-left-radius:4px;background:var(--surface)}
.acirus-buddy__message--user .acirus-buddy__bubble{border-top-right-radius:4px;background:var(--accent);color:#fff}
.acirus-buddy__links{display:flex;flex-wrap:wrap;gap:6px;margin-top:1px}
.acirus-buddy__link{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border:1px solid #cfdccf;border-radius:999px;background:var(--surface);color:var(--accent);font-size:12px;font-weight:650;line-height:1.3;text-decoration:none}
.acirus-buddy__link:hover{background:#f1f5f1;border-color:var(--accent);color:var(--hover)}
.acirus-buddy__link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acirus-buddy__chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px 4px;border-top:1px solid var(--border);background:var(--surface);flex:0 0 auto}
.acirus-buddy__chips:empty{display:none}
.acirus-buddy__chip{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border:1px solid var(--border);border-radius:999px;background:#fbfbf8;color:var(--muted);font:inherit;font-size:12px;line-height:1.3;cursor:pointer;touch-action:manipulation}
.acirus-buddy__chip:hover{border-color:var(--accent);color:var(--hover);background:var(--surface)}
.acirus-buddy__chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acirus-buddy__form{display:flex;gap:7px;padding:8px 10px 10px;background:var(--surface);flex:0 0 auto}
.acirus-buddy__input{flex:1;min-width:0;height:38px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:#fbfbf8;color:var(--text);font:inherit;font-size:13.5px}
.acirus-buddy__input:focus{outline:2px solid var(--accent);outline-offset:1px;background:#fff}
.acirus-buddy__send{width:38px;height:38px;flex:0 0 auto;padding:0;border:0;border-radius:8px;background:var(--accent);color:#fff;font:inherit;font-size:18px;line-height:1;cursor:pointer;touch-action:manipulation}
.acirus-buddy__send:hover{background:var(--hover)}
.acirus-buddy__send:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acirus-buddy__send:disabled{opacity:.5;cursor:wait}
.acirus-buddy__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 11px;background:var(--surface);color:var(--muted);font-size:10.5px;line-height:1.35;flex:0 0 auto}
.acirus-buddy__note{max-width:210px}
.acirus-buddy__whatsapp{color:var(--accent);font-weight:700;text-decoration:none;white-space:nowrap}
.acirus-buddy__whatsapp:hover{text-decoration:underline;text-underline-offset:2px}
.acirus-buddy__typing{display:flex;gap:4px;align-self:flex-start;padding:9px 11px;border:1px solid var(--border);border-radius:10px;border-top-left-radius:4px;background:var(--surface)}
.acirus-buddy__typing span{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:ab-typing 1.2s ease-in-out infinite}
.acirus-buddy__typing span:nth-child(2){animation-delay:.15s}
.acirus-buddy__typing span:nth-child(3){animation-delay:.3s}
.acirus-buddy__sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.acirus-buddy.is-paused *{animation-play-state:paused!important}
.acirus-buddy.is-entering{opacity:0}
.acirus-buddy.is-fading-out{opacity:0;pointer-events:none}
.acirus-buddy.is-fading-out .acirus-buddy__character,.acirus-buddy.is-fading-out .acirus-buddy__panel{pointer-events:none}

@media(max-width:760px){
  .acirus-buddy__character,.acirus-buddy__mover{width:54px;height:72px}
  .acirus-buddy__restore{right:12px;bottom:12px}
  .acirus-buddy__note{max-width:180px}
}
@media(max-width:900px){.acirus-buddy__panel{width:calc(100vw - 24px);height:min(520px,calc(100dvh - 132px));max-height:min(520px,calc(100dvh - 132px))}}
@media(prefers-reduced-motion:reduce){
  .acirus-buddy *{animation:none!important;transition:none!important}
  .acirus-buddy__view-layer{transition:none}
}

/* keyframes for small effects only; the body is driven by the rig */

@keyframes ab-zzz{0%,100%{opacity:.25;transform:translateY(2px)}45%{opacity:1;transform:translateY(-2px)}}
@keyframes ab-steam{0%{opacity:0;transform:translateY(2px)}35%{opacity:.8}100%{opacity:0;transform:translateY(-5px)}}
@keyframes ab-sparkle{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes ab-typing{0%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}

