/* AGLO Domicilios · adaptación del código de marca Negocios 20261009-pro-p.
   Capa visual compartida. No altera estados, permisos ni identidad de tiendas. */
@font-face{font-family:"Bricolage Grotesque";src:url("../assets/brand/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");font-weight:200 800;font-stretch:75% 100%;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url("../assets/brand/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
:root{
  --ab-orange:#f23f0d;--ab-forest:#073119;--ab-paper:#f8f6f3;--ab-sand:#eadfcf;
  --ab-display:"Bricolage Grotesque",system-ui,sans-serif;
  --ab-text:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-ui:var(--ab-text);
}
body[data-aglo-surface]{font-family:var(--ab-text);-webkit-font-smoothing:antialiased}
body[data-aglo-surface] [hidden]{display:none!important}
body[data-aglo-surface] :is(button,input,select,textarea){font-family:inherit}
body[data-aglo-surface]:where(:not([data-aglo-surface="store"])){ 
  --bg:var(--ab-paper);--surface:#fff;--surface-soft:#f3efe8;--surface-strong:#eae5dc;
  --border:#e6e1d8;--border-strong:#d3ccbf;--text:#171b2f;--text-soft:#3a3e52;--text-muted:#676a7b;
  --primary:var(--ab-forest);--primary-hover:#0c4224;--primary-soft:#e6f0e4;--primary-contrast:#f4f9f0;
  --sidebar-bg:#fff;--sidebar-surface:#f3efe8;--sidebar-text:#171b2f;--sidebar-muted:#676a7b;
  --ink:var(--text);--muted:var(--text-muted);--soft:var(--surface-soft);
  --orange:var(--primary);--orange-dark:var(--primary-hover);--shadow:0 2px 8px #171b2f04;
  background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;
}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(h1,h2,h3){font-family:var(--ab-display);font-weight:800;letter-spacing:-.025em;text-wrap:balance}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.topbar h1,.intro h1){font-stretch:80%;text-transform:uppercase;line-height:1.04}
body[data-aglo-surface] :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #d66b45;outline-offset:3px}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.card,.module-card,.metric-card,.metric,.order-card,.list-card,.info-card){border-color:var(--border);box-shadow:0 2px 8px #171b2f04;border-radius:16px}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.metric strong,.metric-value,.stat-value){font-family:var(--ab-display);font-weight:800;font-stretch:85%;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.primary-button,.button.primary){border-radius:999px;background:var(--primary);color:var(--primary-contrast);font-weight:700}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.primary-button,.button.primary):hover:not(:disabled){background:var(--primary-hover)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.ghost-button,.button.secondary,.filter-button){border-radius:999px;border-color:var(--border-strong);color:var(--text);background:var(--surface)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .filter-button.active{background:var(--primary-soft);color:var(--primary);border-color:#a9c7ae}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.brand-mark,.brand-lockup .brand-mark){background:var(--ab-orange);color:#fff;border-radius:13px;box-shadow:none;font-family:var(--ab-display);font-weight:800}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.brand-title,.brand-lockup strong){font-family:var(--ab-display);font-weight:800;letter-spacing:-.04em}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar{background:var(--sidebar-bg);color:var(--sidebar-text);border-right:1px solid var(--border)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar :is(small,.brand-subtitle){color:var(--sidebar-muted)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar .nav-item{color:var(--sidebar-text);font-weight:600;border-radius:10px;min-height:44px}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar .nav-item:hover{background:var(--surface-soft)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar .nav-item.active{background:var(--primary-soft);color:var(--primary);box-shadow:inset 3px 0 var(--ab-orange)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar-footer{border-color:var(--border)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) .sidebar-footer .icon-button{background:var(--surface-soft);color:var(--text)}
body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.topbar,.card-header){background:var(--surface);border-color:var(--border)}
body[data-aglo-surface="central"]{--topbar-height:64px}
body[data-aglo-surface="central"] .topbar{height:64px;min-height:64px;padding:8px 18px}
body[data-aglo-surface="central"] .topbar h1,body[data-aglo-surface="local"] .topbar h1{font-size:clamp(20px,1.7vw,26px);margin-bottom:0}
body[data-aglo-surface="central"] .workspace-bar{background:var(--ab-forest);color:var(--ab-paper);border-bottom-color:var(--ab-orange)}
body[data-aglo-surface="central"] .workspace-name{font-family:var(--ab-display);font-weight:800}
body[data-aglo-surface="central"] .workspace-identity small{color:#d8e6d7;opacity:1}
@media(min-width:981px){body[data-aglo-surface="central"] .aglo-active-client-bubbles.service-channel-rail{top:auto;bottom:24px;max-height:55vh}}
body[data-aglo-surface="central"] .content{background:var(--bg)}
body[data-aglo-surface="local"] :is(.workspace,.view-root){background:var(--bg)}
body[data-aglo-surface="local"] .metric{padding:22px}
body[data-aglo-surface="local"] .metric strong{font-size:34px;line-height:1.15}
body[data-aglo-surface="local"] .card-header :is(h2,h3){font-size:20px}
body[data-aglo-surface="local"] .order-meta{background:var(--surface-soft);color:var(--text)}
body[data-aglo-surface="local"] .chat-thread{background:var(--ab-paper)}
body[data-aglo-surface="local"] .chat-item.active{box-shadow:inset 3px 0 var(--ab-orange)}
body[data-aglo-surface="local"] :is(.chat-composer,.login-card,.modal){border-color:var(--border)}
body[data-aglo-surface="local"] .login-screen{background:var(--ab-forest)}
body[data-aglo-surface="local"] .login-card{border-radius:24px;box-shadow:0 30px 90px #0002}
/* Acceso central: identidad pública, formulario y navegación existentes. */
body[data-aglo-surface="login"]{background:var(--ab-forest);gap:clamp(32px,6vw,100px);padding:48px;align-items:center}
body[data-aglo-surface="login"] .access-story{max-width:560px;color:var(--ab-paper)}
body[data-aglo-surface="login"] .access-story .eyebrow{display:inline-block;background:var(--ab-orange);color:#fff;padding:7px 13px;border-radius:999px;font-weight:700;font-size:12px;letter-spacing:.1em}
body[data-aglo-surface="login"] .access-story h2{font-size:clamp(42px,5.4vw,76px);font-stretch:78%;line-height:.98;margin:28px 0 20px;text-transform:uppercase}
body[data-aglo-surface="login"] .access-story p{font-size:18px;line-height:1.6;max-width:440px;color:#d8e6d7}
body[data-aglo-surface="login"] .access-story a{display:inline-block;margin-top:28px;color:var(--ab-paper);text-underline-offset:5px}
body[data-aglo-surface="login"] .card{flex:0 1 420px;max-width:420px;border:1px solid var(--border);padding:40px;border-radius:24px;box-shadow:0 30px 90px #0002}
body[data-aglo-surface="login"] .card h1{font-size:30px;color:var(--text)}
body[data-aglo-surface="login"] :is(.hint,.brand-subtitle){color:var(--text-muted)}
body[data-aglo-surface="login"] label{color:var(--text-soft)}
body[data-aglo-surface="login"] input{border-color:var(--border-strong);min-height:48px}
body[data-aglo-surface="login"] .btn{background:var(--ab-forest);border-radius:999px;min-height:48px}
body[data-aglo-surface="login"] .btn:hover:not(:disabled){background:#0c4224}
body[data-aglo-surface="login"] .btn:disabled{opacity:.55;cursor:wait}
/* Propietario: elegir central conserva la ciudad y el alcance a la vista. */
body[data-aglo-surface="platform"]>header{background:var(--ab-forest);color:var(--ab-paper);border:0;padding:18px max(24px,calc((100vw - 1200px)/2));gap:18px;flex-wrap:wrap}
body[data-aglo-surface="platform"]>header>a{font-family:var(--ab-display);font-weight:800;color:var(--ab-paper);letter-spacing:-.04em}
body[data-aglo-surface="platform"]>header>span{color:#d8e6d7}
body[data-aglo-surface="platform"] main{max-width:1200px;margin:auto;padding:48px 24px}
body[data-aglo-surface="platform"] .intro{padding:10px 0 32px}
body[data-aglo-surface="platform"] .intro h1{font-size:clamp(36px,5.5vw,64px);max-width:800px;color:var(--ab-forest)}
body[data-aglo-surface="platform"] .eyebrow{color:#b52e09;letter-spacing:.13em;font-size:11px;font-weight:700}
body[data-aglo-surface="platform"] :is(.central-card,.explainer,.network-finance){border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:0 2px 8px #171b2f04}
body[data-aglo-surface="platform"] :is(button,.open){border-radius:999px;background:var(--ab-forest);color:#fff;min-height:44px;font-weight:700}
body[data-aglo-surface="platform"] .secondary{background:var(--surface);color:var(--text);border:1px solid var(--border-strong)}
body[data-aglo-surface="platform"] dialog{border:1px solid var(--border);border-radius:24px;box-shadow:0 30px 90px #0003}
/* Composición AGLO Service: nombre protagonista, frase con fotos y carta.
   La paleta sigue perteneciendo al comercio, incluyendo marcas oscuras. */
body[data-aglo-surface="store"].storefront-editorial{--font-store:var(--ab-text);--font-store-title:var(--ab-display);font-family:var(--ab-text)}
body[data-aglo-surface="store"] :is(h1,h2,h3,.brand strong){font-family:var(--ab-display);font-weight:800;letter-spacing:-.035em}
body[data-aglo-surface="store"].storefront-editorial .topbar{gap:24px;background:var(--brand-secondary);color:var(--secondary-contrast);border-color:transparent}
body[data-aglo-surface="store"].storefront-editorial .brand{justify-content:center;flex:1;overflow:hidden}
body[data-aglo-surface="store"].storefront-editorial .brand small{color:inherit;opacity:.8}
body[data-aglo-surface="store"].storefront-editorial .cart-button{color:var(--surface-ink);background:var(--paper);border:0;border-radius:999px;flex-shrink:0}
.store-navigation{position:relative;flex-shrink:0}
.store-navigation summary{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;list-style:none;font-weight:600}
.store-navigation summary::-webkit-details-marker{display:none}
.store-navigation nav{position:absolute;top:calc(100% + 16px);left:0;min-width:260px;max-width:calc(100vw - 32px);display:grid;padding:16px;background:var(--paper);color:var(--surface-ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 40px #0003}
.store-navigation nav a{padding:14px 12px;text-decoration:none;border-radius:8px;font-weight:600}
.store-navigation nav a:hover{background:var(--orange-soft)}
.store-masthead{background:var(--brand-secondary);color:var(--secondary-contrast);text-align:center;padding:24px max(20px,calc((100vw - 1180px)/2)) 38px}
.store-masthead>p{margin:0 0 22px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.18em}
body[data-aglo-surface="store"] .store-masthead h1{margin:0;font-size:clamp(42px,9vw,132px);font-stretch:80%;line-height:.94;letter-spacing:-.04em;text-transform:uppercase;overflow-wrap:anywhere;text-wrap:balance}
body[data-aglo-surface="store"].storefront-editorial .hero{display:block;width:100%;margin:0;border:0;border-radius:0;background:var(--cream);color:var(--ink)}
body[data-aglo-surface="store"].storefront-editorial .hero-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:1100px;margin:auto;padding:clamp(32px,6vw,72px) 24px 40px}
.store-story{max-width:20ch;margin:0;font-family:var(--ab-display);font-weight:600;font-stretch:92%;font-size:clamp(32px,5.5vw,72px);letter-spacing:-.035em;line-height:1.12;text-wrap:balance;overflow-wrap:anywhere}
.story-photo-note{font-size:12px;color:var(--ink-soft);margin:18px 0 0}
.store-inline-photo{display:inline-block;height:.9em;width:1.45em;vertical-align:-.12em;border-radius:.14em;overflow:hidden;background:var(--paper);transform:rotate(-3deg);box-shadow:0 5px 14px #0002}
.store-inline-photo img{display:block;width:100%;height:100%;object-fit:cover}
.store-inline-photo.photo-1{width:.95em;border-radius:50%;transform:none}
.store-inline-photo.photo-2{width:1.3em;transform:rotate(3deg)}
body[data-aglo-surface="store"].storefront-editorial .hero-copy{margin:24px 0 0;max-width:60ch;font-size:16px;line-height:1.6;color:var(--ink-soft)}
body[data-aglo-surface="store"].storefront-editorial .hero-actions{flex-direction:row;flex-wrap:wrap;justify-content:center;align-self:center;gap:20px;margin:24px 0 0}
body[data-aglo-surface="store"].storefront-editorial .hero-actions .button{background:none;color:var(--ink);border:0;border-bottom:2px solid var(--orange);border-radius:0;padding:10px 0;text-transform:uppercase;font-size:13px;letter-spacing:.08em}
body[data-aglo-surface="store"].storefront-editorial .section-heading h2{font-size:clamp(36px,4.5vw,60px);font-stretch:80%;text-transform:uppercase;line-height:1;letter-spacing:-.03em}
body[data-aglo-surface="store"].storefront-editorial .search-box{border-radius:999px}
body[data-aglo-surface="store"].storefront-editorial :is(.button,.category-chip){border-radius:999px}
body[data-aglo-surface="store"].storefront-editorial .category-list{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
body[data-aglo-surface="store"].storefront-editorial .category-chip{flex-shrink:0;min-height:44px}
body[data-aglo-surface="store"].storefront-editorial .product-card{border-radius:20px;box-shadow:0 2px 8px #171b2f06}
body[data-aglo-surface="store"].storefront-editorial .product-body h3{font-size:22px;line-height:1.15}
body[data-aglo-surface="store"].storefront-editorial .product-actions .button{min-height:44px}
body[data-aglo-surface="store"].storefront-editorial .product-dialog{border-radius:24px}
body[data-aglo-surface="store"].storefront-editorial .store-campaign{width:var(--content);max-width:1000px;margin:0 auto 48px}
body[data-aglo-surface="store"].storefront-editorial .store-campaign .hero-photo{display:block;position:static;inset:auto;height:auto;min-height:0;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden}
body[data-aglo-surface="store"].storefront-editorial .store-campaign .hero-photo img{position:static;display:block;width:100%;height:auto;max-height:800px;object-fit:contain}
body[data-aglo-surface="store"].storefront-editorial .business-info{margin-bottom:32px;scroll-margin-top:100px}
body[data-aglo-surface="store"].storefront-editorial .business-info summary{min-height:60px;font-weight:600}
body[data-aglo-surface="store"].storefront-editorial .site-footer strong{font:800 clamp(24px,4vw,44px)/1.1 var(--ab-display);text-transform:uppercase;overflow-wrap:anywhere}
/* La identidad se adapta a herramientas de trabajo, sin esconder estados. */
body[data-aglo-surface="central"] .brand-block{background:var(--ab-forest);color:var(--ab-paper);min-height:94px}
body[data-aglo-surface="central"] .brand-block .brand-subtitle{color:#d8e6d7!important}
body[data-aglo-surface="local"] .sidebar-brand{background:var(--ab-forest);color:var(--ab-paper);margin:-23px -16px 18px;padding:22px 20px}
body[data-aglo-surface="local"]:not([data-aglo-surface="store"]) .sidebar .sidebar-brand small{color:#d8e6d7}
body[data-aglo-surface="local"] .sidebar{height:100dvh}
body[data-aglo-surface="local"] .sidebar nav{overflow-y:auto;min-height:0;flex:1;align-content:start}
body[data-aglo-surface="local"] .chat-bubble.out{background:var(--primary-soft);border-color:var(--border-strong)}
body[data-aglo-surface="local"] .chat-item.active{background:var(--primary-soft)}
body[data-aglo-surface="local"] :is(.product-card,.channel-card,.upload-box){border-color:var(--border);border-radius:16px}
body[data-aglo-surface="local"] .login-screen{display:flex;justify-content:center;gap:clamp(32px,6vw,100px);padding:48px;min-height:100dvh}
body[data-aglo-surface="local"] .access-story{max-width:500px;color:var(--ab-paper)}
body[data-aglo-surface="local"] .access-story .eyebrow{display:inline-block;border-radius:999px;padding:7px 13px;background:var(--ab-orange);color:white;font-size:12px;font-weight:700;letter-spacing:.1em}
body[data-aglo-surface="local"] .access-story h2{font-size:clamp(42px,5.4vw,76px);font-stretch:78%;line-height:.98;margin:28px 0 20px;text-transform:uppercase}
body[data-aglo-surface="local"] .access-story p{font-size:18px;line-height:1.6;max-width:440px;color:#d8e6d7}
body[data-aglo-surface="local"] .access-story a{display:inline-block;margin-top:20px;color:inherit;text-underline-offset:5px}
body[data-aglo-surface] .access-art{display:block;object-fit:contain;width:160px;height:120px;margin:18px 0;transform:rotate(-6deg)}
body[data-aglo-surface="local"] .login-card{flex:0 1 420px}
body[data-aglo-surface="platform"] .central{border-radius:20px;border-color:var(--border);border-top-color:var(--ab-orange)}
body[data-aglo-surface="platform"] .explainer{padding:24px}
body[data-aglo-surface="platform"] :is(.central-shortcuts a,.central-shortcuts button){font-family:var(--ab-text);background:var(--primary-soft);color:var(--primary)}
body[data-aglo-surface="platform"] :is(p,small){color:var(--text-soft)}
body[data-aglo-surface] :is(input,textarea,select){accent-color:var(--primary,var(--orange))}
.local-nav-close,.local-nav-backdrop{display:none}
/* El tema oscuro mantiene contraste y estados operativos, no fondos papel. */
html[data-theme="dark"] body[data-aglo-surface]:not([data-aglo-surface="store"]){
  --bg:#121817;--surface:#1b2421;--surface-soft:#26302c;--surface-strong:#344039;
  --border:#36433c;--border-strong:#526358;--text:#f4f9f0;--text-soft:#d3dfd3;--text-muted:#a9b8ae;
  --primary:#a7d5b0;--primary-hover:#c4e6ca;--primary-soft:#203d2c;--primary-contrast:#073119;
  --sidebar-bg:#151e19;--sidebar-surface:#26302c;--sidebar-text:#f4f9f0;--sidebar-muted:#a9b8ae;
}
html[data-theme="dark"] body[data-aglo-surface="platform"] .intro h1{color:var(--text)}
@media(max-width:800px){
  body[data-aglo-surface="login"]{padding:28px 20px;flex-direction:column;gap:24px;justify-content:center}
  body[data-aglo-surface="login"] .access-story{width:min(100%,420px)}
  body[data-aglo-surface="login"] .access-story h2{font-size:36px;margin:14px 0 0;max-width:360px}
  body[data-aglo-surface="login"] .access-story>p{display:none}
  body[data-aglo-surface="login"] .access-story a{margin-top:12px;font-size:13px}
  body[data-aglo-surface="login"] .card{flex:0 0 auto;padding:28px;width:100%}
  body[data-aglo-surface="platform"] main{padding:28px 16px}
  body[data-aglo-surface="platform"]>header{padding:16px;gap:10px}
  body[data-aglo-surface="platform"]>header>span{font-size:12px}
  body[data-aglo-surface="central"] .topbar h1,body[data-aglo-surface="local"] .topbar h1{font-size:24px}
  body[data-aglo-surface]:not([data-aglo-surface="store"]) :is(.primary-button,.ghost-button,.button,.filter-button){min-height:44px}
  body[data-aglo-surface="store"] .product-card h3{font-size:18px}
  body[data-aglo-surface="store"].storefront-editorial .hero-content{padding:36px 20px}
  body[data-aglo-surface="store"].storefront-editorial .topbar{gap:14px}
  body[data-aglo-surface="store"].storefront-editorial .brand small{display:none}
  body[data-aglo-surface="local"] .login-screen{padding:28px 20px;flex-direction:column;align-items:center;gap:24px}
  body[data-aglo-surface="local"] .access-story{width:min(100%,420px)}
  body[data-aglo-surface="local"] .access-story h2{font-size:36px;margin:14px 0 0}
  body[data-aglo-surface="local"] .access-story p,body[data-aglo-surface] .access-art{display:none}
  body[data-aglo-surface="local"] .access-story a{font-size:13px;margin-top:12px}
  body[data-aglo-surface="local"] .login-card{flex:none}
}
@media(max-width:760px){
  body.local-nav-open{overflow:hidden}
  body[data-aglo-surface="local"] .sidebar{z-index:51;max-width:86vw;padding-top:64px;box-shadow:0 20px 60px #0003}
  body[data-aglo-surface="local"] .sidebar-brand{margin-top:0;border-radius:12px;margin-inline:0;padding:16px 12px}
  .local-nav-close{position:absolute;top:12px;right:16px;display:flex;align-items:center;gap:12px;background:var(--surface-soft);color:var(--text);border:1px solid var(--border);border-radius:999px;min-height:40px;padding:8px 15px;font:600 14px var(--ab-text)}
  .local-nav-close span{font-size:22px;line-height:1}
  .local-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;border:0;background:#071b1699;z-index:50;border-radius:0}
  body[data-aglo-surface="local"] .topbar{gap:10px;min-width:0}
  body[data-aglo-surface="local"] .topbar>div:not(.topbar-actions){min-width:0;flex:1}
  body[data-aglo-surface="local"] .topbar h1{font-size:22px;overflow-wrap:anywhere}
  body[data-aglo-surface="local"] .topbar p{display:none}
  body[data-aglo-surface="local"] .mobile-menu{flex-shrink:0;min-width:44px;height:44px}
  body[data-aglo-surface="local"] :is(.card-header,.modal-header){flex-wrap:wrap}
  body[data-aglo-surface="local"] .toast-root{left:12px;right:12px;bottom:max(16px,env(safe-area-inset-bottom));max-height:40dvh;overflow:auto}
  body[data-aglo-surface="local"] .toast{max-width:none;overflow-wrap:anywhere}
  body[data-aglo-surface="central"]{--topbar-height:56px}
  body[data-aglo-surface="central"] .topbar{flex-wrap:nowrap;min-height:56px;height:56px;gap:6px;padding:6px 10px}
  body[data-aglo-surface="central"] .topbar-title-wrap{max-width:none;min-width:0;flex:1}
  body[data-aglo-surface="central"] .topbar h1{font-size:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:none;line-height:1.25}
  body[data-aglo-surface="central"] .topbar .page-subtitle{display:none}
  body[data-aglo-surface="central"] .topbar-actions{flex-shrink:0;gap:3px;margin-left:0}
  body[data-aglo-surface="central"] .topbar :is(.icon-button,.ghost-button,.primary-button){min-width:36px;width:36px;height:40px;min-height:40px;padding:8px}
  body[data-aglo-surface="central"] .topbar-actions .button-text{display:none}
}
@media(max-width:540px){
  body[data-aglo-surface="store"].storefront-editorial .topbar{gap:10px;min-height:68px;padding-inline:16px}
  body[data-aglo-surface="store"].storefront-editorial .brand{justify-content:flex-start;gap:8px}
  body[data-aglo-surface="store"].storefront-editorial .brand strong{font-size:14px}
  body[data-aglo-surface="store"].storefront-editorial .brand-mark{display:none}
  body[data-aglo-surface="store"].storefront-editorial .cart-button>span:nth-child(2){display:none}
  .store-navigation summary{gap:6px;font-size:14px}
  .store-masthead{padding:18px 16px 28px}
  .store-masthead>p{font-size:10px;letter-spacing:.12em;margin-bottom:16px}
  .store-story{font-size:clamp(30px,8.5vw,44px);max-width:18ch}
  body[data-aglo-surface="store"].storefront-editorial .hero-copy{font-size:15px;margin-top:18px}
  body[data-aglo-surface="store"].storefront-editorial .hero-actions{gap:12px 20px;margin-top:16px}
  body[data-aglo-surface="store"].storefront-editorial .product-card{grid-template-columns:100px minmax(0,1fr);border-radius:16px}
  body[data-aglo-surface="store"].storefront-editorial .product-body{padding:16px}
  body[data-aglo-surface="store"].storefront-editorial .product-body h3{font-size:19px}
  body[data-aglo-surface="store"].storefront-editorial .product-actions{gap:8px;flex-wrap:wrap;padding-top:10px}
  body[data-aglo-surface="store"].storefront-editorial .product-actions .button{font-size:13px;padding:8px 12px}
  body[data-aglo-surface="store"].storefront-editorial .product-dialog{border-radius:24px 24px 0 0}
  body[data-aglo-surface="store"].storefront-editorial .store-campaign{margin-bottom:30px}
  body[data-aglo-surface="local"] .topbar-actions .button.secondary{display:inline-flex;font-size:12px;padding-inline:10px}
}
/* Paper-cut details belong to public pages, never behind operational data. */
.store-masthead{position:relative;padding-bottom:48px}
.store-masthead::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:12px;background:var(--cream);clip-path:polygon(0 65%,3% 25%,7% 75%,11% 35%,16% 60%,21% 10%,26% 55%,32% 20%,38% 65%,44% 30%,50% 70%,57% 15%,64% 60%,70% 25%,77% 70%,84% 20%,91% 65%,96% 30%,100% 60%,100% 100%,0 100%);pointer-events:none}
.store-inline-photo:not(.photo-1){border:3px solid var(--paper);border-bottom-width:7px;border-radius:2px;box-shadow:3px 4px 0 #00000018;transform:rotate(-7deg)}
.store-inline-photo.photo-2{transform:rotate(7deg)}
body[data-aglo-surface="store"] .section-heading h2{width:fit-content;background:linear-gradient(transparent 65%,var(--orange-soft) 65%,var(--orange-soft) 92%,transparent 92%)}
body[data-aglo-surface="store"] .store-campaign{position:relative;padding:12px;background:var(--paper);border:1px solid var(--line);box-shadow:5px 7px 0 #0000000d;transform:rotate(-.5deg)}
body[data-aglo-surface="store"] .store-campaign::before{content:"";position:absolute;z-index:1;left:calc(50% - 38px);top:-10px;width:76px;height:22px;background:#dfc9a8bb;transform:rotate(-5deg);pointer-events:none}
body[data-aglo-surface="login"] .access-story .eyebrow,body[data-aglo-surface="local"] .access-story .eyebrow{border-radius:2px;transform:rotate(-3deg);box-shadow:3px 3px 0 #ffffff24}
/* Casos del Resumen: título, pedido y fechas en renglones separados (11-oct-2026). */
body[data-aglo-surface="central"] .professional-case .case-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
body[data-aglo-surface="central"] .professional-case .case-top>div{display:grid;gap:2px;min-width:0}
body[data-aglo-surface="central"] .professional-case .case-top span{color:var(--text-soft);font-size:13px}
body[data-aglo-surface="central"] .professional-case .case-meta{display:flex;flex-wrap:wrap;gap:2px 14px;color:var(--text-soft);font-size:12px;margin-bottom:8px}
@media(max-width:760px){
  body[data-aglo-surface="local"] .topbar{min-height:58px;padding:6px 12px}
  body[data-aglo-surface="local"] .topbar h1{font-size:18px}
  body[data-aglo-surface="central"] .notification-center{width:min(390px,calc(100vw - 20px));max-height:calc(100dvh - 115px);overflow:auto}
  body[data-aglo-surface="central"] :is(.form-grid,.grid-2){min-width:0}
  body[data-aglo-surface="store"] .store-campaign{padding:8px}
}
@media(prefers-reduced-motion:reduce){body[data-aglo-surface] *,body[data-aglo-surface] *::before,body[data-aglo-surface] *::after{scroll-behavior:auto;transition:none;animation:none}}
/* Central operational mobile views: content first, reachable actions. */
.client-back{display:none}
@media(max-width:700px){
  body[data-aglo-surface="central"] .sync-banner.green{flex-direction:row;align-items:center;gap:8px;padding:8px 10px;margin-bottom:12px}
  body[data-aglo-surface="central"] .sync-banner.green>.soft-button{width:auto;max-width:90px;min-height:44px;flex:none;padding:6px 9px;white-space:normal}
  body[data-aglo-surface="central"] .sync-banner.green>div{gap:4px}
  .kanban-toolbar .tab-button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:8px}
  .kanban-toolbar .tab-button .badge{flex:none;margin-left:0!important}
  .kanban-help{display:none}
  body[data-aglo-surface="central"] .clients-metrics,
  body[data-aglo-surface="central"] .escalations-view>.grid,
  body[data-aglo-surface="central"] .grid.cols-4:has(>.metric-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body[data-aglo-surface="central"] .clients-metrics .mini-stat,
  body[data-aglo-surface="central"] .escalations-view .metric-card,
  body[data-aglo-surface="central"] .grid.cols-4>.metric-card{min-height:0;padding:12px}
  body[data-aglo-surface="central"] .clients-metrics strong,
  body[data-aglo-surface="central"] .escalations-view .metric-value,
  body[data-aglo-surface="central"] .grid.cols-4>.metric-card .metric-value{font-size:25px;line-height:1.2}
  body[data-aglo-surface="central"] .clients-metrics small,
  body[data-aglo-surface="central"] .escalations-view .metric-help,
  body[data-aglo-surface="central"] .grid.cols-4>.metric-card .metric-help{display:none}
  .clients-view:not(.client-mobile-open) .client-detail-panel{display:none}
  .client-mobile-open .clients-master-panel,.client-mobile-open .clients-metrics{display:none}
  .client-mobile-open .client-detail-panel{display:block;scroll-margin-top:105px}
  .client-back{display:inline-flex;margin:12px}
  .clients-workspace,.client-info-grid{grid-template-columns:minmax(0,1fr)}
  .clients-master-panel .card-header p{display:none}
  .clients-search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .clients-list{max-height:none}
  body[data-aglo-surface="central"] :is(.client-detail-panel,.escalations-view,.mobile-order-list) :is(button,summary,select){min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .client-order-row,.client-detail-header,.escalation-card .title-line{display:flex;flex-wrap:wrap;gap:10px}
  .client-order-row>div:first-child{flex:1 1 100%}
  .escalation-card,.escalation-card p{overflow-wrap:anywhere;min-width:0}
  .escalation-card .row-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .escalation-card .chat-jump-menu{width:100%}
  .escalations-view .chat-jump-options{position:static;min-width:0;margin-top:6px;box-shadow:none}
  .escalations-view table,.escalations-view tbody,.escalations-view tr,.escalations-view td{display:block;min-width:0;width:100%}
  .escalations-view thead{display:none}
  .escalations-view tr{padding:10px;border-bottom:1px solid var(--border)}
  .escalations-view td{padding:5px;white-space:normal;overflow-wrap:anywhere;border:0}
  .escalations-view td::before{font-size:12px;color:var(--text-soft);margin-right:8px}
  .escalations-view td:nth-child(2)::before{content:"Pedido:"}
  .escalations-view td:nth-child(3)::before{content:"Cliente:"}
  .escalations-view td:nth-child(4)::before{content:"Estado:"}
  .escalations-view td:nth-child(5)::before{content:"Prioridad:"}
  .mobile-order-expanded .order-card{padding:12px;min-width:0}
  .mobile-order-expanded .row-actions{gap:8px}
  .mobile-order-expanded select{width:100%;max-width:100%}
  /* Despacho en celular: cola compacta para que se vean varios pedidos y el detalle sin buscarlo. */
  body[data-aglo-surface="central"] .dispatch-queue{max-height:min(52vh,420px);gap:8px}
  body[data-aglo-surface="central"] .dispatch-queue-item{padding:10px 12px;gap:3px;line-height:1.35}
  body[data-aglo-surface="central"] .dispatch-workspace{gap:14px}
  body[data-aglo-surface="central"] .dispatch-intro p:not(.dispatch-eyebrow){font-size:13px}
}
/* ¿Local listo para clientes? (11-oct-2026) */
body[data-aglo-surface="central"] .mini-aglo-readiness{margin:0 16px 14px;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-soft)}
body[data-aglo-surface="central"] .mini-aglo-readiness.ready{border-color:#2e7d4f55}
body[data-aglo-surface="central"] .mini-aglo-readiness.blocked{border-color:#c6282855;background:#c628280d}
body[data-aglo-surface="central"] .mini-aglo-readiness summary{font-weight:700;cursor:pointer;min-height:32px;display:flex;align-items:center}
body[data-aglo-surface="central"] .mini-aglo-readiness.ready summary{color:#2e7d4f}
body[data-aglo-surface="central"] .mini-aglo-readiness.blocked summary{color:#c62828}
body[data-aglo-surface="central"] .mini-aglo-readiness ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px;font-size:13px;overflow-wrap:anywhere}
body[data-aglo-surface="central"] .mini-aglo-readiness li.block{color:#c62828;font-weight:600}
body[data-aglo-surface="central"] .mini-aglo-readiness li.warn{color:#9a6700}
body[data-aglo-surface="central"] .mini-aglo-readiness li.ok{color:var(--text-soft)}
