/* Chat de atención — Valladares.Org */
.voc { --voc: #4f46e5; position: fixed; right: 20px; bottom: 88px; z-index: 9990; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; }
.voc *, .voc *::before, .voc *::after { box-sizing: border-box; }
.voc-launch { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--voc); color: #fff; cursor: pointer; box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--voc) 70%, transparent); display: grid; place-items: center; transition: transform .2s; margin-left: auto; }
.voc-launch:hover { transform: scale(1.06); }
.voc-launch svg { width: 26px; height: 26px; }
.voc.is-open .voc-launch svg { opacity: .9; }
.voc-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
/* hidden */
.voc-badge[hidden] { display: none; }
.voc-hint { position: absolute; right: 66px; bottom: 8px; width: max-content; max-width: 230px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #fff; color: #0f172a; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .35); opacity: 0; transform: translateY(6px); pointer-events: none; transition: .3s; }
.voc-hint.show { opacity: 1; transform: none; }
.voc-panel { position: absolute; right: 0; bottom: 70px; width: 380px; max-width: calc(100vw - 32px); height: 590px; max-height: calc(100vh - 180px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06); animation: vocIn .25s cubic-bezier(.16, 1, .3, 1); }
.voc-panel[hidden] { display: none; }
.voc-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 14px; background: linear-gradient(135deg, var(--voc), color-mix(in srgb, var(--voc) 55%, #0f172a)); color: #fff; }
.voc-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.voc-title { flex: 1; min-width: 0; }
.voc-title b { display: block; font-size: 16px; }
.voc-status { font-size: 12.5px; opacity: .92; }
.voc-status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 6px; }
.voc-status i.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.voc-x { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.voc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.voc-msg { display: flex; flex-direction: column; max-width: 86%; animation: vocUp .25s ease both; }
.voc-bubble { padding: 10px 13px; border-radius: 16px; word-wrap: break-word; }
.voc-bot .voc-bubble, .voc-agent .voc-bubble { background: #fff; border: 1px solid #e8ecf3; border-bottom-left-radius: 5px; }
.voc-agent .voc-bubble { border-color: color-mix(in srgb, var(--voc) 35%, #fff); }
.voc-visitor { align-self: flex-end; }
.voc-visitor .voc-bubble { background: var(--voc); color: #fff; border-bottom-right-radius: 5px; }
.voc-visitor[data-pending] { opacity: .75; }
.voc-who { font-size: 11.5px; font-weight: 700; color: var(--voc); margin: 0 0 3px 4px; }
.voc-system { align-self: center; max-width: 92%; text-align: center; }
.voc-system p { margin: 0; padding: 8px 12px; border-radius: 12px; background: #eef2ff; color: #3730a3; font-size: 13px; }
.voc-bubble a { color: inherit; text-decoration: underline; }
.voc-typing .voc-bubble { display: flex; gap: 4px; padding: 13px 14px; }
.voc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: vocDot 1s infinite; }
.voc-typing i:nth-child(2) { animation-delay: .15s; }
.voc-typing i:nth-child(3) { animation-delay: .3s; }
.voc-cards { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; scroll-snap-type: x mandatory; max-width: 330px; }
.voc-card { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #e8ecf3; text-decoration: none; color: #0f172a; font-size: 13px; transition: border-color .15s; }
.voc-card:hover { border-color: var(--voc); }
.voc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.voc-card b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.voc-price { font-weight: 700; }
.voc-price.is-sale { color: #dc2626; }
.voc-card small { color: #059669; font-weight: 600; }
.voc-card small.is-out { color: #dc2626; }
.voc-card em { font-style: normal; color: var(--voc); font-weight: 600; font-size: 12px; }
.voc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.voc-chips button { border: 1px solid color-mix(in srgb, var(--voc) 40%, #fff); background: #fff; color: var(--voc); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.voc-chips button:hover { background: var(--voc); color: #fff; }
.voc-id { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e8ecf3; }
.voc-id p { margin: 0; font-size: 14px; }
.voc-id label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #475569; }
.voc-id input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #d5dbe5; }
.voc-id input:focus { outline: 2px solid color-mix(in srgb, var(--voc) 40%, transparent); border-color: var(--voc); }
.voc-id button { border: 0; border-radius: 12px; padding: 11px; background: var(--voc); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.voc-id button:disabled { opacity: .6; }
.voc-id small { color: #94a3b8; font-size: 12px; }
.voc-id small a { color: inherit; }
.voc-err { color: #dc2626 !important; }
.voc-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #eef1f6; background: #fff; }
.voc-input[hidden] { display: none; }
.voc-input textarea { flex: 1; resize: none; border: 1px solid #d5dbe5; border-radius: 14px; padding: 10px 12px; font: inherit; max-height: 110px; }
.voc-input textarea:focus { outline: none; border-color: var(--voc); }
.voc-input button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--voc); color: #fff; cursor: pointer; display: grid; place-items: center; }
.voc-input button svg { width: 20px; height: 20px; }
.voc-foot { margin: 0; padding: 0 12px 8px; text-align: center; font-size: 11px; color: #94a3b8; background: #fff; }
@keyframes vocIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vocUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vocDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 480px) { .voc { right: 12px; bottom: 84px; } .voc-panel { position: fixed; right: 8px; left: 8px; bottom: 150px; width: auto; height: auto; top: 70px; max-height: none; } }
