:root{
    --pijo-orange:#ff7a00;
    --pijo-dark:#151515;
    --pijo-soft:#fff6ec;
    --pijo-border:#f0d7bd;
    --pijo-ok:#19a15f;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    min-height:100%;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:linear-gradient(180deg,#fff7ed,#ffffff);
    color:var(--pijo-dark);
}

.mozo-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.mozo-card{
    width:100%;
    max-width:430px;
    background:#fff;
    border:1px solid var(--pijo-border);
    border-radius:26px;
    padding:28px;
    box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.mozo-logo{
    display:inline-flex;
    padding:10px 14px;
    border-radius:999px;
    background:var(--pijo-soft);
    color:var(--pijo-orange);
    font-weight:900;
    letter-spacing:.08em;
    font-size:13px;
}

h1{
    margin:22px 0 8px;
    font-size:30px;
    line-height:1.05;
}

p{
    margin:0 0 18px;
    color:#555;
}

.mozo-status{
    padding:14px 16px;
    border-radius:18px;
    margin:20px 0;
    font-weight:700;
}

.mozo-status.ok{
    background:#eafaf2;
    color:var(--pijo-ok);
}

.mozo-btn{
    width:100%;
    border:0;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:52px;
    padding:14px 18px;
    border-radius:18px;
    background:var(--pijo-orange);
    color:white;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    font-size:16px;
}

.mozo-form{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.mozo-form label{
    font-size:13px;
    font-weight:800;
    color:#333;
}

.mozo-form input{
    width:100%;
    min-height:50px;
    border:1px solid #ead6c0;
    border-radius:16px;
    padding:0 14px;
    font-size:16px;
    outline:none;
}

.mozo-form input:focus{
    border-color:var(--pijo-orange);
    box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

.mozo-note{
    margin-top:16px;
    font-size:13px;
    text-align:center;
}

.mozo-page{
    min-height:100vh;
    padding:18px;
    max-width:760px;
    margin:0 auto;
}

.mozo-topbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:20px;
}

.mozo-topbar h1{
    margin:16px 0 4px;
}

.mozo-link,
.mozo-back{
    color:var(--pijo-orange);
    font-weight:900;
    text-decoration:none;
}

.mozo-link{
    padding:10px 12px;
    border-radius:999px;
    background:#fff3e6;
}

.mozo-grid{
    display:grid;
    gap:14px;
}

.mozo-tile{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:92px;
    padding:20px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--pijo-border);
    text-decoration:none;
    color:var(--pijo-dark);
    box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.mozo-tile-title{
    font-size:20px;
    font-weight:950;
}

.mozo-tile-sub{
    color:var(--pijo-orange);
    font-weight:900;
}

.mozo-mesas{
    display:grid;
    gap:12px;
}

.mozo-mesa{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    border-radius:22px;
    background:#fff;
    color:var(--pijo-dark);
    text-decoration:none;
    border:1px solid var(--pijo-border);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.mozo-mesa strong{
    display:block;
    font-size:22px;
}

.mozo-mesa span{
    display:block;
    margin-top:5px;
    font-weight:900;
}

.mozo-mesa small{
    display:block;
    margin-top:5px;
    color:#666;
}

.mozo-mesa em{
    font-style:normal;
    font-size:32px;
    color:#999;
}

.mozo-mesa.free{
    border-left:8px solid #19a15f;
}

.mozo-mesa.busy{
    border-left:8px solid #2563eb;
}

.mozo-mesa.warning{
    border-left:8px solid #e54848;
}

.mozo-empty{
    padding:22px;
    border-radius:20px;
    background:#fff;
    border:1px dashed var(--pijo-border);
    color:#666;
    text-align:center;
    font-weight:800;
}

.pin-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:
        radial-gradient(circle at top left, rgba(255,122,0,.18), transparent 32%),
        linear-gradient(180deg,#fff8ef,#ffffff);
}

.pin-card{
    width:100%;
    max-width:430px;
    background:#fff;
    border:1px solid var(--pijo-border);
    border-radius:30px;
    padding:28px;
    box-shadow:0 22px 55px rgba(0,0,0,.16);
    text-align:center;
}

.pin-card h1{
    margin:22px 0 8px;
    font-size:31px;
}

.pin-subtitle{
    margin-bottom:18px;
    font-weight:800;
    color:#555;
}

.pin-dots{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:18px 0 12px;
}

.pin-dots span{
    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid #ffd0a3;
    background:#fff;
}

.pin-dots span.active{
    background:var(--pijo-orange);
    border-color:var(--pijo-orange);
}

.pin-msg{
    min-height:24px;
    font-weight:900;
    color:#777;
    margin-bottom:20px;
}

.pin-msg.ok{color:#19a15f}
.pin-msg.error{color:#d93025}
.pin-msg.loading{color:var(--pijo-orange)}

.pin-hidden-form{
    display:none;
}

.pin-keypad{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.pin-keypad button{
    min-height:68px;
    border:0;
    border-radius:22px;
    background:#fff3e6;
    color:#191919;
    font-size:30px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.pin-keypad button:active{
    transform:scale(.97);
    background:#ffe1c2;
}

.pin-keypad button[data-action="enter"]{
    background:var(--pijo-orange);
    color:#fff;
}

.pin-footer{
    margin-top:18px;
    font-size:13px;
    color:#777;
    font-weight:700;
}

.pin-shake{
    animation:pinShake .28s linear;
}

@keyframes pinShake{
    0%,100%{transform:translateX(0)}
    25%{transform:translateX(-7px)}
    50%{transform:translateX(7px)}
    75%{transform:translateX(-5px)}
}

.mozo-card-inline{
    max-width:none;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    margin-bottom:18px;
}

.mozo-list h2{
    font-size:20px;
    margin:20px 0 12px;
}

.mozo-line{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:16px;
    border:1px solid var(--pijo-border);
    background:#fff;
    border-radius:18px;
    margin-bottom:10px;
    box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.mozo-line strong,
.mozo-line small{
    display:block;
}

.mozo-line small{
    margin-top:4px;
    color:#666;
}

.mozo-line span{
    font-weight:950;
    white-space:nowrap;
}

.mozo-btn-fixed{
    margin-top:22px;
}

.mozo-page-order{
    padding-bottom:120px;
}

.mozo-catalogo{
    margin-top:24px;
}

.mozo-catalogo-head{
    display:grid;
    gap:10px;
    margin-bottom:14px;
}

.mozo-catalogo-head h2{
    margin:0;
    font-size:20px;
}

.mozo-catalogo-head input{
    width:100%;
    min-height:48px;
    border:1px solid var(--pijo-border);
    border-radius:16px;
    padding:0 14px;
    font-size:16px;
}

.mozo-cats{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:4px 0 12px;
    margin-bottom:10px;
}

.mozo-cat{
    border:0;
    white-space:nowrap;
    border-radius:999px;
    padding:12px 16px;
    background:#fff3e6;
    color:#222;
    font-weight:900;
}

.mozo-cat.active{
    background:var(--pijo-orange);
    color:#fff;
}

.mozo-products{
    display:grid;
    gap:10px;
}

.mozo-product{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    border:1px solid var(--pijo-border);
    background:#fff;
    color:#171717;
    border-radius:20px;
    padding:16px;
    text-align:left;
    box-shadow:0 8px 20px rgba(0,0,0,.07);
}

.mozo-product strong,
.mozo-product small,
.mozo-product span{
    display:block;
}

.mozo-product strong{
    font-size:17px;
}

.mozo-product small{
    color:#666;
    margin-top:4px;
}

.mozo-product span{
    color:var(--pijo-orange);
    font-weight:950;
    margin-top:5px;
}

.mozo-product em{
    width:42px;
    height:42px;
    border-radius:16px;
    background:var(--pijo-orange);
    color:#fff;
    display:grid;
    place-items:center;
    font-size:28px;
    font-style:normal;
    font-weight:950;
}

.mozo-cart{
    position:fixed;
    left:14px;
    right:14px;
    bottom:14px;
    max-width:732px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px;
    border-radius:24px;
    background:#151515;
    color:#fff;
    box-shadow:0 18px 45px rgba(0,0,0,.28);
    z-index:20;
}

.mozo-cart strong,
.mozo-cart span{
    display:block;
}

.mozo-cart span{
    color:#ddd;
    font-size:13px;
    margin-top:3px;
}

.mozo-cart button{
    border:0;
    border-radius:18px;
    padding:13px 16px;
    background:var(--pijo-orange);
    color:#fff;
    font-weight:950;
}

.mozo-cart button:disabled{
    opacity:.45;
}

.mozo-fab{
    position:fixed;
    right:22px;
    bottom:22px;
    width:66px;
    height:66px;
    border-radius:24px;
    background:var(--pijo-orange);
    color:#fff;
    display:grid;
    place-items:center;
    text-decoration:none;
    font-size:42px;
    font-weight:950;
    box-shadow:0 18px 38px rgba(255,122,0,.35);
    z-index:30;
}

.mozo-topbar-sticky{
    position:sticky;
    top:0;
    z-index:10;
    background:linear-gradient(180deg,#fff8ef,#fff8ef 80%,rgba(255,248,239,.88));
    padding-top:10px;
    padding-bottom:10px;
}

.mozo-catalogo-only{
    margin-top:6px;
}

.mozo-product-img{
    min-height:92px;
}

.mozo-product-img img{
    width:70px;
    height:70px;
    border-radius:18px;
    object-fit:cover;
    background:#fff3e6;
    flex:0 0 auto;
}

.mozo-product-img div{
    flex:1;
}

.mozo-timer-line{
    color:#555;
    font-weight:800;
}

.mozo-timer-box{
    display:grid;
    gap:6px;
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:#fff7ed;
    font-weight:900;
}

.mozo-sla-msg{
    margin-top:8px;
    font-weight:950;
    color:#ff7a00;
}

.mozo-timer-card.sla-warning{
    border-color:#ff9800 !important;
    box-shadow:0 0 0 3px rgba(255,152,0,.14), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-danger{
    border-color:#e54848 !important;
    box-shadow:0 0 0 3px rgba(229,72,72,.16), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-danger .mozo-sla-msg{
    color:#e54848;
}

.mozo-product.added{
    transform:scale(.985);
    border-color:var(--pijo-orange);
    box-shadow:0 0 0 3px rgba(255,122,0,.16), 0 8px 20px rgba(0,0,0,.07);
}

.mozo-timer-card.sla-open{
    border-color:#ff9800 !important;
    box-shadow:0 0 0 3px rgba(255,152,0,.18), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-open .mozo-sla-msg{
    color:#ff7a00;
}

.mozo-timer-card.sla-warning{
    border-color:#ff9800 !important;
    box-shadow:0 0 0 3px rgba(255,152,0,.18), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-warning .mozo-sla-msg{
    color:#ff7a00;
}

.mozo-timer-card.sla-danger{
    border-color:#e54848 !important;
    box-shadow:0 0 0 3px rgba(229,72,72,.18), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-danger .mozo-sla-msg{
    color:#e54848;
}

.mozo-line-actions{
    display:grid;
    gap:8px;
    justify-items:end;
    align-content:start;
}

.mozo-deliver-btn{
    border:0;
    border-radius:14px;
    padding:9px 12px;
    background:#19a15f;
    color:#fff;
    font-weight:950;
}

.mozo-deliver-btn:disabled{
    opacity:.55;
}

.mozo-status-line{
    margin-top:6px;
    font-weight:950;
    color:#ff7a00;
}

.mozo-line.is-delivered{
    opacity:.72;
    border-color:#cdebdc;
    background:#f6fff9;
}

.mozo-line.is-delivered .mozo-status-line{
    color:#19a15f;
}

.mozo-page{
    padding-bottom:98px;
}

.mozo-page-order{
    padding-bottom:148px;
}

.mozo-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    max-width:732px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:6px;
    padding:8px;
    border-radius:26px;
    background:#161616;
    color:#fff;
    box-shadow:0 18px 45px rgba(0,0,0,.30);
    z-index:45;
}

.mozo-bottom-nav a{
    color:#fff;
    text-decoration:none;
    display:grid;
    place-items:center;
    gap:2px;
    padding:8px 4px;
    border-radius:18px;
    font-weight:900;
    font-size:11px;
    opacity:.72;
}

.mozo-bottom-nav a b{
    font-size:20px;
    line-height:1;
}

.mozo-bottom-nav a span{
    line-height:1.1;
}

.mozo-bottom-nav a.active{
    background:#2a2a2a;
    opacity:1;
}

.mozo-bottom-nav a.nav-main{
    background:var(--pijo-orange);
    opacity:1;
    transform:translateY(-10px);
    box-shadow:0 10px 24px rgba(255,122,0,.35);
}

.mozo-bottom-nav a.nav-main b{
    font-size:26px;
}

.mozo-cart{
    bottom:88px;
}

.mozo-fab{
    bottom:92px;
}

.mozo-timer-card.sla-served{
    border-color:#2563eb !important;
    box-shadow:0 0 0 3px rgba(37,99,235,.12), 0 10px 25px rgba(0,0,0,.08);
}

.mozo-timer-card.sla-served .mozo-sla-msg{
    color:#2563eb;
}


.mozo-install-btn{
    width:100%;
    border:0;
    border-radius:18px;
    padding:14px 16px;
    margin-top:18px;
    background:#161616;
    color:#fff;
    font-weight:950;
    font-size:16px;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.mozo-install-help{
    display:none;
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:#fff7ed;
    color:#9a4b00;
    font-weight:850;
    font-size:13px;
    line-height:1.35;
}

/* ===== FIX ENTERPRISE: evitar que el menú inferior tape el último producto ===== */

.mozo-page,
.mozo-page-order{
    padding-bottom: calc(170px + env(safe-area-inset-bottom));
}

.mozo-fab{
    bottom: calc(95px + env(safe-area-inset-bottom));
}

