:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#183034;background:#f7f6f2;color-scheme:light;font-synthesis:none;font-size:15px}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #dca342;outline-offset:2px}[hidden]{display:none!important}.app{min-height:100dvh}.topbar{background:#162b2e;color:white;min-height:75px;padding:13px max(20px,calc((100vw - 1130px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{height:47px;width:47px;border-radius:15px;display:grid;place-items:center;font-size:28px;background:#e5bd76;box-shadow:inset 0 -4px 0 #0000000f}.brand strong{font-size:17px;display:block;color:#ffe2a9;line-height:1.2}.brand span{display:block;font-size:11px;color:#cbdcdb;margin-top:4px}.top-actions{display:flex;align-items:center;gap:9px}.license{font-size:11px;background:#285247;border:1px solid #5f8c77;padding:6px 8px;border-radius:99px;white-space:nowrap}.license.paused{background:#6f3a31;border-color:#c38f80}.logout,.icon-button{background:transparent;border:1px solid #6b8080;color:#f7f7ee;border-radius:11px;padding:9px 12px;min-height:38px}.icon-button{font-size:20px;padding:4px 9px}main{max-width:1130px;margin:0 auto;padding:0 20px 125px}.startup{min-height:65vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#55696d}.spinner{height:37px;width:37px;border:4px solid #dde5df;border-top-color:#c78c35;border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{min-height:calc(100dvh - 185px);display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;max-width:990px;margin:auto;padding:43px 0}.auth-hero{padding:10px}.auth-hero h1{font-size:clamp(33px,5vw,55px);letter-spacing:-.045em;line-height:1.07;margin:10px 0 17px}.auth-hero>p:not(.eyebrow){color:#657271;font-size:16px;line-height:1.7}.auth-illustration{width:86px;height:86px;border-radius:25px;background:#e0bb78;display:grid;place-items:center;font-size:48px;margin-bottom:26px}.auth-card{padding:31px;background:#fff;border:1px solid #e6e5da;border-radius:23px;box-shadow:0 13px 44px #213a350e;display:flex;flex-direction:column;gap:15px}.auth-card h2{font-size:23px;letter-spacing:-.025em;margin:0}.auth-card>.muted{margin:0}.eyebrow,.overline{font-size:10px;letter-spacing:.14em;color:#9c6c2d;font-weight:850}.overline{display:block;margin-bottom:6px}.auth-card label,.settings-form label,.modal-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#344f50}.auth-card input,.settings-form input:not([type=checkbox]),.settings-form textarea,.modal-card input:not([type=checkbox]):not([type=file]),.modal-card textarea,.modal-card select{width:100%;min-height:45px;border:1px solid #cfd7d0;background:#fff;padding:11px 12px;border-radius:11px;color:#22373c;font-size:16px}.settings-form textarea,.modal-card textarea{resize:vertical;min-height:76px}.modal-card input[type=file]{font-size:12px;padding:8px;background:#f9f9f3;border:1px dashed #a7b3a6;border-radius:11px}.primary,.secondary,.small-outline{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;font-weight:800;min-height:45px;padding:11px 17px;text-decoration:none}.primary{background:#1a4849;color:white;border:1px solid #1a4849}.primary:hover{background:#103638}.primary.compact{min-height:43px;padding:10px 15px;font-size:13px}.secondary{background:#f4e8d2;color:#765023;border:1px solid #e8d2a8}.secondary:hover{background:#efd9b4}.small-outline{background:#fff;border:1px solid #d3d9cf;color:#426360;font-size:12px;min-height:35px;padding:7px 12px}.small-outline:hover{border-color:#73968b}.muted{color:#78817a;font-size:13px;line-height:1.55}.form-status{font-size:13px;line-height:1.5;color:#52675f;margin:0;white-space:pre-line}.form-status.error{color:#a93c2f}.hero-band{background:linear-gradient(119deg,#174143,#285957 80%);color:white;display:flex;align-items:center;justify-content:space-between;border-radius:23px;margin:27px 0 31px;padding:29px 35px;min-height:166px;overflow:hidden}.hero-band .eyebrow{color:#efc586}.hero-band h1{font-size:clamp(25px,4vw,35px);margin:8px 0 8px;line-height:1.2;letter-spacing:-.04em}.hero-band p{font-size:14px;color:#e0efeb;margin:0}.hero-badge{font-size:75px;transform:rotate(-18deg);filter:drop-shadow(0 8px 8px #0002)}.page{animation:fadein .16s ease}@keyframes fadein{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.section-heading,.inline-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 17px}.section-heading h2{font-size:25px;margin:0;letter-spacing:-.04em}.section-heading h3{font-size:18px;margin:0}.spaced{margin-top:30px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi{background:#fff;border:1px solid #e4e9df;border-radius:19px;padding:21px;display:flex;flex-direction:column;gap:8px;min-height:155px}.kpi span{color:#677b76;font-size:12px;font-weight:750}.kpi strong{font-size:clamp(27px,3vw,35px);color:#173638;letter-spacing:-.04em;line-height:1.1}.kpi small{color:#8c948d;font-size:11px}.kpi.accent{background:#183c3c;border-color:#183c3c}.kpi.accent span,.kpi.accent small{color:#c6d8cb}.kpi.accent strong{color:#f5d49d;font-size:clamp(23px,2.65vw,34px)}.dashboard-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:19px}.feature{background:white;border:1px solid #e4e8df;border-radius:20px;padding:23px;min-height:215px}.feature-icon{background:#fff6e5;border-radius:13px;width:46px;height:46px;display:grid;place-items:center;font-size:24px}.feature h3{margin:14px 0 7px;font-size:18px}.feature p{margin:0 0 17px;color:#637471;font-size:13px;line-height:1.6}.integration-note{background:#fbf4e5;color:#746347;border:1px solid #edddbb;border-radius:15px;font-size:12px;line-height:1.65;padding:14px 17px;margin:20px 0}.bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;max-width:800px;margin:0 auto;padding:9px 8px max(10px,env(safe-area-inset-bottom));background:#fff;border:1px solid #dae1d8;border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -9px 30px #1b363016;display:flex;gap:4px;justify-content:space-around}.bottom-nav button{position:relative;flex:1;border:0;background:none;border-radius:14px;color:#71847d;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:750;padding:7px 5px}.bottom-nav button.active{color:#183f3d;background:#eff4ed}.nav-icon{font-size:23px;line-height:25px}.bottom-nav i{position:absolute;top:0;right:9px;background:#b54b35;color:#fff;border-radius:20px;padding:2px 5px;font-size:10px;font-style:normal}.filter-row{display:flex;gap:8px;overflow:auto;padding:0 0 10px;margin-bottom:14px}.filter{flex:none;border:1px solid #d7e0d8;background:white;color:#56726b;border-radius:99px;padding:8px 15px;font-size:12px;font-weight:750}.filter.active{background:#1c4948;color:white;border-color:#1c4948}.surface{background:#fff;border:1px solid #e4e7df;border-radius:18px;padding:22px;margin:0 0 17px}.surface h3{font-size:17px;margin:0}.chip-list{display:flex;gap:9px;flex-wrap:wrap}.chip{border:1px solid #e8d9b9;border-radius:12px;background:#fff8eb;padding:8px 12px;color:#765629;font-size:12px;font-weight:750}.chip.dim{opacity:.55}.chip button{background:none;border:0;color:#6b624e;margin-left:10px;font-size:12px;text-decoration:underline}.empty{background:#fff;border:1px dashed #cbd5ca;border-radius:18px;padding:35px 17px;text-align:center;color:#667872;font-size:14px}.empty .empty-icon{display:block;font-size:37px;margin-bottom:10px}.product-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.product-card{background:white;border:1px solid #e2e7dc;padding:14px;border-radius:16px;display:flex;align-items:center;gap:13px;min-height:120px}.product-image{width:87px;height:87px;border-radius:13px;background:#f6f0df;display:grid;place-items:center;overflow:hidden;flex:none;font-size:35px}.product-image img{width:100%;height:100%;object-fit:cover}.product-content{flex:1;min-width:0}.product-name{font-size:15px;font-weight:800;overflow-wrap:anywhere}.product-description{font-size:12px;color:#829088;line-height:1.3;max-height:35px;overflow:hidden;margin:4px 0}.product-price{color:#93631d;font-weight:900;font-size:17px}.product-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:6px}.product-meta button{border:0;background:#eef4ee;border-radius:7px;color:#28534f;font-weight:700;padding:5px 8px;font-size:12px}.stock-off{font-size:10px;background:#f7e5e0;padding:3px 7px;border-radius:20px;color:#a0503b}.order-list{display:grid;gap:13px}.order-card{background:white;border:1px solid #dee6db;border-radius:18px;padding:18px}.order-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.order-number{font-size:17px;font-weight:900}.order-time{display:block;color:#8b928c;font-size:11px;margin-top:3px}.order-status{font-size:11px;font-weight:800;padding:6px 10px;border-radius:100px;background:#f2e6ce;color:#895d22}.order-status.ready,.order-status.completed{background:#e3efe7;color:#417057}.order-status.cancelled{background:#f5e8e5;color:#94584e}.order-meta{display:flex;gap:13px;flex-wrap:wrap;margin:9px 0;color:#66776e;font-size:12px}.order-lines{padding:13px 0;border-top:1px solid #f0f1eb;border-bottom:1px solid #f0f1eb;display:grid;gap:7px}.order-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:13px}.order-line small{display:block;color:#87928a;margin-top:4px}.order-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;flex-wrap:wrap}.order-foot strong{font-size:21px;color:#214744}.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.order-actions button{border:1px solid #dce6d8;background:#f3f7ef;border-radius:10px;font-size:12px;font-weight:750;padding:8px 12px;color:#2e5e50}.order-actions .destructive{background:#fff4f0;color:#a05040;border-color:#efd9cf}.order-actions .confirm{background:#214744;color:white;border-color:#214744}.payment-pending{font-size:11px;color:#bd712f}.payment-confirmed{font-size:11px;color:#31805a}.settings-form{display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.form-section-title{font-size:15px;font-weight:900;color:#2f4d45;margin-top:6px}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;font-size:13px!important;font-weight:550!important}.check input{width:18px;height:18px;accent-color:#275e50}.modal{position:fixed;margin:auto;width:min(540px,calc(100% - 18px));max-height:calc(100dvh - 20px);border:0;border-radius:23px;padding:0;box-shadow:0 20px 70px #10221b59;background:white;color:#244343}.modal::backdrop{background:#071b1bad;backdrop-filter:blur(3px)}.modal-card{padding:24px;display:flex;flex-direction:column;gap:14px;max-height:calc(100dvh - 20px);overflow:auto}.modal-header{display:flex;justify-content:space-between;align-items:flex-start}.modal-header h2{font-size:22px;margin:3px 0;letter-spacing:-.025em}.close{border:0;background:#f1f4ef;color:#47625a;font-size:25px;height:37px;width:37px;border-radius:10px}.order-items{display:grid;gap:9px}.order-item{display:grid;grid-template-columns:minmax(0,1fr) 68px 36px;gap:7px;align-items:center}.order-item select{min-width:0;font-size:13px}.order-item input[type=number]{min-width:0;padding:10px 6px!important}.order-item button{border:1px solid #eed8cf;background:#fff6f2;color:#a15a4b;border-radius:10px;height:44px}.order-item .item-note{grid-column:1/4;font-size:12px!important;min-height:36px!important}.order-total{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#60776a;border-top:1px solid #ebeee5;padding-top:12px}.order-total strong{font-size:22px;color:#193e3b}.toast{position:fixed;z-index:100;left:50%;bottom:90px;transform:translateX(-50%);max-width:min(550px,calc(100% - 26px));border-radius:14px;background:#1e413d;color:#fff;padding:13px 17px;font-size:13px;box-shadow:0 10px 36px #162a2844;text-align:center}.toast.error{background:#904b3a}@media(max-width:760px){.topbar{min-height:70px;padding:11px 15px}.top-actions{gap:5px}.license{font-size:9px}.brand-icon{width:42px;height:42px}.brand strong{font-size:15px}main{padding:0 13px 115px}.auth-page{grid-template-columns:1fr;gap:15px;padding:17px 0 45px}.auth-hero{padding:15px 3px 0}.auth-hero h1{font-size:33px;margin:6px 0}.auth-illustration{width:66px;height:66px;font-size:36px;margin-bottom:15px}.auth-card{padding:22px}.hero-band{margin:19px 0 24px;padding:23px;min-height:132px}.hero-badge{font-size:51px}.section-heading h2{font-size:22px}.kpi-grid{grid-template-columns:repeat(2,1fr);gap:9px}.kpi{min-height:129px;padding:15px}.kpi strong{font-size:28px}.kpi.accent strong{font-size:25px}.dashboard-cards,.product-list{grid-template-columns:1fr}.feature{min-height:auto}.form-grid,.check-grid{grid-template-columns:1fr}.modal-card{padding:19px}.order-card{padding:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.brand-icon img{height:100%;width:100%;border-radius:13px;object-fit:cover}

