.assistant-launcher{position:fixed;right:24px;bottom:24px;z-index:48;border:0;background:#151B18;color:#fff;border-radius:28px;padding:15px 20px;font-weight:700;font-size:.88rem;box-shadow:0 6px 28px #17211C26;min-height:48px}
.assistant-launcher:before{content:"?";display:inline-grid;place-items:center;border:1px solid #fff8;width:23px;height:23px;border-radius:50%;margin-right:9px}
.assistant-panel{position:fixed;inset:auto 24px 24px auto;margin:0;border:1px solid #D9DDD5;padding:0;border-radius:20px;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);color:#18211B;background:#FCFBF7;box-shadow:0 20px 90px #17211C30}
.assistant-panel::backdrop{background:#12201833}
.assistant-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}
.assistant-header{background:#17211C;color:#fff;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.assistant-header h2{font-family:'Inter',sans-serif;font-size:1rem;letter-spacing:0;margin:0 0 5px}
.assistant-header p{font-size:.72rem;line-height:1.5;color:#DCE6DA;margin:0}
.assistant-header button{width:40px;height:40px;background:transparent;border:1px solid #ffffff50;border-radius:50%;color:white;font-size:1.3rem;flex-shrink:0}
.assistant-header .assistant-header-human{width:auto;height:auto;min-height:32px;border:0;border-radius:0;padding:2px 0;color:#fff;font-size:.72rem;text-decoration:underline}
.assistant-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:100px;padding:18px 18px 0;scroll-behavior:auto}
.assistant-log{display:flex;flex-direction:column;gap:12px}
.assistant-message{font-size:.85rem;line-height:1.7;padding:13px 15px;margin:0;white-space:pre-wrap;border-radius:14px;overflow-wrap:anywhere}
.assistant-assistant{background:white;border:1px solid #E0E4DB;margin-right:16px}
.assistant-user{background:#E8EDDF;margin-left:28px}
.assistant-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.assistant-shortcuts button{font-size:.75rem;background:white;border:1px solid #CCD4C5;border-radius:20px;padding:10px 12px;min-height:40px;color:#233322}
.assistant-support{padding:16px 0;border-top:1px solid #E0E4DB}
.assistant-support label{display:block;font-size:.78rem;font-weight:700;margin-bottom:7px}
.assistant-support select{width:100%;font:inherit;font-size:.85rem;padding:11px;border:1px solid #BFC8B8;border-radius:9px;background:white;min-height:46px}
.assistant-human{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid #C4CCBA;background:#F0F3EA;border-radius:9px;font:600 .82rem 'Inter',sans-serif;min-height:46px;color:#233322}
.assistant-handoff{background:white;border:1px solid #D4DDCB;border-radius:12px;padding:14px;margin-top:12px}
.assistant-handoff h3{font-size:.9rem;margin:0 0 8px}
.assistant-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:400 .76rem/1.7 'Inter',sans-serif;color:#5C6757;margin:0 0 12px}
.assistant-whatsapp{display:block;text-decoration:none;text-align:center;background:#256B40;color:white;padding:12px;border-radius:8px;font-weight:700;font-size:.8rem}
.assistant-panel [hidden]{display:none!important}
.assistant-compose{padding:12px 18px 14px;background:white;border-top:1px solid #E0E4DB}
.assistant-form{display:flex;gap:8px}
.assistant-form label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.assistant-form input{width:100%;min-width:0;min-height:46px;font:400 .86rem 'Inter',sans-serif;border:1px solid #C3CCBC;border-radius:9px;padding:11px}
.assistant-form button{border:0;border-radius:9px;background:var(--red,#DC341A);color:white;padding:10px 14px;font-weight:700;min-height:46px}
.assistant-form button:disabled{opacity:.5}
.assistant-status{font-size:.67rem;line-height:1.5;margin:8px 0;color:#606D59}
.assistant-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.assistant-footer p{font-size:.65rem;line-height:1.5;color:#626D5A;margin:0}
.assistant-reset{border:0;background:transparent;text-decoration:underline;font-size:.7rem;color:#45523B;min-height:36px;flex-shrink:0}
@media(max-width:700px){
 .assistant-launcher{bottom:calc(90px + env(safe-area-inset-bottom));right:18px;padding:12px 16px;font-size:.8rem}
 .assistant-panel{inset:auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;width:auto;max-width:none;max-height:calc(100dvh - 24px);border-radius:16px}
 .assistant-shell{max-height:calc(100dvh - 26px)}
 .assistant-header{padding:14px 16px}.assistant-scroll{padding:14px 14px 0}.assistant-compose{padding:10px 14px}
}

/* Guided catalog and quote flow */
.guided-flow{padding:12px;border:1px solid #ddd2c4;border-radius:12px;margin:10px 0;display:grid;gap:10px;background:#fffdf9;color:#252525}
.guided-flow h3{font-size:1rem;margin:0}
.guided-flow p{margin:0;line-height:1.45}
.guided-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.guided-flow button,.guided-whatsapp{cursor:pointer;border:1px solid #c4b5a5;border-radius:8px;padding:9px;background:#fff;color:#252525;text-align:left;font:inherit}
.guided-product{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.guided-product img{width:100%;max-width:125px;height:74px;object-fit:cover;border-radius:6px}
.guided-field{display:grid;gap:5px;font-weight:600}
.guided-field input,.guided-field select,.guided-field textarea{width:100%;min-width:0;padding:9px;border:1px solid #aaa;border-radius:7px;font:inherit;font-weight:400;background:white;color:#222}
.guided-whatsapp{display:block;text-decoration:none;background:#e7f5e9;border-color:#a1c9a8}
.guided-flow details{border-bottom:1px solid #ddd;padding:8px 0}
.guided-flow summary{cursor:pointer;font-weight:600}
.guided-flow :focus-visible{outline:3px solid #6d5b47;outline-offset:2px}
@media(max-width:360px){.guided-catalog{grid-template-columns:1fr}}

/* Chispa: ventana compacta y no modal para navegar el catálogo sin bloqueo. */
.assistant-panel{width:380px;max-height:min(74dvh,650px);inset:auto 18px 18px auto;z-index:60}
.assistant-panel::backdrop{background:transparent}
.assistant-shell{max-height:min(74dvh,650px)}
.assistant-scroll{min-height:0;overflow-y:auto;padding-bottom:10px}
.assistant-panel [hidden],.assistant-panel .guided-flow[hidden]{display:none!important}
.assistant-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 4px}
.assistant-modes button{min-height:42px;padding:8px 6px;border:1px solid #bfc8b8;border-radius:9px;background:#fff;color:#263327;font:600 .76rem 'Inter',sans-serif;cursor:pointer}
.assistant-modes button[aria-pressed="true"]{background:#e7ede2;border-color:#5e765d}
.assistant-modes button:focus-visible{outline:3px solid #5e765d;outline-offset:2px}
.guided-product{font-size:.77rem;line-height:1.35;text-align:center;min-height:112px}
.guided-product img{width:100%;height:72px;object-fit:cover}
@media(max-width:700px){
 .assistant-panel{inset:auto 8px calc(8px + env(safe-area-inset-bottom)) 8px;width:auto;max-height:76dvh}
 .assistant-shell{max-height:76dvh}
}
@media(max-height:500px){.assistant-panel,.assistant-shell{max-height:90dvh}}

/* Identidad de Chispa: distintivo accesible, separado del logo oficial. */
.assistant-launcher{display:flex;align-items:center;gap:9px;max-width:calc(100vw - 32px);text-align:left}
.assistant-launcher[hidden]{display:none!important}
.assistant-launcher:before{content:none}
.assistant-launcher small{display:block;font-size:.69rem;font-weight:400;opacity:.88;line-height:1.3}
.chispa-mark{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:#f6c453;color:#19221a;font-size:1.65rem;line-height:1;box-shadow:inset 0 0 0 2px #fff5}
.chispa-mark-header{width:30px;height:30px;font-size:1.25rem;vertical-align:middle;margin-right:4px}
.assistant-header h2 small{font-size:.73rem;font-weight:400;opacity:.8}
.guided-flow .guided-product{transition:border-color .15s,box-shadow .15s}
.guided-flow .guided-product:hover{border-color:#6d816d;box-shadow:0 2px 9px #18251b14}
@media(prefers-reduced-motion:reduce){.guided-flow .guided-product{transition:none}}
