:root{
 --ink:#392b20;
 --coffee:#624832;
 --accent:#a68157;
 --paper:#f6f1e9;
 --white:#fffdf9;
 --line:#dfd2c1;
 --muted:#867565;
 --green:#37674b;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
 margin:0;
 background:var(--paper);
 color:var(--ink);
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:15px;
 line-height:1.55;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{
 outline:3px solid var(--accent);
 outline-offset:3px;
}
h1,h2,h3,p{margin:0}
h1,h2,h3{letter-spacing:-.035em;line-height:1.15}
h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(36px,7vw,55px)}
h2{font-size:25px}
h3{font-size:20px}
.eyebrow{
 display:block;
 font-size:10px;
 font-weight:750;
 letter-spacing:.16em;
 text-transform:uppercase;
 color:var(--muted);
}
.login-screen{
 min-height:100dvh;
 display:grid;
 place-items:center;
 padding:24px;
 background:radial-gradient(ellipse at top,#fffdf9,#e8dece);
}
.login-card{
 width:100%;
 max-width:430px;
 padding:36px;
 border:1px solid var(--line);
 background:var(--white);
 border-radius:24px;
 box-shadow:0 22px 70px #392b2010;
}
.brand{text-align:center;margin-bottom:40px}
.brand img{max-width:160px;max-height:100px;object-fit:contain}
.brand-word{display:block;font:48px Georgia,serif}
.login-intro{margin-bottom:28px}
.login-intro h1{margin:8px 0}
.login-intro p,.muted{color:var(--muted)}
label{display:block;margin:18px 0 7px;font-size:13px;font-weight:650}
input{
 width:100%;
 min-height:50px;
 padding:12px 15px;
 border:1px solid var(--line);
 background:var(--paper);
 border-radius:9px;
 color:var(--ink);
 font-size:16px;
}
.primary{
 display:block;
 width:100%;
 border:0;
 border-radius:9px;
 background:var(--ink);
 color:white;
 min-height:48px;
 padding:13px 18px;
 cursor:pointer;
 font-weight:650;
 margin-top:24px;
 text-align:center;
}
.outline{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 border:1px solid var(--line);
 background:transparent;
 color:var(--ink);
 padding:8px 14px;
 min-height:42px;
 border-radius:8px;
 font-size:12px;
 cursor:pointer;
}
footer{
 text-align:center;
 color:var(--muted);
 font-size:11px;
 margin-top:32px;
}
.notice{
 background:#f8e5d9;
 color:#843a20;
 border-radius:8px;
 padding:12px;
 margin:15px 0;
}
.topbar{
 position:sticky;
 top:0;
 z-index:10;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 background:var(--white);
 padding:16px 24px;
 border-bottom:1px solid var(--line);
}
.top-brand{
 display:flex;
 gap:14px;
 align-items:center;
}
.top-brand img{width:66px;height:52px;object-fit:contain}
.top-brand strong{font:29px Georgia,serif}
.top-brand small{font-size:12px;color:var(--coffee)}
.dashboard{
 max-width:1050px;
 margin:auto;
 padding:30px 24px 110px;
}
.welcome{padding:20px 0 28px}
.welcome h1{margin:7px 0 12px}
.welcome p{color:var(--muted)}
.stats{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;
 margin-bottom:40px;
}
.stat{
 background:var(--white);
 border:1px solid var(--line);
 border-radius:13px;
 padding:20px;
 display:flex;
 flex-direction:column;
}
.stat span{font-size:12px;color:var(--coffee)}
.stat strong{font-size:34px;letter-spacing:-.06em}
.stat small{font-size:11px;color:var(--muted)}
.stat.recibido{border-top:3px solid var(--accent)}
.stat.entregado strong{color:var(--green)}
.section-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin-bottom:18px;
}
.section-heading h2,.profile h2{margin-top:5px}
.empty,.order,.profile{
 background:var(--white);
 border:1px solid var(--line);
 border-radius:14px;
 padding:24px;
}
.empty{text-align:center;padding:45px 20px}
.empty-icon{
 display:grid;
 place-items:center;
 margin:0 auto 18px;
 border:1px solid var(--line);
 border-radius:50%;
 width:48px;height:48px;
 color:var(--green);
 font-size:24px;
}
.empty p{color:var(--muted);margin-top:8px}
.order{margin-bottom:16px}
.order-head,.order-total,.item{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
}
.order-head h3{font-size:28px;margin-top:3px}
.status{
 background:#eee7d8;
 color:var(--coffee);
 font-size:11px;
 font-weight:700;
 padding:7px 10px;
 border-radius:20px;
}
.status.recibido{background:#f6e4c7;color:#795018}
.status.preparacion{background:#dfe9dc;color:var(--green)}
.order .muted{font-size:12px;margin:12px 0}
.order-lines{border-top:1px solid var(--line);padding:12px 0}
.item{padding:7px 0;font-size:14px}
.order-total{border-top:1px solid var(--line);padding-top:15px}
.order-total strong{font-size:23px}
.profile{margin-top:36px;overflow-wrap:anywhere}
.profile p{margin:12px 0 5px}
.profile small{color:var(--muted)}
.bottom-nav{
 position:fixed;
 bottom:0;
 left:0;
 right:0;
 z-index:10;
 display:flex;
 justify-content:space-around;
 background:var(--ink);
 color:white;
 padding:17px 12px calc(17px + env(safe-area-inset-bottom));
}
.bottom-nav a{font-size:13px;padding:4px 20px}
section[id]{scroll-margin-top:115px}
@media(max-width:650px){
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard{padding:22px 17px 110px}
 .topbar{padding:13px 17px}
 .login-card{padding:28px}
 .top-brand .eyebrow{font-size:9px}
 .order{padding:18px}
 .bottom-nav a{padding:4px 10px}
}

[hidden]{display:none!important}
.pwa-install{
 margin:22px 0;
 text-align:center
}
.pwa-install button{
 width:100%;
 min-height:46px;
 border-color:#a68157;
 font-weight:650
}
.pwa-install p{
 font-size:13px;
 color:#705d49;
 line-height:1.6
}

/* MARTICA PASSWORD VISIBILITY */
.password-field{
 position:relative;
}
.password-field input{
 padding-right:58px;
}
.password-toggle{
 position:absolute;
 right:5px;
 top:50%;
 transform:translateY(-50%);
 width:44px;
 height:44px;
 display:grid;
 place-items:center;
 background:transparent;
 color:#705d49;
 border:0;
 border-radius:8px;
 cursor:pointer;
}
.password-toggle:hover{
 background:#e8dece;
}
.password-toggle [hidden]{
 display:none!important;
}

/* MARTICA WEB PUSH */
.push-panel{
 margin:32px 0;
 background:var(--white);
 border:1px solid var(--line);
 border-radius:14px;
 padding:24px;
}
.push-panel h2{
 margin:7px 0 12px;
}
.push-panel p{
 color:var(--coffee);
 font-size:14px;
}
.push-panel small{
 display:block;
 margin-top:16px;
 color:var(--muted);
 font-size:12px;
}
.push-panel .outline{
 margin-top:18px;
}
.push-panel button:disabled{
 opacity:.5;
 cursor:wait;
}