/* Comanda del dueño: la impresión nunca incluye otros pedidos ni datos de la interfaz. */
.print-receipt{display:none}
.order-actions .print-ticket{background:#f5f0e5;border:1px solid #d9ceba;color:#594620;font-weight:800}
@media print{
 @page{margin:4mm}
 html,body{background:#fff!important;color:#111!important;font:12px/1.35 Arial,sans-serif!important}
 body > :not(#printReceipt){display:none!important}
 #printReceipt{display:block!important;width:72mm;max-width:100%;margin:0;padding:0;color:#111;break-inside:avoid}
 .receipt-body{width:100%;overflow-wrap:anywhere}
 .receipt-body h1{font-size:18px;text-align:center;margin:0 0 4px}
 .receipt-body p{font-size:12px;margin:4px 0}
 .receipt-center{text-align:center}
 .receipt-strong{font-weight:800}
 .receipt-note{font-size:11px!important}
 .receipt-body hr{border:0;border-top:1px dashed #555;margin:9px 0}
 .receipt-row{display:flex;justify-content:space-between;gap:10px;padding:3px 0;break-inside:avoid}
 .receipt-row strong:last-child{white-space:nowrap}
 .receipt-total{font-size:15px;border-top:1px solid #111;margin-top:5px}
}

/* Imagen de negocio y fotografía: control visual para el dueño único */
.upload-panel{background:#fafbf8;border:1px solid #dce6d9;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px}
.upload-header{display:flex;flex-wrap:wrap;gap:5px;align-items:baseline;justify-content:space-between}.upload-header strong{font-size:14px;color:#2b493c}.upload-header span,.upload-hint{font-size:11px;color:#718277;line-height:1.45}
.upload-visual{width:100%;height:155px;background:#f2eddf;border:1px dashed #d4d8ce;border-radius:13px;display:flex;align-items:center;justify-content:center;overflow:hidden}.upload-visual.product{height:170px}.upload-visual img{width:100%;height:100%;object-fit:contain}.upload-visual.product img{object-fit:cover}.upload-placeholder{font-size:12px;color:#9b927f;text-align:center;padding:15px}
.upload-choice{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#365947;font-size:13px;font-weight:800}.upload-choice input{font-size:12px;width:100%;max-width:420px;border-radius:9px;background:#fff;padding:7px;border:1px solid #d5e2d3}
