*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f6fa;color:#152033}.app{min-height:100vh}.topbar{height:72px;background:#fff;border-bottom:1px solid #e5eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:17px}.brand span{display:block;color:#718096;font-size:12px}.logo,.bot-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:800}.logo{background:#152033;color:#fff}.admin-link{color:#152033;text-decoration:none;font-size:14px}.chat-shell{min-height:calc(100vh - 72px);display:flex;justify-content:center;padding:32px 16px}.chat-card{width:min(430px,100%);height:min(760px,calc(100vh - 136px));min-height:540px;background:#fff;border-radius:20px;box-shadow:0 14px 45px rgba(30,50,80,.10);overflow:hidden;display:flex;flex-direction:column}.chat-header{display:flex;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid #e9edf2}.bot-avatar{background:#eaf1ff;font-size:22px}.chat-header h1{font-size:17px;margin:0 0 3px}.chat-header p{font-size:12px;color:#718096;margin:0}.online{margin-left:auto;color:#31875c;font-size:12px}.online i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#39a66c;margin-right:5px}.messages{flex:1;overflow-y:auto;padding:22px;background:#fafbfd}.message{display:flex;margin:0 0 14px}.message.user{justify-content:flex-end}.bubble{max-width:85%;padding:12px 15px;border-radius:16px;background:#fff;border:1px solid #e7ebf0;font-size:14px;line-height:1.45}.user .bubble{background:#152033;color:#fff;border-color:#152033}.examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.examples button{border:1px solid #d9e0e8;background:#fff;border-radius:20px;padding:7px 10px;cursor:pointer;color:#26364d}.composer{display:flex;gap:10px;padding:14px;border-top:1px solid #e9edf2;background:#fff}.composer input{flex:1;border:1px solid #dce2ea;border-radius:12px;padding:13px;font-size:14px;outline:none}.composer input:focus{border-color:#718096}.composer button{border:0;border-radius:12px;padding:0 22px;background:#152033;color:#fff;font-weight:700;cursor:pointer}.hint{text-align:center;padding:0 12px 12px;color:#8793a3;font-size:11px}.products{display:grid;gap:9px;margin-top:12px}.product{display:flex;gap:10px;padding:10px;border:1px solid #e5eaf0;border-radius:12px;background:#fff}.product img{width:64px;height:64px;object-fit:cover;border-radius:9px;background:#f1f3f5}.product-info{min-width:0}.product-info>b{display:block;font-size:13px}.price{font-size:15px;font-weight:800;margin:3px 0}.product-info small{color:#68778a}.detail{font-size:12px;margin-top:4px;color:#5c6b7c}.product a{display:inline-block;margin-top:5px;font-size:12px}.stock{font-weight:700}.stock.yes{color:#278253}.stock.no{color:#c04747}.typing{color:#718096}@media(max-width:600px){.topbar{padding:0 15px}.chat-shell{padding:0}.chat-card{height:calc(100vh - 72px);border-radius:0;min-height:0}.chat-header{padding:16px}.bubble{max-width:94%}}

/* Botón flotante naranja y apertura del chat */
.chat-float{position:fixed;left:22px;bottom:22px;top:auto;z-index:1000;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:12px 18px;background:#f58220;color:#fff;box-shadow:0 8px 25px rgba(0,0,0,.20);cursor:pointer;font-weight:800;text-align:left;transition:.2s ease}
.chat-float:hover{background:#e66f0b;transform:translateX(4px)}
.chat-float-icon{font-size:24px;line-height:1}
.chat-float-text{font-size:14px;line-height:1.15}
.chat-float-text small{font-size:11px;font-weight:600;opacity:.95}
@media(min-width:601px){.chat-card:not(.chat-open){display:none}.chat-card.chat-open{display:flex;position:fixed;left:22px;bottom:86px;right:auto;top:auto;width:min(430px,calc(100vw - 44px));height:min(760px,calc(100vh - 130px));z-index:999}}
@media(max-width:600px){.chat-card:not(.chat-open){display:none}.chat-card.chat-open{display:flex;position:fixed;inset:0;z-index:999}.chat-float{left:0;right:auto;top:auto;bottom:22px;transform:none;border-radius:999px}.chat-float:hover{transform:translateX(-4px)}}

.chat-close{margin-left:8px;width:34px;height:34px;border:0;border-radius:50%;background:#f1f3f5;color:#26364d;font-size:25px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:.2s ease}.chat-close:hover{background:#e5e9ee;color:#111827}.chat-close:focus{outline:2px solid #f58220;outline-offset:2px}
