/* Añadidos exclusivos de la demo pública. No afecta a la aplicación real. */
.demo-ribbon{position:fixed;z-index:90;top:0;left:0;right:0;min-height:54px;padding:9px 20px;background:linear-gradient(90deg,#1d211f,#343b36);color:#fff;display:flex;align-items:center;gap:14px;box-shadow:0 6px 20px rgba(20,22,20,.22)}
.demo-ribbon .demo-tag{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border-radius:20px;background:var(--amber);color:#231f16;font-size:.68rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.demo-ribbon p{margin:0;color:#dfe3df;font-size:.78rem;line-height:1.35}
.demo-ribbon p b{color:#fff}
.demo-ribbon .demo-ribbon-actions{margin-left:auto;display:flex;align-items:center;gap:9px;white-space:nowrap}
.demo-ribbon a.demo-cta{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border-radius:9px;background:var(--amber);color:#231f16;font-size:.78rem;font-weight:800}
.demo-ribbon a.demo-cta:hover{background:#efb548}
.demo-ribbon a.demo-alt{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border-radius:9px;border:1px solid rgba(255,255,255,.28);color:#fff;font-size:.78rem;font-weight:700}
.demo-ribbon a.demo-alt:hover{border-color:#fff}
body.demo-body{padding-top:54px}
body.demo-body .sidebar{top:54px;height:calc(100vh - 54px)}
body.demo-body .app-frame{min-height:calc(100vh - 54px)}
body.demo-body .upload-panel,body.demo-body .sheet-side{top:74px}
body.demo-body .sidebar-scrim{top:54px}

.demo-inline-notice{margin:12px 0 0;padding:13px 15px;border:1px solid #ead69e;border-radius:12px;background:#fbf4e2;color:#6d5a2c;font-size:.78rem;font-weight:700;line-height:1.5;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.demo-inline-notice a{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:8px;background:var(--amber);color:#231f16;font-size:.74rem;font-weight:800}
.demo-inline-notice a:hover{background:#efb548}
.demo-float-notice{position:fixed;z-index:120;left:50%;bottom:26px;transform:translate(-50%,18px);opacity:0;pointer-events:none;max-width:min(92vw,520px);padding:14px 17px;border-radius:13px;background:#171b19;color:#fff;box-shadow:0 22px 50px rgba(0,0,0,.28);font-size:.8rem;font-weight:700;line-height:1.45;display:flex;flex-wrap:wrap;align-items:center;gap:12px;transition:.22s}
.demo-float-notice.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.demo-float-notice a{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:8px;background:var(--amber);color:#231f16;font-size:.74rem;font-weight:800;white-space:nowrap}

.demo-note-panel{margin-bottom:18px;padding:16px 18px;border:1px dashed #c9b789;border-radius:14px;background:#fbf6ea;color:#6d5a2c;font-size:.79rem;line-height:1.55}
.demo-note-panel b,.demo-note-panel strong{color:#5a4a22}

/* Vista de pedidos por WhatsApp */
.wa-workspace{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:16px;margin:15px 0 18px;align-items:start}
.wa-list{padding:0;overflow:hidden}
.wa-list-head{padding:16px 18px 12px;border-bottom:1px solid #ece6db}
.wa-list-head h3{font-size:1rem}
.wa-list-head p{margin:5px 0 0;color:var(--muted);font-size:.72rem}
.wa-thread-item{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;padding:14px 17px;border:0;border-bottom:1px solid #f0ebe1;background:transparent;text-align:left;transition:.16s}
.wa-thread-item:hover{background:#f7f3ec}
.wa-thread-item.active{background:#f2f7f3;box-shadow:inset 3px 0 0 #2fb467}
.wa-thread-avatar{width:40px;height:40px;border-radius:12px;background:#dbf0e2;color:#2b9555;display:grid;place-items:center;font-weight:900;font-size:.82rem}
.wa-thread-body{min-width:0}
.wa-thread-body b{display:block;font-size:.83rem}
.wa-thread-body small{display:block;margin-top:4px;color:var(--muted);font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wa-thread-meta{display:flex;align-items:center;gap:8px;margin-top:7px}
.wa-thread-meta time{color:var(--muted);font-size:.64rem;font-weight:700}
.wa-unread{min-width:19px;height:19px;padding:0 6px;border-radius:20px;background:#2fb467;color:#fff;font-size:.62rem;font-weight:800;display:grid;place-items:center}

.wa-chat{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:520px}
.wa-chat-head{display:flex;align-items:center;gap:12px;padding:15px 19px;background:var(--cs-ink-800);color:#fff}
.wa-chat-head .wa-thread-avatar{background:#2fb467;color:#fff}
.wa-chat-head b{display:block;font-size:.88rem}
.wa-chat-head small{display:block;margin-top:3px;color:#c2cdc6;font-size:.7rem}
.wa-chat-head .status-chip{margin-left:auto}
.wa-chat-scroll{flex:1;padding:20px 19px;background:#efe7db url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='6' cy='6' r='1.2' fill='%23000' opacity='.045'/%3E%3Ccircle cx='26' cy='22' r='1.2' fill='%23000' opacity='.045'/%3E%3C/svg%3E");display:grid;gap:9px;max-height:430px;overflow:auto}
.wa-day{justify-self:center;padding:5px 11px;border-radius:20px;background:rgba(255,255,255,.75);color:#6c7169;font-size:.63rem;font-weight:800}
.wa-msg{max-width:min(78%,470px);padding:10px 13px 20px;border-radius:12px;position:relative;font-size:.82rem;line-height:1.45;box-shadow:0 2px 5px rgba(30,32,30,.09)}
.wa-msg time{position:absolute;right:11px;bottom:6px;font-size:.6rem;color:#7b8079;font-weight:700}
.wa-msg.them{justify-self:start;background:#fff;border-top-left-radius:3px}
.wa-msg.us{justify-self:end;background:#dcf6c8;border-top-right-radius:3px}
.wa-composer{display:flex;align-items:center;gap:10px;padding:13px 16px;border-top:1px solid #e6dfd3;background:#f7f3ec}
.wa-composer input{flex:1;min-height:44px;border:1px solid var(--line);border-radius:22px;padding:10px 16px;background:#fff;color:var(--ink);outline:none}
.wa-composer button{border:0;width:44px;height:44px;border-radius:50%;background:#2fb467;color:#fff;font-size:1rem;display:grid;place-items:center}
.wa-linked{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:13px 17px;border-top:1px solid #ece6db;background:#fffdf8}
.wa-linked span{padding:6px 9px;border-radius:8px;background:#f1eee7;color:var(--muted);font-size:.66rem;font-weight:700}
.wa-linked span b{color:var(--ink)}

@media(max-width:1100px){.wa-workspace{grid-template-columns:1fr}.wa-chat{min-height:0}}
@media(max-width:760px){
  body.demo-body .sidebar{top:52px;height:calc(100% - 52px)}
  body.demo-body .sidebar-scrim{top:52px}
  .demo-ribbon{padding:8px 13px;gap:9px}
  .demo-ribbon p{display:none}
  .demo-ribbon .demo-tag{font-size:.62rem;padding:5px 9px}
  .demo-ribbon a.demo-alt{display:none}
  body.demo-body{padding-top:52px;padding-bottom:72px}
  body.demo-body .sidebar{top:52px}
  .demo-float-notice{bottom:84px}
  .wa-msg{max-width:88%}
}
