:root{--brand:#7454a3;--brand-dark:#5e3d8d;--brand-soft:#eee8f6;--peach:#f4e1d2;--bg:#f7f6fa;--surface:#fff;--text:#292333;--muted:#7b7386;--border:#e9e5ef;--shadow:0 8px 28px #39224f05;color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}
:root[data-theme=dark]{--brand:#bea1e6;--brand-dark:#d0b8f0;--brand-soft:#352a44;--bg:#1b1721;--surface:#241e2d;--text:#f4eefb;--muted:#b7acbf;--border:#3a3045;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:var(--brand);text-decoration:none}button,a{touch-action:manipulation}button{cursor:pointer}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;font-weight:700;margin-bottom:12px}h2{font-size:20px;line-height:1.3;letter-spacing:-.5px}h3{font-size:17px;line-height:1.3}.muted,.help{color:var(--muted)}.help{font-size:13px;line-height:1.6;margin:12px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--brand);font-weight:800;margin-bottom:14px}.mt{margin-top:24px}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.brand{display:flex;align-items:center;gap:11px;color:var(--text);font-size:27px;font-weight:750;letter-spacing:-1px;line-height:1}.brand small{display:block;letter-spacing:2px;font-size:8px;color:var(--muted);font-weight:650;margin-top:7px}.brand-mark{width:43px;height:46px;background:var(--brand);border-radius:15px 15px 15px 4px;display:grid;place-items:center;color:white}.brand-mark svg{width:26px;height:26px}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#eee5f5;padding:52px 68px;display:flex;flex-direction:column;justify-content:space-between;color:#3b2c4d;position:sticky;top:0;height:100vh;overflow:hidden}.auth-story:after{content:"";width:330px;height:330px;border:1px solid #d7c6e5;border-radius:50%;position:absolute;right:-140px;bottom:-170px;pointer-events:none}.auth-story h1{font-size:clamp(32px,3.4vw,52px);line-height:1.17;letter-spacing:-2px}.auth-story>div>p:not(.eyebrow){max-width:360px;color:#806b90;font-size:17px}.auth-story .brand{color:#3b2c4d}.auth-story .brand small{color:#806b90}.auth-story>small{color:#806b90}.story-card{display:flex;gap:15px;align-items:center;background:#ffffff75;border:1px solid #ffffffa0;padding:20px;border-radius:18px;margin-top:35px;max-width:360px}.story-card>svg{color:#7454a3}.story-card strong,.story-card span{display:block}.story-card strong{font-size:14px}.story-card span{font-size:12px;color:#806b90}.auth-main{display:flex;align-items:center;justify-content:center;padding:60px 45px}.auth-card{width:100%;max-width:490px}.auth-card>.muted{margin-bottom:30px}.mobile-brand{display:none}.auth-card form{margin-top:25px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;margin-bottom:19px}input,select,textarea{width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:12px 14px;border-radius:10px;min-height:47px;outline:none;font-size:15px;transition:border-color .2s}input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}input::placeholder,textarea::placeholder{color:#a49aaa;font-size:13px}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{min-width:0}.btn{border:0;border-radius:11px;padding:13px 20px;background:var(--brand);color:#fff;font-size:14px;line-height:1.5;font-weight:650;display:inline-flex;gap:18px;align-items:center;justify-content:center;min-height:48px;box-shadow:0 4px 12px #7454a320}.btn:hover{background:var(--brand-dark)}.btn:disabled{opacity:.6;cursor:wait}.btn.full{width:100%}.btn svg{width:18px}.subtle{background:transparent;border:0;color:var(--muted);font-size:12px;padding:8px;min-height:40px}.subtle:hover{color:var(--brand)}fieldset{border:0;border-top:1px solid var(--border);padding:22px 0 6px;margin:25px 0 0}legend{font-size:15px;font-weight:700;padding:0 10px 0 0}label.check{display:flex;flex-direction:row;align-items:center;font-weight:400;font-size:12px}label.check input{width:18px;height:18px;min-height:18px;accent-color:var(--brand)}.notice{padding:14px 16px;border-radius:10px;font-size:13px;background:var(--brand-soft);margin:14px 0 20px;line-height:1.6}.notice.error{background:#fce9e8;color:#912a27}.notice.success{background:#e7f3ec;color:#246441}.steps{list-style:none;padding:0;display:flex;gap:16px;font-size:11px;color:var(--muted);margin:25px 0}.steps .active{color:var(--brand);font-weight:700}.checks{background:var(--surface);padding:16px;border:1px solid var(--border);border-radius:13px;font-size:11px}.checks>div{display:flex;gap:9px;margin:4px 0}.checks strong{margin-left:auto}.checks span{color:var(--brand)}
.app-shell{display:flex;min-height:100vh}.sidebar{width:240px;position:fixed;top:0;bottom:0;background:var(--surface);border-right:1px solid var(--border);padding:33px 22px 20px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{padding:0 7px}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#aaa0b5;margin:52px 13px 15px}.sidebar nav a{display:flex;gap:13px;align-items:center;padding:13px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:550;margin-bottom:5px}.sidebar nav a.selected{background:var(--brand-soft);color:var(--brand);font-weight:700}.sidebar nav a:hover{background:var(--brand-soft)}.sidebar nav svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding-top:15px}.sidebar-bottom>.subtle{padding-left:10px}.user{display:flex;gap:10px;align-items:center;padding:15px 9px 0}.user strong,.user small{display:block}.user strong{font-size:13px}.user small{font-size:10px;color:var(--muted)}.avatar{display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);width:36px;height:36px;border-radius:50%;font-weight:700}.avatar.large{width:50px;height:50px;font-size:21px}.workspace{margin-left:240px;flex:1;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 43px;background:var(--surface)}.topbar>span{font-size:12px;color:var(--muted)}.content{max-width:1260px;margin:auto;padding:38px 43px 45px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:20px}.page-heading h1{font-size:29px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p:last-child{margin-bottom:0;font-size:13px}.wave{color:#dba780;font-size:25px}.pill{font-size:10px;font-weight:650;padding:7px 12px;border:1px solid var(--border);border-radius:30px;white-space:nowrap;background:var(--surface);color:var(--brand)}.pill.light{background:#ffffff55;border:0;color:#82604b;font-size:8px;letter-spacing:1px}
.welcome{background:#f5e5d9;border-radius:22px;padding:36px 40px;min-height:285px;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;position:relative;color:#4a3632;gap:15px}.welcome h2{font-size:35px;letter-spacing:-1.2px;line-height:1.17;margin:18px 0 14px}.welcome p{font-size:12px;color:#8c7368;max-width:350px;line-height:1.7;margin-bottom:23px}.welcome .btn{background:#7454a3;font-size:12px;min-height:43px;padding:10px 17px}.welcome-art{position:relative;display:grid;place-items:center;min-width:210px}.art-circle{position:absolute;width:230px;height:230px;border-radius:50%;background:#ecd3bf;right:4px}.art-bag{position:relative;z-index:1;width:145px;height:165px;background:#fff9f4;border-radius:9px 9px 18px 18px;box-shadow:15px 18px 30px #ba927030;transform:rotate(-8deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#7454a3;margin-top:20px}.art-bag:before{content:"";position:absolute;top:-32px;left:43px;width:53px;height:48px;border:7px solid #fff9f4;border-bottom:0;border-radius:50% 50% 0 0}.art-bag>svg{width:22px}.art-bag>span{font-weight:750;font-size:22px;letter-spacing:-1px;line-height:1.07;text-align:center}.art-star{position:absolute;color:#a7785a}.star-one{font-size:35px;left:24px;top:16px;transform:rotate(15deg)}.star-two{font-size:25px;right:-6px;bottom:25px}.art-note{position:absolute;font-size:11px;right:-6px;bottom:2px;transform:rotate(-5deg);font-style:italic;color:#a77b61}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:30px 0 15px}.section-heading h2{font-size:16px;margin:0}.section-heading>.muted{font-size:11px}.cards-three{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.cards-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:var(--shadow)}a.card{color:var(--text)}a.card:hover{border-color:#cbbbdc}.feature-icon{display:grid;place-items:center;border-radius:12px;width:40px;height:40px;background:var(--brand-soft);color:var(--brand);margin-bottom:18px}.feature-icon svg{width:21px}.feature h3{font-size:14px;margin-bottom:8px}.feature p{font-size:12px;color:var(--muted);min-height:40px;margin-bottom:14px}.text-link{display:inline-flex;gap:10px;align-items:center;color:var(--brand);font-size:11px;font-weight:700}.text-link svg{width:15px;height:15px}.roadmap{margin-top:25px}.roadmap>.section-heading{margin:0 0 20px}.roadmap .eyebrow{font-size:9px;margin-bottom:7px}.phase{display:flex;gap:18px;align-items:center;padding:17px 0;border-top:1px solid var(--border)}.phase-number{border:1px solid var(--border);border-radius:11px;display:grid;place-items:center;flex-shrink:0;width:37px;height:37px;font-size:12px;color:var(--muted)}.phase-number.done{color:var(--brand);background:var(--brand-soft);border-color:var(--brand-soft)}.phase strong{font-size:12px}.phase p{font-size:11px;color:var(--muted);margin:2px 0 0}.phase-state{font-size:9px;color:var(--muted);margin-left:auto;white-space:nowrap}.footer{text-align:center;font-size:10px;color:var(--muted);padding:5px 25px 25px}.form-card{max-width:740px}.details{display:grid;grid-template-columns:180px 1fr;font-size:13px;gap:13px}.details dt{color:var(--muted)}.details dd{margin:0;overflow-wrap:anywhere}.member{display:flex;gap:15px;align-items:center;margin-bottom:15px}.member h2{margin:0;font-size:17px}.member p{margin:3px 0 0;font-size:12px;overflow-wrap:anywhere}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:12px}th{color:var(--muted);font-weight:500;font-size:11px}td,th{padding:15px 12px;border-bottom:1px solid var(--border)}.bottom-nav{display:none}.connection{padding:12px 18px;background:#fff0cd;color:#72510b;font-size:12px;border-radius:10px;margin-bottom:18px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:18px;padding:30px;max-width:430px;width:calc(100% - 30px)}dialog::backdrop{background:#20152d66}dialog p{font-size:14px;color:var(--muted)}.offline{min-height:100vh;display:grid;place-items:center;padding:25px}.offline>.card{max-width:440px}.offline h1{font-size:27px}.offline p{color:var(--muted);font-size:14px}
@media(min-width:1500px){.welcome{min-height:320px}.welcome-art{max-width:360px;width:100%;justify-self:center}.welcome h2{font-size:40px}}
@media(max-width:1100px){.content{padding:30px}.topbar{padding:0 30px}.sidebar{width:210px;padding-left:16px;padding-right:16px}.workspace{margin-left:210px}.welcome{padding:30px}.welcome h2{font-size:31px}.cards-three{gap:12px}.feature{padding:19px}.auth-story{padding:40px}.auth-main{padding:45px 30px}}
@media(max-width:800px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:62px;padding:0 23px}.content{padding:27px 23px 40px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--border);padding:9px 0 calc(9px + env(safe-area-inset-bottom));z-index:20}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:9px;min-width:64px;min-height:43px;justify-content:center}.bottom-nav svg{width:21px;height:21px}.footer{padding-bottom:100px}.auth-layout{grid-template-columns:1fr}.auth-story{display:none}.auth-main{padding:40px 24px;min-height:100vh}.mobile-brand{display:flex;margin-bottom:45px}.auth-card h1{font-size:28px}}
@media(max-width:520px){.welcome{grid-template-columns:1fr;min-height:0;padding:26px}.welcome-art{display:none}.welcome h2{font-size:32px}.welcome p{max-width:290px}.cards-three{grid-template-columns:1fr}.feature{display:grid;grid-template-columns:42px 1fr;gap:0 16px;padding:20px}.feature-icon{grid-row:1/4;margin:0}.feature h3{margin:0 0 7px}.feature p{min-height:0;margin:0 0 9px}.feature .text-link{grid-column:2}.page-heading h1{font-size:27px}.page-heading>.pill{font-size:8px;padding:6px 9px}.page-heading{gap:9px}.page-heading .eyebrow{font-size:8px}.cards-two{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;gap:0}.phase{gap:12px;align-items:flex-start}.phase-state{font-size:8px;padding-top:8px}.phase p{font-size:10px}.phase strong{font-size:11px}.phase-number{width:31px;height:34px;font-size:10px}.roadmap{padding:21px}.details{grid-template-columns:1fr;gap:4px}.details dd{margin-bottom:12px}.auth-card h1{font-size:26px}.auth-main{padding:33px 22px}.checks{font-size:10px}.table-wrap{margin:0 -8px}}
.topbar-actions{display:flex;align-items:center;gap:3px}.topbar-actions form{margin:0}.topbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}@media(max-width:520px){.topbar{padding:0 18px}.topbar>span{max-width:42%;font-size:11px}.topbar-actions .subtle{font-size:11px;padding:7px}.auth-card .connection{margin-top:15px}}:root[data-theme=dark] .btn{color:#24182f}
/* Fase 2: clientes, catálogo, ventas y entregas */
.searchbar{display:grid;grid-template-columns:minmax(160px,1fr) minmax(140px,220px) auto;gap:15px;align-items:end;margin-bottom:23px}.searchbar label{margin:0}.searchbar .btn{min-height:47px}.search-wide{grid-template-columns:1.4fr 1fr 1fr 1.2fr auto}.action-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.action-row form{margin:0}.empty{padding:42px 28px;text-align:center}.empty p{color:var(--muted);font-size:13px;margin-bottom:0}.line-grid{display:grid;grid-template-columns:100px 1fr 1fr;gap:15px}.sale-line,.variant-row{margin-top:10px;padding-top:20px}.sale-line select{max-width:100%}.sale-estimate{font-weight:700;color:var(--brand);font-size:16px;margin:25px 0}.sale-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sale-summary .card{display:flex;flex-direction:column;gap:10px}.sale-summary small{color:var(--muted);font-size:12px}.sale-summary strong{font-size:26px;letter-spacing:-1px}.sale-summary span,.sale-summary a{font-size:12px;color:var(--muted)}.dashboard-stats{grid-template-columns:1.4fr 1fr 1fr}.dashboard-stats strong{font-size:23px}.delivery-entry{padding:18px 0;border-top:1px solid var(--border);font-size:13px}.delivery-entry strong{font-size:12px}.delivery-entry ul{margin:8px 0}.delivery-entry p{font-size:12px;color:var(--muted)}details summary{cursor:pointer;font-weight:650;font-size:14px}details form{margin-top:22px}.topbar-actions a{white-space:nowrap}.sidebar-bottom{flex-shrink:0}.sidebar nav{overflow-y:auto}.nav-label{margin-top:30px}.content>.card .section-heading{margin-top:0}
@media(max-width:1100px){.search-wide{grid-template-columns:1fr 1fr}.search-wide>.btn{justify-self:start}.dashboard-stats{grid-template-columns:1fr 1fr}.dashboard-stats>.card:first-child{grid-column:1/-1}}
@media(max-width:650px){.searchbar{grid-template-columns:1fr 1fr}.searchbar>label:first-of-type{grid-column:1/-1}.searchbar>.btn{justify-self:start}.line-grid{grid-template-columns:1fr 1fr}.line-grid>label:first-child{grid-column:1/-1;max-width:120px}.page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading>.btn{min-height:43px;font-size:12px}.sale-summary{gap:13px}.sale-summary .card{padding:18px}.sale-summary strong{font-size:21px}.sale-summary span{font-size:10px}.topbar-actions .subtle{font-size:10px;padding:5px}.topbar>span{max-width:32%}.bottom-nav a{min-width:50px}.bottom-nav span{font-size:8px}.card{max-width:100%}.action-row .btn{font-size:12px}}
