:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#172338;background:#f3f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#174fa4;text-decoration:none}button,input,select,textarea{font:inherit}button{background:#1558c0;color:white;border:0;border-radius:10px;padding:12px 17px;font-weight:700;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.secondary{background:#e8effb;color:#17468c}.danger{background:#b42335}.small{padding:8px 11px;font-size:13px}.wrap{max-width:1160px;margin:auto;padding:0 18px}header{background:#102f6a;color:white;box-shadow:0 3px 15px #0a245129}.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.brand{font-weight:900;font-size:18px;color:inherit;letter-spacing:.4px}.brand span{color:#76b7ff}nav{display:flex;gap:15px;flex-wrap:wrap}nav a{color:#e9f2ff;font-weight:600;font-size:14px}.heading{padding:30px 0 18px}.heading h1{margin:5px 0;font-size:clamp(24px,4vw,34px)}.heading small{color:#68788c}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.stat,.card{background:white;border:1px solid #e3eaf4;border-radius:16px;box-shadow:0 8px 25px #193a690a}.stat{padding:22px}.stat small{display:block;color:#68788c}.stat strong{font-size:32px;display:block;margin-top:8px;color:#123d8b}.card{padding:24px;margin-bottom:20px}h2{font-size:21px;margin:0 0 10px}p{color:#66758b;line-height:1.5}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between;flex-wrap:wrap}.badge{color:#067647;background:#e7f8ee;padding:8px 12px;border-radius:100px;font-size:12px;font-weight:700}input,select,textarea{display:block;width:100%;border:1px solid #ccd6e4;border-radius:10px;padding:12px;margin-top:7px;background:white;color:#172338}label{display:block;margin:12px 0;font-weight:600;font-size:14px}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;max-height:550px;overflow:auto}.product{border:1px solid #e1e7f1;border-radius:12px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.product h3{font-size:15px;margin:4px 0}.product small,.cartline small{display:block;color:#7a8ba0}.right{text-align:right;min-width:105px}.stock{display:block;color:#067647;font-weight:700;font-size:12px;margin-bottom:10px}.stock.out{color:#b42335}.cartline{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e7edf6}.cartline b{font-size:14px}.cartline .row{flex-shrink:0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;min-width:660px}th,td{padding:12px;border-bottom:1px solid #e8edf5;font-size:14px}th{color:#62738b;background:#f6f8fc}.inline{display:inline-flex;align-items:center;gap:6px;margin:3px}.inline input{width:140px;margin:0}.inline .qty{width:95px}.notice{padding:14px 18px;background:#e5f8ef;color:#08744d;border-radius:10px;margin-bottom:18px}.error{padding:12px;background:#fee9eb;color:#a3172a;border-radius:10px}.muted{font-size:13px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(130deg,#102f6a,#1b69c8)}.auth .card{width:min(100%,420px);padding:35px}.auth .brand{color:#153a7b}.auth button{width:100%;margin-top:12px}footer{text-align:center;color:#8796aa;padding:28px}@media(max-width:700px){.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat{padding:12px}.stat strong{font-size:23px}.stat small{font-size:11px}.card{padding:16px}.catalog{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.nav{justify-content:center}nav{justify-content:center;gap:12px}.product{padding:12px}.cartline{align-items:flex-start}.cartline .row{gap:5px}}

/* Interfaz móvil optimizada */
[hidden]{display:none!important}html{scroll-behavior:smooth}body{overflow-x:hidden}button,a,input,textarea{touch-action:manipulation}button{min-height:44px}input,textarea,select{font-size:16px}.badge.offline{background:#fff0e7;color:#a33d10}.catalog-count{font-size:12px;color:#68788c;margin-top:9px}.product-info{min-width:0;overflow-wrap:anywhere}.cart-info{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){
.wrap{padding-left:12px;padding-right:12px}.nav{min-height:0;padding:12px 12px 10px;gap:10px;justify-content:space-between}.brand{font-size:15px}.nav nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;width:100%;justify-content:space-between;gap:6px;scrollbar-width:none}.nav nav a{white-space:nowrap;font-size:12px;padding:8px 5px}.heading{padding:17px 0 12px}.heading h1{font-size:24px}.stats{gap:6px;margin-bottom:12px}.stat{padding:11px 8px;border-radius:12px}.stat small{font-size:10px;line-height:1.25}.stat strong{font-size:22px}.card{padding:14px;border-radius:14px;margin-bottom:13px}.card h2{font-size:18px}.card p{font-size:13px}.catalog{grid-template-columns:1fr;max-height:none;overflow:visible;gap:8px;margin-top:12px}.product{padding:11px;gap:8px}.product h3{font-size:14px;line-height:1.25}.product .right{min-width:98px}.product .small{padding:9px 10px;min-height:40px}.stock{margin-bottom:5px}.cartline{display:flex;align-items:stretch;flex-direction:column;gap:7px}.cart-controls{justify-content:flex-end;gap:8px}.cart-controls button{min-width:44px}.cart-controls b{min-width:25px;text-align:center;align-self:center}.row.between{gap:8px}#confirm{width:100%;min-height:52px}#search{position:sticky;top:0;z-index:2;background:white;min-height:48px}footer{padding:16px 10px;font-size:12px}
}
@media(max-width:360px){.brand{font-size:13px}.stat strong{font-size:19px}.stat small{font-size:9px}}
