.agent-launcher,.whatsapp-float{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));z-index:45;display:grid;place-items:center;width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;box-shadow:0 6px 24px #041d4a30;transition:transform .18s,background .18s}
.agent-launcher{right:92px;background:#ff922f;color:#082e5c;border:1px solid #ffb578}
.agent-launcher>svg{width:26px;height:26px;stroke-width:1.8}
.agent-launcher:hover{background:#ffa453;transform:translateY(-2px)}
.agent-launcher[aria-expanded=true]{background:#ffb578}
.whatsapp-float{right:24px;background:#16aa59;color:#fff;border:1px solid #ffffff35}
.whatsapp-float>.whatsapp-glyph{display:block;position:relative;width:36px;height:36px;overflow:hidden}
.whatsapp-glyph img{position:absolute;display:block;width:68px;height:68px;max-width:none;left:-16px;top:-16px;filter:brightness(0) invert(1)}
.whatsapp-float:hover{background:#0c9049;transform:translateY(-2px)}
.agent-launcher::after,.whatsapp-float::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 11px);right:0;max-width:230px;width:max-content;padding:8px 11px;border-radius:7px;background:#082e5c;color:#fff;font-size:10px;line-height:1.5;font-weight:600;opacity:0;visibility:hidden;pointer-events:none;box-shadow:0 4px 16px #041d4a24}
.agent-launcher:focus-visible::after,.whatsapp-float:focus-visible::after{opacity:1;visibility:visible}
@media(hover:hover){.agent-launcher:hover::after,.whatsapp-float:hover::after{opacity:1;visibility:visible}}
.agent-launcher[aria-expanded=true]::after{visibility:hidden}
.virtual-agent{position:fixed;right:24px;bottom:96px;z-index:44;display:flex;flex-direction:column;width:400px;height:600px;max-height:calc(100dvh - 112px);max-width:calc(100vw - 32px);background:#f2f7ff;border:1px solid #9bb8dc;border-radius:20px;box-shadow:0 20px 65px #031d4d45;overflow:hidden;color:#153456;outline-offset:3px}
.agent-header{display:flex;align-items:center;gap:12px;padding:19px 18px;background:#082e5c;color:white;border-bottom:3px solid #ff922f;flex-shrink:0}
.agent-mark{display:block;position:relative;overflow:hidden;background:#fff;border-radius:10px;width:48px;height:48px;flex-shrink:0}
.agent-mark img{position:absolute;max-width:none;width:178px;height:89px;left:-8px;top:-19px}
.agent-header h2{font-family:var(--display);font-size:27px;line-height:1.08;letter-spacing:.015em;color:white}
.agent-header p{font-size:9px;margin-top:5px;color:#c1d5ee;line-height:1.5}
.agent-close{margin-left:auto;align-self:flex-start;width:36px;height:36px;border-radius:8px;background:#ffffff13;color:white;font-size:25px;line-height:1;flex-shrink:0}
.agent-close:hover{background:#ffffff25}
.agent-contact{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 18px;background:#e7f5ed;border-bottom:1px solid #c7e5d4;flex-shrink:0}
.agent-contact>span{font-size:9px;color:#3d6952}
.agent-contact>a{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:750;color:#08613a;white-space:nowrap}
.agent-contact>a:hover{text-decoration:underline;text-underline-offset:3px}
.agent-contact svg{width:20px;height:20px}
.agent-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px 16px;scrollbar-width:thin;scrollbar-color:#a7c0df transparent}
.agent-log{display:flex;flex-direction:column;gap:12px}
.agent-message{max-width:94%;border-radius:14px;padding:13px 14px;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
.agent-message p{white-space:pre-wrap;margin:0}
.agent-message-assistant{align-self:flex-start;background:white;border:1px solid #d3e1f2;border-bottom-left-radius:3px}
.agent-message-user{align-self:flex-end;background:#0b4d9c;color:white;border-bottom-right-radius:3px}
.agent-whatsapp{display:block;border-radius:8px;background:#086b46;color:white;margin-top:13px;padding:11px 12px;font-size:11px;font-weight:700;text-align:center}
.agent-whatsapp:hover{background:#075737}
.agent-toolbar{display:flex;justify-content:flex-end;padding:4px 18px 0;flex-shrink:0}
.agent-toolbar button{font-size:9px;font-weight:600;line-height:1.5;min-height:32px;padding:6px 0;background:transparent;color:#526c8d}
.agent-toolbar button:hover{text-decoration:underline}
.agent-form{display:flex;align-items:center;gap:8px;padding:5px 14px 0;flex-shrink:0}
.agent-form input{min-width:0;flex:1;width:100%;border:1px solid #a9c2e0;border-radius:24px;background:white;color:#153456;font-family:var(--font);font-size:13px;line-height:1.5;height:46px;padding:10px 16px}
.agent-form input::placeholder{color:#6b7d94}
.agent-form button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#0b4d9c;color:white;flex-shrink:0}
.agent-form button:hover{background:#08356e}
.agent-form svg{width:21px;height:21px}
.agent-field-status{font-size:10px;color:#9a2e14;padding:0 15px;line-height:1.5}
.agent-field-status:not(:empty){padding-top:7px}
.agent-privacy-note{font-size:9px;line-height:1.5;color:#59708d;margin:9px 15px 12px;flex-shrink:0}
@media(max-width:680px){
  .agent-launcher,.whatsapp-float{bottom:max(16px,env(safe-area-inset-bottom));width:54px;height:54px;min-height:54px;padding:0}
  .agent-launcher{right:82px}.whatsapp-float{right:16px}
  .virtual-agent{left:12px;right:12px;bottom:86px;width:auto;max-width:none;height:610px;max-height:calc(100dvh - 102px);border-radius:16px}
  .agent-header{padding:15px 14px;gap:10px}.agent-header h2{font-size:26px}.agent-header p{font-size:8px}
  .agent-scroll{padding:16px 13px}.agent-form input{font-size:16px}.agent-message{font-size:12px}
  .agent-contact{padding:10px 14px;flex-wrap:wrap;gap:4px 12px}.agent-contact>span{font-size:9px}.agent-contact>a{font-size:11px}
  .agent-privacy-note{font-size:8px}
}
@media(max-height:500px){.virtual-agent{bottom:8px;max-height:calc(100dvh - 16px);z-index:46}.agent-header{padding-block:10px}.agent-contact{padding-block:8px}}
@media(prefers-reduced-motion:reduce){.virtual-agent,.agent-launcher,.whatsapp-float{scroll-behavior:auto;transition:none}}
