/* Sonoma Chatbot v6.1.6 */
:root {
    --hcb-primary: #2b3c78;
    --hcb-primary-dark: #1e2b5a;
    --hcb-accent: #eef3ff;
    --hcb-ink: #1b2340;
    --hcb-ink-soft: #5b678f;
    --hcb-surface: #f7f9ff;
    --hcb-surface-2: #ffffff;
    --hcb-line: rgba(43, 60, 120, .10);
    --hcb-shadow: 0 24px 60px rgba(24, 34, 74, .18), 0 10px 26px rgba(24, 34, 74, .09);
    --hcb-radius: 24px;
    --hcb-transition: all .22s cubic-bezier(.4,0,.2,1);
    --hcb-font-serif: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hcb-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hcb-panel-w: 392px;
    --hcb-panel-h: 690px;
    --hcb-bottom: 24px;
    --hcb-left: 24px;
}
 #hcb-root { position: fixed !important; left: var(--hcb-left) !important; bottom: var(--hcb-bottom) !important; right: auto !important; z-index: 2147483647 !important; font-family: var(--hcb-font-sans); }
#hcb-root * { box-sizing: border-box; }
#hcb-toggle { position: relative; width: 66px; height: 66px; border: none; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(135deg, #34488f 0%, var(--hcb-primary) 52%, var(--hcb-primary-dark) 100%); box-shadow: 0 18px 36px rgba(43,60,120,.26); transition: var(--hcb-transition); overflow: hidden; -webkit-tap-highlight-color: transparent; }
#hcb-toggle::before,#hcb-toggle.is-open::before, #hcb-toggle.is-open::after, #hcb-root.is-open .hcb-toggle-pulse { display:none; }
#hcb-toggle:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 22px 44px rgba(43,60,120,.36); }
#hcb-toggle:active { transform: scale(.98); }
.hcb-toggle-icon { display: grid; place-items: center; position: absolute; inset: 0; }
.hcb-toggle-icon--close { opacity: 0; transform: scale(.72) rotate(-90deg); pointer-events: none; }
.hcb-toggle-icon--open { opacity: 1; transform: scale(1) rotate(0deg); }
#hcb-toggle.is-open .hcb-toggle-icon--open { opacity: 0; transform: scale(.72) rotate(90deg); }
#hcb-toggle.is-open .hcb-toggle-icon--close { opacity: 1; transform: scale(1) rotate(0deg); }
.hcb-toggle-icon--open, .hcb-toggle-icon--close { transition: opacity .2s ease, transform .24s ease; }
.hcb-toggle-pulse { display:none; }
#hcb-panel { position: absolute; left: 0; bottom: calc(100% + 16px); width: min(var(--hcb-panel-w), calc(100vw - 28px)); height: min(var(--hcb-panel-h), calc(100dvh - 108px)); max-height: calc(100dvh - 108px); background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%); border: 1px solid rgba(15,23,42,.08); border-radius: var(--hcb-radius); box-shadow: var(--hcb-shadow); overflow: hidden; display: flex; flex-direction: column; transform-origin: bottom left; backdrop-filter: blur(16px); }
#hcb-panel:not([hidden]) { animation: hcbPanelIn .28s cubic-bezier(.2,.8,.2,1) both; }
#hcb-header { position: relative; padding: 18px 18px 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #24315f 0%, #2b3c78 42%, var(--hcb-primary) 100%); color: #fff; }
#hcb-header::after { content: ""; position: absolute; inset: auto -20% -18px auto; width: 220px; height: 90px; background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 68%); pointer-events: none; }
.hcb-header-left { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.hcb-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-weight: 700; letter-spacing: .4px; font-size: 13px; }
.hcb-header-name { font-family: var(--hcb-font-serif); font-size: 18px; line-height: 1.2; font-weight: 800; max-width: 210px; white-space: normal; }
.hcb-header-status { margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hcb-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7d4ff; box-shadow: 0 0 0 3px rgba(199,212,255,.18); animation: none; }
#hcb-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.22); color: #ffffff; cursor: pointer; display: grid; place-items: center; transition: var(--hcb-transition); position: relative; z-index: 2; padding: 0; flex: 0 0 42px; }
.hcb-close-icon { display: grid; place-items: center; width: 18px; height: 18px; }
#hcb-close:hover { background: rgba(255,255,255,.24); transform: translateY(-1px) scale(1.04); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
#hcb-progress-bar-wrap { height: 4px; background: rgba(43,60,120,.12); }
#hcb-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #4a62bb, var(--hcb-primary)); transition: width .36s ease; }
#hcb-step-label { padding: 10px 18px 2px; min-height: 26px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5e6a96; }
#hcb-messages { flex: 1; padding: 8px 18px 4px; overflow-y: auto; scroll-behavior: smooth; }
#hcb-messages::-webkit-scrollbar { width: 5px; }
#hcb-messages::-webkit-scrollbar-thumb { background: rgba(43,60,120,.18); border-radius: 999px; }
.hcb-msg { margin-bottom: 12px; max-width: 92%; animation: hcbBubbleIn .24s ease both; }
.hcb-msg--user { margin-left: auto; text-align: right; }
.hcb-bubble { display: inline-block; padding: 13px 15px; border-radius: 18px; font-size: 13px; line-height: 1.6; white-space: pre-line; word-break: break-word; overflow-wrap: anywhere; }
.hcb-msg--bot .hcb-bubble { color: var(--hcb-ink); background: rgba(255,255,255,.98); border: 1px solid rgba(15,23,42,.08); border-top-left-radius: 6px; box-shadow: 0 8px 18px rgba(2,8,23,.04); }
.hcb-msg--user .hcb-bubble { background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-primary-dark) 100%); color: #fff; border-top-right-radius: 6px; box-shadow: 0 10px 24px rgba(43,60,120,.18); }
.hcb-msg--personalized .hcb-bubble { background: linear-gradient(135deg, #2b3c78 0%, #4458a8 100%); color: #fff; font-family: var(--hcb-font-serif); font-size: 14px; line-height: 1.56; }
#hcb-typing { padding: 2px 18px 8px; display: flex; gap: 5px; align-items: center; }
#hcb-typing span { width: 7px; height: 7px; background: rgba(43,60,120,.55); border-radius: 50%; animation: hcbTyping 1.1s ease-in-out infinite; }
#hcb-typing span:nth-child(2) { animation-delay: .15s; }
#hcb-typing span:nth-child(3) { animation-delay: .3s; }
#hcb-options { padding: 10px 14px 14px; display: grid; grid-template-columns: 1fr; gap: 10px; background: linear-gradient(180deg, rgba(43,60,120,.02), rgba(43,60,120,.06)); border-top: 1px solid rgba(15,23,42,.05); }
.hcb-option-btn { width: 100%; min-height: 58px; padding: 13px 15px; border-radius: 16px; border: 1px solid rgba(43,60,120,.08); background: rgba(255,255,255,.98); color: var(--hcb-ink); font-family: var(--hcb-font-sans); font-size: 12px; font-weight: 700; line-height: 1.45; cursor: pointer; transition: var(--hcb-transition); display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; box-shadow: 0 10px 22px rgba(24,34,74,.05); white-space: normal; }
.hcb-option-btn__text { flex: 1; }
.hcb-option-btn__arrow { flex: 0 0 auto; font-size: 16px; opacity: .7; transition: transform .2s ease, opacity .2s ease; }
.hcb-option-btn--soft { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,255,.98)); }
.hcb-option-btn--accent { background: linear-gradient(180deg, rgba(240,244,255,.98), rgba(233,239,255,.98)); border-color: rgba(43,60,120,.20); }
.hcb-option-btn:hover,.hcb-option-btn.selected { background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-primary-dark) 100%); color: #fff; border-color: var(--hcb-primary); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(43,60,120,.22); }
.hcb-option-btn:hover .hcb-option-btn__arrow,.hcb-option-btn.selected .hcb-option-btn__arrow { opacity: 1; transform: translateX(2px); }
.hcb-option-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
#hcb-input-area,#hcb-phone-area { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(43,60,120,.08); background: rgba(255,255,255,.92); }
#hcb-input,#hcb-phone-input { width: 100%; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid rgba(15,23,42,.1); background: #fbfcff; padding: 0 16px; font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
#hcb-input:focus,#hcb-phone-input:focus { border-color: var(--hcb-primary); box-shadow: 0 0 0 4px rgba(43,60,120,.10); }
.hcb-phone-wrap { flex: 1; min-width: 0; }
.hcb-phone-wrap .iti { width: 100%; }
.iti__country-list { z-index: 2147483646 !important; }
#hcb-send,#hcb-phone-send { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-primary-dark) 100%); color: #fff; cursor: pointer; transition: var(--hcb-transition); box-shadow: 0 12px 22px rgba(43,60,120,.22); }
#hcb-send:hover,#hcb-phone-send:hover { transform: scale(1.04); }
#hcb-send:disabled,#hcb-phone-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#hcb-back-wrap { padding: 0 14px 10px; }
#hcb-back { border: none; background: transparent; color: var(--hcb-ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
#hcb-back:hover { color: var(--hcb-ink); }
.hcb-error-bubble { margin: 0 14px 10px; padding: 10px 12px; border-radius: 12px; background: #fff0ef; border: 1px solid rgba(192,57,43,.15); color: #9a2e22; font-size: 13px; }
.hcb-action-buttons { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.hcb-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 14px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: var(--hcb-transition); }
.hcb-action-btn--primary { background: var(--hcb-primary); color: #fff; }
.hcb-action-btn--outline { color: var(--hcb-primary); background: #fff; border: 1px solid rgba(43,60,120,.18); }
.hcb-action-btn--whatsapp { background: #2b3c78; color: #fff; }
.hcb-action-btn:hover { transform: translateY(-1px); }
[hidden] { display: none !important; }
body.hcb-no-scroll { overflow: hidden !important; overscroll-behavior: none; touch-action: none; }

@keyframes hcbPanelIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hcbBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hcbTyping { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes hcbRing { 0% { transform: scale(.92); opacity: .75; } 70%,100% { transform: scale(1.28); opacity: 0; } }
@keyframes hcbPulseDot { 0% { box-shadow: 0 0 0 0 rgba(219,229,255,.8); } 70% { box-shadow: 0 0 0 10px rgba(219,229,255,0); } 100% { box-shadow: 0 0 0 0 rgba(219,229,255,0); } }
@media (max-width: 640px) {
    :root {
        --hcb-bottom: 12px;
        --hcb-right: auto;
        --hcb-left: 12px;
    }
    #hcb-root {
        left: var(--hcb-left) !important;
        bottom: var(--hcb-bottom) !important;
    }
    #hcb-toggle {
        width: 56px;
        height: 56px;
        left: 0;
        bottom: 0;
        margin: 0;
    }
    #hcb-panel {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100svh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
        transform-origin: bottom center;
    }
    .hcb-option-btn {
        width: 100%;
        justify-content: space-between;
    }
    #hcb-input, #hcb-phone-input {
        font-size: 16px;
    }
}
@media (min-width: 641px) and (max-width: 960px) { :root { --hcb-panel-w: 370px; --hcb-panel-h: 600px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.hcb-complete-note { margin-bottom: 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(247,249,255,.95), rgba(255,255,255,.98)); border: 1px solid rgba(43,60,120,.16); color: var(--hcb-ink); font-size: 12.25px; line-height: 1.55; }
.hcb-action-btn { white-space: normal; text-align: center; }
.hcb-action-btn--primary { background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-primary-dark) 100%); color: #fff; box-shadow: 0 14px 28px rgba(43,60,120,.18); }
.hcb-action-btn--outline { background: #fff; color: var(--hcb-primary); border: 1px solid rgba(43,60,120,.16); }
.hcb-action-btn--whatsapp { background: #1b2340; color: #fff; }

@media (max-width: 767px) {
  :root { --hcb-left: 12px; --hcb-bottom: 12px; --hcb-panel-w: calc(100vw - 24px); }
  #hcb-panel { left: 0; width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); bottom: 0; border-radius: 24px; }
  #hcb-header { padding: 16px 14px 14px; }
  .hcb-header-name { font-size: 15px; max-width: 168px; }
  #hcb-close { width: 40px; height: 40px; flex-basis: 40px; }
  .hcb-avatar { width: 38px; height: 38px; font-size: 12px; }
  #hcb-messages { padding: 8px 14px 4px; }
  .hcb-bubble { font-size: 12px; }
  .hcb-option-btn { min-height: 54px; padding: 12px 13px; font-size: 11.5px; }
  #hcb-input-area, #hcb-phone-area { padding: 10px 12px 12px; }
  #hcb-back-wrap { padding: 0 12px 8px; }
}

#hcb-toggle, #hcb-panel, .hcb-bubble, .hcb-option-btn, .hcb-action-btn, #hcb-input, #hcb-phone-input { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.hcb-msg--user .hcb-bubble { background: linear-gradient(135deg, #2b3c78 0%, #1e2b5a 100%); }
.hcb-msg--personalized .hcb-bubble { background: linear-gradient(135deg, #22315f 0%, #2b3c78 100%); }

.hcb-option-btn, .hcb-option-btn__text, .hcb-option-btn__arrow { color: var(--hcb-primary); }
.hcb-option-btn:hover, .hcb-option-btn.selected, .hcb-option-btn:hover .hcb-option-btn__text, .hcb-option-btn.selected .hcb-option-btn__text, .hcb-option-btn:hover .hcb-option-btn__arrow, .hcb-option-btn.selected .hcb-option-btn__arrow { color: #fff; }
#hcb-close { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
#hcb-close svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }


/* v6.1.5 CTA readability polish */
.hcb-action-btn--primary,
.hcb-action-btn--primary:link,
.hcb-action-btn--primary:visited,
.hcb-action-btn--primary:hover,
.hcb-action-btn--primary:active,
.hcb-action-btn--primary:focus {
  color: #ffffff;
}

.hcb-action-btn--whatsapp,
.hcb-action-btn--whatsapp:link,
.hcb-action-btn--whatsapp:visited,
.hcb-action-btn--whatsapp:hover,
.hcb-action-btn--whatsapp:active,
.hcb-action-btn--whatsapp:focus {
  color: #ffffff;
}

.hcb-action-btn--outline,
.hcb-action-btn--outline:link,
.hcb-action-btn--outline:visited {
  background: #eef3ff;
  color: #1e2b5a;
  border: 1px solid rgba(43,60,120,.22);
}
.hcb-action-btn--outline:hover,
.hcb-action-btn--outline:active,
.hcb-action-btn--outline:focus {
  background: #e4ebff;
  color: #162248;
  border-color: rgba(43,60,120,.32);
}


/* v6.1.7 CTA final polish */
.hcb-action-btn {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .01em;
  font-weight: 700;
}
.hcb-action-btn svg { flex: 0 0 auto; }
.hcb-action-btn--primary,
.hcb-action-btn--primary:link,
.hcb-action-btn--primary:visited,
.hcb-action-btn--primary:hover,
.hcb-action-btn--primary:active,
.hcb-action-btn--primary:focus {
  color: #ffffff !important;
}
.hcb-action-btn--outline,
.hcb-action-btn--outline:link,
.hcb-action-btn--outline:visited {
  background: #eef3ff !important;
  color: #233469 !important;
  border: 1px solid rgba(43,60,120,.22) !important;
}
.hcb-action-btn--outline:hover,
.hcb-action-btn--outline:active,
.hcb-action-btn--outline:focus {
  background: #e6edff !important;
  color: #1b2a58 !important;
  border-color: rgba(43,60,120,.34) !important;
}
.hcb-action-btn--whatsapp,
.hcb-action-btn--whatsapp:link,
.hcb-action-btn--whatsapp:visited,
.hcb-action-btn--whatsapp:hover,
.hcb-action-btn--whatsapp:active,
.hcb-action-btn--whatsapp:focus {
  background: linear-gradient(135deg, #118a63 0%, #0d6f53 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(7, 86, 64, .18) !important;
}
.hcb-action-btn--whatsapp:hover {
  box-shadow: 0 14px 28px rgba(17,138,99,.22);
}
