@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{--ink:#20232c;--muted:#9194a1;--line:#edf0f3;--primary:#6744df;--light:#f7f8fc;--shadow:0 8px 38px rgba(28,27,55,.045)}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'DM Sans',sans-serif;background:#f8f9fd}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.hidden{display:none!important}.eyebrow{letter-spacing:.2em;font-size:10px;font-weight:800;color:var(--primary)}.muted{color:#9298a8}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:-.045em}p{line-height:1.6}.btn{border:0;border-radius:12px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:18px;font-size:12px;font-weight:800;transition:.2s;white-space:nowrap}.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.btn.primary{background:var(--primary);color:white;box-shadow:0 7px 16px #6744df24}.btn.secondary{background:#f0eefb;color:var(--primary)}.btn.ghost{background:#fff;border:1px solid var(--line);color:#5a6170}.btn.light{background:white;color:#383244}.btn.wide{width:100%;justify-content:space-between}.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#211d36;color:white;padding:clamp(38px,7vw,110px);display:flex;flex-direction:column;justify-content:center;overflow:hidden;position:relative}.brandmark{background:#8564f2;color:white;border-radius:21px;font-size:30px;font-weight:800;width:66px;height:66px;display:grid;place-items:center;position:relative;z-index:1;box-shadow:0 12px 32px #14122730}.brandmark span{font-size:14px;position:absolute;right:9px;top:7px;color:#f4d482}.brandmark.small{width:38px;height:38px;font-size:21px;border-radius:12px}.brandmark.small span{font-size:9px;top:4px;right:4px}.login-art h1{font-size:clamp(38px,5vw,72px);line-height:1.07;margin:38px 0 20px;z-index:1}.login-art em{color:#c1aafa;font-style:normal}.login-art p{max-width:400px;color:#bfbad4;z-index:1}.art-dots{position:absolute;right:-140px;bottom:-140px;width:500px;height:500px;border:90px solid #493a78;border-radius:100%;opacity:.65}.login-panel{padding:clamp(30px,8vw,130px);display:flex;flex-direction:column;justify-content:center;max-width:700px;width:100%;margin:auto}.login-panel h2{font-size:34px;margin-top:17px}.login-panel>p{color:#858a99;margin:10px 0 30px}.login-panel label,.fieldgrid label,.modal-field{font-size:12px;font-weight:800;color:#5d6170;display:flex;flex-direction:column;gap:9px;margin-bottom:17px}.login-panel input,.fieldgrid input,.modal-field input,.modal-field textarea,.modal-field select{border:1px solid #e6e9f0;border-radius:12px;padding:13px 14px;outline:none;background:#fff;color:#232534;min-width:0}.login-panel input:focus,.fieldgrid input:focus,.modal-field input:focus,.modal-field textarea:focus{border-color:#9e8bea;box-shadow:0 0 0 3px #7b61dc12}.login-panel small{margin-top:25px;color:#9297a5;line-height:1.7}.formerror{color:#dc385b;font-size:12px;padding-top:8px;min-height:26px}.shell{display:flex;min-height:100vh}.sidebar{width:244px;background:#fff;border-right:1px solid var(--line);padding:30px 16px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;flex-shrink:0}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 10px;font-weight:800;font-size:20px;letter-spacing:-1px}.studio-tag{display:block;letter-spacing:.3em;color:#aaa3c6;font-weight:700;font-size:8px;margin-top:3px}.sidebar-label{font-size:10px;letter-spacing:.14em;color:#afb1c0;font-weight:800;margin:55px 16px 17px}.side{width:100%;padding:14px 16px;border:0;background:transparent;display:flex;gap:13px;text-align:left;border-radius:12px;font-size:14px;color:#888d9b;align-items:center;margin-bottom:6px}.side span{flex:1}.side.active{color:var(--primary);background:#f4f0ff;font-weight:800}.side i{font-size:9px;color:white;background:#b093ff;border-radius:6px;padding:4px;font-style:normal}.sidebar-bottom{margin-top:auto;font-size:11px;display:flex;align-items:center;gap:7px;color:#687083;padding:10px 8px}.sidebar-bottom button{margin-left:auto;background:none;border:0;color:#9b8dd0}.online-dot{width:7px;height:7px;border-radius:50%;background:#38c293}.main{padding:35px clamp(20px,4vw,60px);flex:1;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;gap:15px}.topbar h1{font-size:clamp(22px,3vw,31px);margin-top:7px}.top-actions{display:flex;gap:10px}.welcome{padding:40px;background:linear-gradient(110deg,#6e51e2,#8c72f4);border-radius:22px;display:flex;justify-content:space-between;color:white;overflow:hidden;min-height:225px}.welcome h2{font-size:35px;max-width:400px;margin:11px 0}.welcome p{font-size:13px;color:#ddd5ff;max-width:440px;margin-bottom:22px}.welcome .eyebrow{color:#e0d5ff}.welcome-graphic{font-size:180px;line-height:1;color:#beaafa;transform:rotate(-22deg);opacity:.55}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0 40px}.stat,.steps>div,.settings-card,.table-wrap{background:white;border:1px solid #eef0f4;border-radius:17px;box-shadow:var(--shadow)}.stat{padding:23px}.stat span{font-size:11px;color:#9398a5}.stat strong{display:block;font-size:32px;letter-spacing:-2px;margin:10px 0}.stat small{color:#b5b8c0;font-size:11px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:26px 0 20px}.section-head h2{font-size:23px}.section-head p{color:#969aa8;font-size:12px;margin-top:5px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.steps>div{padding:23px;display:flex;flex-direction:column;gap:13px}.steps b{font-size:13px;color:#9879ee}.steps strong{font-size:14px}.steps span{font-size:12px;line-height:1.6;color:#9fa3af}.steps button{margin-top:auto;border:0;background:none;text-align:left;padding:4px 0;font-size:12px;color:var(--primary);font-weight:800}.editor-grid{display:grid;grid-template-columns:minmax(0,1.4fr) 355px;gap:30px;align-items:start}.editor-workspace{min-width:0}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px}.pill{font-size:11px;font-weight:800;color:#7855db;background:#f1ecfd;padding:10px 14px;border-radius:20px}.block-list{display:flex;flex-direction:column;gap:11px}.block-card{display:flex;align-items:center;gap:14px;background:white;border:1px solid #ebedf3;border-radius:14px;padding:15px;min-height:75px;box-shadow:var(--shadow)}.block-card.dragging{opacity:.45}.drag-icon{font-size:20px;color:#b8b9c4;cursor:grab;user-select:none}.block-thumb{height:45px;width:52px;border-radius:10px;background:#f3eef9;display:grid;place-items:center;font-size:21px;flex-shrink:0;color:#7756cb}.block-info{min-width:0;flex:1}.block-info strong{display:block;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.block-info small{display:block;font-size:11px;color:#a1a4b1;margin-top:4px}.block-actions{display:flex;align-items:center;gap:4px}.mini{border:0;background:#f6f7fa;color:#687184;border-radius:8px;width:30px;height:30px}.mini:hover{background:#ede7fb;color:#684bd6}.mini.danger{color:#d86976}.toggle{appearance:none;width:32px;height:19px;background:#c9cbd2;border-radius:20px;position:relative;cursor:pointer;flex-shrink:0}.toggle:before{content:'';position:absolute;width:13px;height:13px;background:white;border-radius:50%;top:3px;left:3px;transition:.2s}.toggle:checked{background:#7857e1}.toggle:checked:before{left:16px}.preview-shell{position:sticky;top:24px;text-align:center}.preview-label{display:flex;justify-content:space-between;font-size:10px;font-weight:800;color:#9297a6;letter-spacing:.1em;margin-bottom:15px}.live-dot{color:#36a77d}.device{width:315px;max-width:100%;margin:auto;border:8px solid #222332;background:white;border-radius:40px;box-shadow:0 22px 55px #15163322;overflow:hidden;height:590px;display:flex;flex-direction:column}.device-top{height:34px;display:flex;justify-content:space-between;padding:9px 19px;font-weight:800;font-size:10px}.device-content{flex:1;overflow:auto;text-align:left;padding:12px 15px}.device-content h3{font-size:15px}.preview-header{font-weight:800;font-size:17px;margin:6px 0 18px}.preview-block{margin-bottom:17px}.preview-hero{background:#735a48;color:white;padding:18px;border-radius:14px;min-height:105px;background-size:cover;background-position:center;position:relative;overflow:hidden}.preview-hero strong{display:block;font-size:19px;max-width:180px;position:relative}.preview-hero small{display:block;font-size:10px;max-width:180px;position:relative;margin-top:8px}.preview-hero:before{content:'';background:#18141b70;position:absolute;inset:0}.preview-category-row{display:flex;gap:6px;margin-top:10px;overflow:hidden}.preview-chip{border-radius:17px;background:#f1efea;padding:9px 13px;font-size:10px;white-space:nowrap}.preview-products{display:flex;gap:10px;overflow:hidden;margin-top:10px}.preview-product{min-width:115px;width:115px;overflow:hidden}.preview-product img{width:115px;height:90px;object-fit:cover;border-radius:10px}.preview-product strong{font-size:10px}.preview-product small{display:block;color:#7b7880}.device-nav{display:flex;border-top:1px solid #f1f1f1;justify-content:space-around;padding:12px 5px}.device-nav div{font-size:9px;color:#777}.device-nav div:first-child{color:#7d56dc;font-weight:800}.device-home{height:5px;width:87px;background:#2b2b2b;margin:0 auto 8px;border-radius:20px}.preview-shell>small{display:block;margin:13px auto;color:#a4a7af;font-size:10px;max-width:280px}.navhead{margin-top:40px}.group{display:flex;gap:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;color:#989ca9;font-weight:800;padding:18px;border-bottom:1px solid var(--line)}td{padding:15px 18px;font-size:12px;border-bottom:1px solid #f4f5f7}tbody tr:last-child td{border:0}.product-cell{display:flex;align-items:center;gap:12px;min-width:185px}.product-cell img{width:41px;height:41px;object-fit:cover;border-radius:10px;background:#f4f4f7}.tag{background:#f3f1fb;color:#775ad7;font-size:10px;border-radius:20px;padding:5px 9px;font-weight:800}.tag.off{background:#f2f3f5;color:#9da0ac}.settings-form{max-width:900px}.settings-card{padding:25px;margin-bottom:20px}.settings-card h3{font-size:17px;margin-bottom:22px}.fieldgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px 22px}.fieldgrid input[type=color]{height:47px;padding:5px;cursor:pointer}.toggles{display:flex;gap:15px;flex-wrap:wrap;font-size:12px}.hint{color:#b0a2a5;font-size:11px;margin-top:18px}.toast{position:fixed;right:25px;bottom:25px;background:#262239;color:white;padding:16px 22px;border-radius:13px;z-index:10;box-shadow:0 8px 25px #0003;font-size:12px}dialog{border:0;border-radius:22px;padding:0;max-width:520px;width:calc(100% - 30px);box-shadow:0 35px 100px #18132845}dialog::backdrop{background:#14102585;backdrop-filter:blur(3px)}dialog form{padding:28px}.modal-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:23px}.modal-title h2{margin-top:9px}.icon-btn{border:0;background:#f6f5fa;width:30px;height:30px;border-radius:9px;font-size:22px;color:#686578}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.modal-field textarea{min-height:70px;resize:vertical}.modal-field.checkbox{display:flex;flex-direction:row;align-items:center}.empty{background:white;border:1px dashed #d9dbe3;padding:35px;text-align:center;color:#9b9dab;border-radius:15px}.formerror{color:#b9424b}@media(max-width:1150px){.editor-grid{grid-template-columns:minmax(0,1fr)}.preview-shell{position:static}.stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:790px){.sidebar{width:68px;padding:24px 8px}.sidebar-brand>span,.sidebar-label,.side span,.side i,.sidebar-bottom{display:none}.sidebar-brand{padding:0;justify-content:center}.side{justify-content:center;padding:14px 6px}.main{padding:22px}.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap}.steps{grid-template-columns:1fr}.login-view{grid-template-columns:1fr}.login-art{display:none}}@media(max-width:570px){.stat-grid{grid-template-columns:1fr 1fr;gap:8px}.stat{padding:16px}.fieldgrid{grid-template-columns:1fr}.topbar{flex-direction:column}.section-head{align-items:flex-start;flex-direction:column}.welcome{padding:26px}.welcome-graphic{display:none}.block-card{gap:7px;padding:9px}.block-actions{gap:2px}.block-thumb{display:none}}

/* AppHub Studio V3 */
.editor-page-label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;color:#73717b}.editor-page-label select{padding:9px 13px;border:1px solid #dedbe7;border-radius:9px;background:white;min-width:175px}
.studio-icons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:280px;overflow:auto;padding:10px;border:1px solid #e8e5ee;border-radius:12px;background:#fafafe;margin-top:8px}.studio-icon{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:#fff;color:#676070;min-height:64px;border:1px solid #eae7f0;border-radius:10px;cursor:pointer;overflow:hidden}.studio-icon.selected{border-color:#7350d9;color:#6744df;background:#f0eafe}.studio-icon small{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.studio-icon svg{width:20px;height:20px}.studio-icon-search{display:block;width:100%;padding:12px;border:1px solid #e2deeb;border-radius:10px;margin-top:10px}.studio-icon[hidden]{display:none}.studio-help{color:#888492;font-size:12px;line-height:1.6;margin:8px 0 14px}.cat-icon-preview{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:35px;height:35px;background:#f2eef9;border-radius:10px;margin-right:8px;color:#6440cc}.cat-icon-preview svg{width:20px;height:20px}.studio-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.studio-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.studio-form-grid input,.studio-form-grid select,.studio-filter-row input:not([type=checkbox]){padding:10px;border:1px solid #e5e2eb;border-radius:9px;min-width:0;width:100%}.studio-filter-row{display:grid;grid-template-columns:130px 1fr 100px 36px 36px;gap:8px;align-items:center;border-bottom:1px solid #efedf3;padding:12px 0;font-size:12px}.studio-filter-row label{display:flex;align-items:center;gap:4px}.studio-option-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.studio-option-row{padding:14px;border:1px solid #e8e4ee;border-radius:12px;margin-bottom:12px;background:#fafafd}.studio-option-row label:has(input[type=checkbox]){flex-direction:row;align-items:center}.studio-extra{border-top:1px solid #e8e5ed;padding-top:15px;margin-top:18px}.studio-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px;font-size:12px}.studio-check-grid label{display:flex;gap:6px;align-items:center}.modal-field.checkbox{display:flex;flex-direction:row;align-items:center;gap:10px}#editDialog{width:min(680px,94vw);max-height:90vh;overflow:auto}#editDialog hr{border:none;border-top:1px solid #ece9f2;margin:18px 0}#editDialog h3{font-size:15px;margin:12px 0}@media(max-width:650px){.studio-form-grid,.studio-check-grid{grid-template-columns:1fr}.studio-icons{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-filter-row{grid-template-columns:1fr 1fr;gap:8px}.studio-filter-row strong{grid-column:1/-1}}

/* Studio V4 */
.studio-photo-preview{display:block;max-width:150px;max-height:100px;object-fit:contain;border:1px solid #e1e1e1;border-radius:12px;padding:5px;background:white;margin:8px 0 15px}
.v4-item{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #ece9e5;padding:12px 0;font-size:13px}
.v4-item small{display:block;color:#867c78;font-size:11px;margin-top:5px}.v4-total{font-weight:900;font-size:20px;margin:16px 0}.v4-order-detail{font-size:13px;line-height:1.7}.v4-badge{display:inline-block;border-radius:20px;font-weight:800;padding:5px 11px;font-size:11px}
.payment-pending{color:#89540b;background:#fff1d3}.payment-approved{color:#177543;background:#dff6e7}.payment-rejected{color:#9e2334;background:#ffe1e6}
.order-new{color:#355e9e;background:#e1eeff}.order-accepted{color:#6b4b92;background:#efe4ff}.order-preparing{color:#aa5900;background:#fff1dc}.order-ready{color:#006e7d;background:#dcf6f8}.order-completed{color:#236d3b;background:#e3f4e6}.order-cancelled{color:#a13839;background:#fce4e5}

.v4-emoji-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(45px,1fr));gap:5px;max-height:240px;overflow:auto;background:#fff;padding:8px;border-radius:12px;border:1px solid #eee}
.v4-emoji{font-size:27px;padding:6px;border:1px solid #e8e2db;border-radius:10px;background:white;cursor:pointer}.v4-emoji:hover,.v4-emoji.selected{border:2px solid #c1835c;background:#fff4e5}

/* V4.2: menú independiente e íconos correctamente representados */
.v42-nav-icon svg{width:23px;height:23px;stroke-width:2.1;display:block}
.v42-nav-owner{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:800;margin:13px 0;color:#494459;flex-wrap:wrap}
.v42-nav-owner select{background:#fff;border:1px solid #ded9ee;border-radius:10px;padding:9px 12px;color:#322b46;max-width:260px}
.v42-nav-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.v42-nav-actions .btn{font-size:11px;padding:10px 12px}
