/* Estampol · capa de rediseño (presentación). Se carga al final; no cambia estructura ni lógica. */
:root{--refresh-bar:color-mix(in srgb,var(--color-surface,#fffefa) 92%,transparent);--refresh-shadow:0 14px 40px -16px #182b2440}
html{-webkit-text-size-adjust:100%}
body{-webkit-tap-highlight-color:transparent}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
button,.header-account,.product-wordmark,select{-webkit-touch-callout:none}
@media(hover:hover){button:not(:disabled):hover{filter:brightness(1.03)}}
button:not(:disabled):active{transform:scale(.98)}
@media(prefers-reduced-motion:reduce){button:not(:disabled):active{transform:none}}

/* Cliente: la tarjeta del restaurante es la protagonista y tiñe la página con su color. */
.customer-shell{background:linear-gradient(180deg,color-mix(in srgb,var(--brand-tint,#183f32) 9%,var(--color-paper,#f7f4ec)),var(--color-paper,#f7f4ec) 420px)}
body.customer-shell.estampol-ui .customer-intro .eyebrow{font-size:13px;letter-spacing:.14em;color:var(--brand-tint,var(--color-brand,#183f32))}
body.customer-shell.estampol-ui #customerConnection{display:inline-flex;align-items:center;gap:8px;width:auto;padding:6px 12px;margin:0 0 18px;background:transparent;border:1px solid var(--color-line,#d5dacf);border-radius:999px;font-size:12px;color:var(--color-muted,#536658)}
body.customer-shell.estampol-ui #customerConnection:before{content:"";width:7px;height:7px;border-radius:50%;background:#3f8d5f}
@media(max-width:760px){
 .customer-shell .client-grid .card-area{order:-1}
 .customer-shell .customer-intro h1{font-size:34px}
 .customer-shell .customer-intro>p{display:none}
}

/* Personal y administración: acciones al alcance del pulgar en el celular. */
@media(max-width:760px){
 body.staff-shell>header{padding-bottom:12px}
 body.staff-shell>header nav{position:fixed;width:auto;max-width:none;box-sizing:border-box;margin:0;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:40;display:flex;gap:4px;padding:5px;background:var(--refresh-bar);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--color-line,#d5dacf);border-radius:20px;box-shadow:var(--refresh-shadow)}
 body.staff-shell>header nav button{flex:1;min-height:48px;border-radius:15px;font-size:14px}
 body.staff-shell #mainContent{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
 body.staff-shell .staff-head h1,body.staff-shell .staff-head p{display:none}
 body.staff-shell .staff-head{padding-block:0;gap:12px}
 body.staff-shell .restaurant-bar{padding:8px 10px;gap:8px}
 body.staff-shell #sessionLabel{display:block;width:100%;font-size:12px}
 body.staff-shell #connectionStatus{padding:8px 12px;font-size:12px}
 body.staff-shell .staff-metrics{display:flex;gap:10px}
 body.staff-shell .staff-metrics span{white-space:nowrap}
 body.staff-shell #scanButton{min-height:56px;font-size:16px}
}
@media(max-width:760px){
 body.staff-shell .workspace-heading h1{font-size:30px;line-height:1.08}
 body.staff-shell .workspace-heading p{display:none}
}

/* Suelo de legibilidad: ningún texto funcional por debajo de 11px (el detector de impeccable lo marcaba a 8–10px). */
body.estampol-ui :is(.eyebrow,.panel-kicker,.app-ribbon,.workspace-label,.nav-index,.metric-card>small,.quick-actions button small,.brand span,.showcase-back>span,.showcase-front small,.login-art>span,.mini-membership small,.overview-feature .eyebrow,.section-intro .eyebrow,.welcome-copy .eyebrow){font-size:max(11px,1em)}
.eyebrow,.panel-kicker,.workspace-label{font-size:11px}
#customerTermsText{font-size:13px}

/* Base móvil (mobile-native): sin retraso de toque, sin rebote de la página y entradas a 16px para que iOS no haga zoom. */
button,a,[role=button],select,label{touch-action:manipulation}
html{overscroll-behavior-y:none}
@media(pointer:coarse){input,textarea,select{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Portal de entrada y áreas de trabajo: sin versalitas con tracking, sin cursiva en el titular. */
body.estampol-ui .welcome-copy .eyebrow{display:none}
body.estampol-ui :is(h1,h2) em{font-style:normal}
body.estampol-ui .brand span,body.estampol-ui .card-brand span{text-transform:none;letter-spacing:.02em;font-size:12px}
body.estampol-ui :is(.panel-kicker,.workspace-label,.app-ribbon){text-transform:none;letter-spacing:.01em;font-size:12px}
.showcase-card{overflow:hidden}
.showcase-front{padding-bottom:28px}
body.estampol-ui *{text-transform:none}
body.estampol-ui :is(.login-art>span,.showcase-back>span,.showcase-front small,.mini-membership small,.overview-feature .eyebrow,.section-intro .eyebrow,.nav-index,.workspace-label,.card-tag,.card-tagline,.memberline,.reward-line span){letter-spacing:.01em}
body.estampol-ui .login-art em{font-style:normal}
body.estampol-ui .eyebrow{letter-spacing:.01em;font-size:13px;font-weight:600}
body.estampol-ui .mini-membership span,body.estampol-ui .mini-membership>*{letter-spacing:.01em}
body.estampol-ui .workspace-tab .nav-index{display:none}
@media(max-width:760px){body.staff-shell .restaurant-bar select{min-width:0;flex:1 1 0}body.staff-shell .restaurant-bar button{flex:none;white-space:nowrap}}
