:root{
  --bg:#f7f5ef;--surface:#fff;--surface-2:#f0ede4;--ink:#223238;--muted:#6c797c;--line:#dedbd2;
  --primary:#557b73;--primary-dark:#31564f;--navy:#233a4d;--sage:#dfe9e2;--cream:#f4efe3;
  --success:#3f7657;--warning:#a97932;--danger:#9b5252;--shadow:0 12px 35px rgba(35,58,77,.08);
  --radius:18px;--radius-sm:12px;--max:1240px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}img{max-width:100%;display:block}.hidden{display:none!important}
.topbar{position:sticky;top:0;z-index:50;background:rgba(247,245,239,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar-inner{max-width:var(--max);margin:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:44px;height:44px;border-radius:14px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px;box-shadow:var(--shadow)}.brand-copy strong{display:block;font-size:13px;letter-spacing:.09em;text-transform:uppercase}.brand-copy span{display:block;font-size:20px;font-weight:800;line-height:1.05}.tagline{font-size:12px;color:var(--muted);margin-top:2px}.top-actions{display:flex;align-items:center;gap:8px}.lang-toggle{display:flex;background:var(--surface-2);padding:3px;border-radius:999px}.lang-toggle button{border:0;background:transparent;padding:7px 10px;border-radius:999px;color:var(--muted);font-weight:700}.lang-toggle button.active{background:var(--surface);color:var(--navy);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.container{max-width:var(--max);margin:0 auto;padding:24px 20px 90px}.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:center;min-height:74vh;padding:34px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--sage);color:var(--primary-dark);padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:clamp(44px,7vw,84px);line-height:.94;margin:18px 0 18px;letter-spacing:-.045em}.hero h1 span{color:var(--primary)}.hero p{font-size:clamp(17px,2vw,22px);color:var(--muted);max-width:680px}.hero-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}.box-visual{aspect-ratio:1.25;border-radius:24px;background:linear-gradient(145deg,var(--cream),#e8e2d4);display:grid;place-items:center;position:relative;overflow:hidden}.box-visual:before{content:"MiCaja";font-size:clamp(42px,7vw,72px);font-weight:900;color:var(--navy);transform:rotate(-4deg)}.box-visual:after{content:"18 × 18 × 28";position:absolute;bottom:22px;background:#fff;padding:8px 12px;border-radius:999px;font-weight:800;color:var(--primary-dark)}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:800;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn-primary{background:var(--primary-dark);color:#fff}.btn-primary:hover{background:#284941}.btn-secondary{background:var(--surface-2);color:var(--navy);border:1px solid var(--line)}.btn-danger{background:#f4e5e5;color:var(--danger)}.btn-success{background:#e3efe7;color:var(--success)}.btn-dark{background:var(--navy);color:#fff}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-sm{padding:8px 11px;min-height:36px;font-size:13px}.btn-block{width:100%}
.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 5px 18px rgba(35,58,77,.04)}.card h2,.card h3{margin-top:0}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:11px}.strong{font-weight:800}.money{font-variant-numeric:tabular-nums}.section-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:10px 0 18px}.section-title h1,.section-title h2{margin:0}.section-title p{margin:3px 0 0;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:750;font-size:13px;color:#425157}.field input,.field select,.field textarea{width:100%;border:1px solid #cfd3cf;background:#fff;border-radius:11px;padding:11px 12px;min-height:44px;color:var(--ink);outline:none}.field textarea{min-height:92px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(85,123,115,.14)}.help{font-size:12px;color:var(--muted)}.error-text{color:var(--danger);font-weight:700}.success-text{color:var(--success);font-weight:700}.notice{padding:12px 14px;border-radius:12px;background:var(--cream);border:1px solid var(--line);font-size:14px}.notice.success{background:#e8f2eb;color:#305d44}.notice.warning{background:#f5ecd9;color:#765322}.notice.error{background:#f5e7e7;color:#7d4242}
.auth-shell{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:32px 20px}.auth-card{width:min(560px,100%);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.tabs{display:flex;gap:6px;background:var(--surface-2);padding:5px;border-radius:13px;margin-bottom:20px}.tab-btn{flex:1;border:0;background:transparent;border-radius:9px;padding:10px;font-weight:800;color:var(--muted)}.tab-btn.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.app-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 69px)}.sidebar{border-right:1px solid var(--line);padding:20px 14px;background:#f5f2eb;position:sticky;top:69px;height:calc(100vh - 69px)}.nav-list{display:flex;flex-direction:column;gap:6px}.nav-btn{border:0;background:transparent;text-align:left;border-radius:11px;padding:11px 12px;color:#526065;font-weight:750}.nav-btn.active{background:var(--surface);color:var(--navy);box-shadow:0 2px 9px rgba(0,0,0,.05)}.app-main{min-width:0;padding:24px 24px 100px}.view{display:none}.view.active{display:block}
.metric{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.metric-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}.metric-value{font-size:30px;font-weight:900;color:var(--navy);margin-top:4px}.metric-sub{font-size:12px;color:var(--muted);margin-top:3px}
.progress-wrap{height:14px;border-radius:999px;background:#e5e3dc;overflow:hidden}.progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--primary-dark));border-radius:inherit;transition:width .35s ease}.box-summary{position:sticky;top:85px}.box-summary .big{font-size:38px;font-weight:900;line-height:1}.box-summary-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eeece5}.box-summary-row:last-child{border-bottom:0}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px}.filterbar{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:10px;margin-bottom:16px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.product-photo{aspect-ratio:4/5;background:var(--surface-2);overflow:hidden;position:relative}.product-photo img{width:100%;height:100%;object-fit:cover}.product-placeholder{height:100%;display:grid;place-items:center;color:#849094;font-weight:800}.product-body{padding:13px;display:flex;flex-direction:column;gap:7px;flex:1}.product-name{font-weight:850;line-height:1.2}.chips{display:flex;flex-wrap:wrap;gap:5px}.chip{font-size:11px;padding:5px 7px;border-radius:999px;background:var(--surface-2);color:#536166;font-weight:700}.chip.premium{background:#eee5c9;color:#6f5a22}.product-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:7px}.resale{font-size:12px;color:var(--muted)}
.list{display:flex;flex-direction:column;gap:10px}.list-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:13px;padding:11px}.list-thumb{width:58px;height:70px;border-radius:9px;background:var(--surface-2);object-fit:cover}.status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:850;text-transform:capitalize}.status.available,.status.verified,.status.delivered{background:#e3f0e6;color:#356448}.status.pending,.status.submitted,.status.reserved{background:#f6ecd8;color:#795824}.status.rejected,.status.cancelled{background:#f4e1e1;color:#824545}.status.shipped,.status.packing,.status.approved{background:#e2eaf1;color:#35536b}.status.draft{background:#eceae5;color:#5d6668}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:760px}.table th,.table td{padding:11px 12px;text-align:left;border-bottom:1px solid #ebe9e2;font-size:13px;vertical-align:middle}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#faf9f6;position:sticky;top:0}.table tr:last-child td{border-bottom:0}
.dropzone{border:2px dashed #b8c1bc;border-radius:16px;padding:20px;text-align:center;background:#faf9f6;transition:.2s}.dropzone.drag{border-color:var(--primary);background:var(--sage)}.preview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}.preview{aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:var(--surface-2);position:relative}.preview img{width:100%;height:100%;object-fit:cover}.preview span{position:absolute;bottom:4px;left:4px;background:rgba(0,0,0,.65);color:white;font-size:10px;padding:3px 5px;border-radius:5px}.analysis-box{background:#eef3ef;border:1px solid #d1ded5;border-radius:14px;padding:14px;margin-top:12px}.analysis-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.analysis-value{background:#fff;border-radius:10px;padding:10px}.analysis-value b{display:block;font-size:18px;color:var(--navy)}.analysis-value span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.modal-backdrop{position:fixed;inset:0;background:rgba(24,38,42,.45);z-index:100;display:grid;place-items:center;padding:20px}.modal{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:22px;box-shadow:0 25px 80px rgba(0,0,0,.2)}
.mobile-nav{display:none}.toast-stack{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{background:var(--navy);color:#fff;padding:11px 14px;border-radius:11px;box-shadow:var(--shadow);max-width:360px}.toast.error{background:#7d4242}.toast.success{background:#356448}
.hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.hero-point{background:rgba(255,255,255,.62);border:1px solid var(--line);border-radius:14px;padding:14px}.hero-point strong{display:block;color:var(--navy);margin-bottom:3px}.profit-positive{color:var(--success);font-weight:900}.profit-negative{color:var(--danger);font-weight:900}.empty{padding:34px;text-align:center;border:1px dashed var(--line);border-radius:16px;color:var(--muted)}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:minmax(0,1fr) 300px}.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.hero{grid-template-columns:1fr;min-height:auto}.hero-card{order:-1}.app-layout{display:block}.sidebar{display:none}.app-main{padding:18px 14px 90px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:60;background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:6px 5px max(6px,env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;font-size:10px;font-weight:800;color:var(--muted);padding:8px 2px}.mobile-nav button.active{color:var(--primary-dark)}.catalog-layout{display:block}.box-summary{position:static;margin-top:18px}.filterbar{grid-template-columns:1fr 1fr}.filterbar .search{grid-column:1/-1}.preview-grid{grid-template-columns:repeat(4,1fr)}.analysis-grid{grid-template-columns:repeat(2,1fr)}.topbar-inner{padding:10px 14px}.tagline{display:none}.brand-copy strong{font-size:10px}.brand-copy span{font-size:17px}.container{padding-left:14px;padding-right:14px}}
@media(max-width:560px){.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-body{padding:10px}.product-name{font-size:13px}.hero-points{grid-template-columns:1fr}.preview-grid{grid-template-columns:repeat(3,1fr)}.top-actions .btn{display:none}.hero h1{font-size:52px}.hero-card{padding:17px}.filterbar{grid-template-columns:1fr}.filterbar .search{grid-column:auto}.section-title{align-items:start;flex-direction:column}.auth-card{padding:20px}.table{min-width:650px}}
