@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{--navy:#101b31;--dark:#0b1424;--blue:#164da3;--accent:#f5ca1a;--bg:#f4f6f8;--line:#dce1e9;--muted:#637086;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--navy);font-family:'DM Sans',Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.hidden{display:none!important}.site-header{background:#0c1424;color:white;position:sticky;top:0;z-index:20;border-bottom:1px solid #2b3850}.header-inner{max-width:1240px;margin:auto;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{background:none;border:0;display:flex;align-items:center;gap:18px;color:#fff;padding:0}.brand img{width:133px;height:66px;object-fit:cover;object-position:center;border-radius:3px}.brand-sub{font-size:10px;letter-spacing:2px;font-weight:800;color:#b8c3d6}.header-actions{display:flex;align-items:center;gap:12px}.icon-link{color:var(--accent);font-weight:800;font-size:13px}.small-outline{color:#fff;border:1px solid #536078;background:transparent;padding:11px 15px;border-radius:7px;font-size:12px;font-weight:800}.small-outline:hover{border-color:var(--accent)}.hero{background:linear-gradient(120deg,#0c1629 40%,#183762 100%);color:white;min-height:434px;display:flex;position:relative;overflow:hidden;padding:66px max(24px,calc((100vw - 1196px)/2));gap:20px;align-items:center}.hero:after{content:'';position:absolute;right:0;top:0;width:48%;height:100%;background:repeating-linear-gradient(145deg,transparent 0 24px,#ffffff05 25px 26px)}.hero-copy{max-width:650px;position:relative;z-index:2}.eyebrow,.kicker{font-size:11px;font-weight:800;letter-spacing:2px}.eyebrow{color:var(--accent)}.eyebrow i{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-right:7px}.hero h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(55px,7.5vw,100px);font-weight:800;line-height:.92;text-transform:uppercase;letter-spacing:-1px;margin:23px 0}.hero h1 em{font-style:normal;color:var(--accent)}.hero p{max-width:490px;color:#c4d0e0;line-height:1.65;font-size:15px}.hero-actions,.contact-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:15px 20px;border:0;border-radius:7px;font-size:13px;font-weight:800;transition:transform .15s,background .15s}.btn:hover{transform:translateY(-2px)}.btn.accent{background:var(--accent);color:#0e192a}.btn.navy{background:#16396d;color:#fff}.btn.ghost{background:transparent;color:#fff;border:1px solid #6e7d97}.hero-meta{display:flex;flex-wrap:wrap;gap:22px;margin-top:31px;font-size:11px;font-weight:700;color:#9fb0c8}.hero-graphic{flex:1;min-width:200px;display:grid;place-items:center;position:relative;z-index:1}.wheel-ring{width:330px;height:330px;border:32px solid #ffffff12;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 2px #ffffff1b,0 0 0 65px #ffffff05, inset 0 0 0 2px #ffffff26;transform:rotate(-13deg)}.wheel-ring>span{font-family:'Barlow Condensed',sans-serif;font-size:145px;font-weight:900;font-style:italic;color:#ffffff14;letter-spacing:-10px}.wheel-ring>span>span{font-size:40px;letter-spacing:-3px}.angled-tag{position:absolute;bottom:-28px;color:#ffffff7b;letter-spacing:4px;font-size:10px;transform:rotate(-13deg)}.public-tabs{display:flex;gap:28px;padding:0 max(24px,calc((100vw - 1196px)/2));background:white;border-bottom:1px solid var(--line);overflow:auto}.tab{padding:21px 0;background:none;border:0;border-bottom:3px solid transparent;white-space:nowrap;color:#8190a6;font-weight:800;font-size:12px}.tab.active{border-bottom-color:var(--accent);color:var(--navy)}.content-wrap{max-width:1240px;margin:auto;padding:52px 22px 76px}.section-top{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:24px}.kicker{color:#1d64ad}.section-top h2,.contact-strip h2,.admin-heading h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(36px,5vw,58px);line-height:1;text-transform:uppercase;letter-spacing:-.4px;margin:8px 0}.heading-accent{color:#1853a0}.section-top p,.admin-heading p{color:var(--muted);font-size:14px}.demo-tag{border:1px solid #e7dca1;background:#fff9db;font-weight:800;font-size:9px;letter-spacing:1px;color:#81600a;padding:9px 12px;border-radius:4px;white-space:nowrap}.search-wrap{height:52px;background:white;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:12px;padding:0 16px}.search-wrap span{font-size:27px;color:var(--blue)}.search-wrap input{width:100%;border:0;outline:0;background:transparent;font-size:14px;color:var(--navy)}.filters{display:flex;gap:8px;overflow:auto;padding:18px 0 23px}.filters button{white-space:nowrap;border:1px solid var(--line);background:white;color:#4e5d72;border-radius:30px;padding:10px 15px;font-size:12px;font-weight:800}.filters button.active{background:var(--navy);color:#fff;border-color:var(--navy)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}.product:hover{box-shadow:0 12px 35px #0c1a3020;transform:translateY(-3px)}.product-art{height:165px;display:grid;place-items:center;background:radial-gradient(circle at center,#f0f4f9 0,#e6ebf2 73%);position:relative}.product-art .item-icon{font-size:70px;filter:drop-shadow(0 10px 7px #102a3a24)}.product-art .code{position:absolute;top:12px;left:12px;background:white;padding:5px 8px;border-radius:4px;font-size:10px;font-weight:800;color:#718099}.product-body{padding:19px;display:flex;flex-direction:column;flex:1}.product-category{font-size:10px;font-weight:800;color:#2461aa;text-transform:uppercase;letter-spacing:1px}.product h3{font-size:15px;line-height:1.4;margin:9px 0;min-height:62px}.model{font-size:11px;color:var(--muted);line-height:1.5;min-height:42px}.price-caption{font-size:10px;color:#788398;margin-top:12px}.price{font-size:25px;font-weight:800;letter-spacing:-1px;margin:2px 0 14px}.product .btn{width:100%;font-size:11px;padding:13px 5px;margin-top:auto}.footnote{font-size:11px;color:#758096;margin-top:23px;line-height:1.5}.repair-grid,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px}.panel-icon{font-size:12px;font-weight:900;color:#a5b3c9;border-bottom:3px solid var(--accent);display:inline-block;padding-bottom:5px}.panel h3{font-family:'Barlow Condensed',Impact,sans-serif;font-size:30px;text-transform:uppercase;margin:15px 0 5px}.panel p{font-size:13px;line-height:1.6;color:var(--muted);margin:7px 0 23px}.stack{display:grid;gap:13px}.stack label,.panel>label{display:grid;gap:6px;color:#3c4b61;font-size:12px;font-weight:800}.stack input,.stack select,.stack textarea,.panel>label input{border:1px solid var(--line);background:#fafbfd;border-radius:7px;padding:12px 13px;outline:0;width:100%;color:var(--navy)}.stack input:focus,.stack textarea:focus,.stack select:focus{border-color:#286ac3}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.contact-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#163766;color:white;padding:44px max(24px,calc((100vw - 1196px)/2))}.contact-strip h2{margin:7px 0}.contact-strip p{color:#c3d3e8;font-size:13px}.contact-strip .kicker{color:var(--accent)}.footer{padding:28px max(24px,calc((100vw - 1196px)/2));background:#0a1323;color:#fff;display:flex;justify-content:space-between;gap:15px;font-weight:900;font-size:13px}.footer small{color:#74849d;font-size:10px;margin-left:13px}.footer>span:last-child{color:#8492aa;font-size:11px;font-weight:500}.admin-shell{max-width:1240px;margin:auto;padding:43px 22px 85px}.admin-heading{display:flex;justify-content:space-between;align-items:center}.admin-heading .small-outline{background:var(--navy)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:22px 0}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.stat span{font-size:11px;color:#6f7c90;font-weight:700}.stat strong{font-family:'Barlow Condensed',sans-serif;font-size:39px;display:block}.admin-nav{display:flex;gap:10px;overflow:auto;margin-bottom:20px}.admin-nav button{border:1px solid var(--line);background:white;border-radius:7px;padding:15px;font-weight:800;font-size:12px;white-space:nowrap}.admin-nav button.active{background:#163766;color:white;border-color:#163766}.sale-products{margin-top:15px;max-height:450px;overflow:auto}.sale-item,.cart-line,.record{border-bottom:1px solid #ecf0f4;padding:13px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.sale-item strong,.cart-line strong{font-size:12px;display:block}.sale-item small,.cart-line small{color:var(--muted);font-size:11px}.add-btn,.qty-btn{border:0;border-radius:6px;background:#e9effa;color:#1d4d8d;padding:9px 12px;font-weight:900}.cart-title{display:flex;justify-content:space-between;align-items:center}.link-btn{border:0;background:none;color:#205fac;font-size:12px;font-weight:800}.cart-items{min-height:85px}.cart-line .qty-controls{display:flex;gap:8px;align-items:center}.qty-btn{padding:4px 10px}.total-row{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:20px 0;margin-top:15px}.total-row strong{font-size:29px}.full{width:100%}.recent-sales{margin-top:25px}.recent-sales h4{font-size:13px}.recent-line{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.record{align-items:flex-start;flex-wrap:wrap}.record-main{flex:1;min-width:195px}.record-main strong{font-size:14px}.record-main p{margin:5px 0;font-size:12px}.record-main small{font-size:11px;color:var(--muted)}.record-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.record-actions select{padding:9px;border:1px solid var(--line);border-radius:6px;font-size:12px;max-width:190px}.record-actions a{font-size:11px;font-weight:800;color:#185caa}.badge{display:inline-block;background:#e8eef5;color:#24518c;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:800;margin-top:7px}.modal-backdrop{position:fixed;inset:0;background:#051022b8;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}.modal{background:white;width:min(100%,450px);padding:27px;border-radius:14px;box-shadow:0 20px 70px #0006;max-height:96vh;overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.modal-head h3{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:30px;margin:0}.close-button{border:0;background:#eef1f5;border-radius:8px;font-size:25px;width:36px;height:36px}.modal>p{font-weight:700;font-size:13px}.modal small{color:var(--muted);line-height:1.5}.notice{padding:12px;margin-top:15px;border-radius:7px;background:#eaf4ff;font-size:13px;line-height:1.6}.error{color:#ad2732;font-weight:700;font-size:12px}.empty{padding:22px;color:var(--muted);font-size:13px;text-align:center}#toast{position:fixed;bottom:22px;right:22px;z-index:60;background:#0d1b32;color:white;padding:13px 18px;border-radius:8px;font-size:13px;box-shadow:0 12px 35px #0004;display:none;max-width:min(350px,90vw)}#toast.show{display:block}@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,1fr)}.hero-graphic{opacity:.5;position:absolute;right:45px}}@media(max-width:720px){.brand img{width:97px;height:51px}.brand-sub{display:none}.header-inner{padding:8px 15px}.small-outline{padding:10px}.hero{padding:50px 20px;min-height:430px}.hero h1{font-size:65px}.hero-graphic{right:-130px;opacity:.2}.hero-meta{gap:9px 15px}.public-tabs{padding:0 18px}.content-wrap{padding:38px 15px 55px}.section-top{align-items:start}.section-top h2{font-size:43px}.demo-tag{font-size:8px;max-width:100px;white-space:normal;text-align:center}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-art{height:115px}.product-art .item-icon{font-size:48px}.product-body{padding:12px}.product h3{font-size:12px;min-height:67px}.model{font-size:10px;min-height:57px}.price{font-size:20px}.product .btn{font-size:10px;padding:12px 4px}.repair-grid,.two-col{grid-template-columns:1fr}.panel{padding:19px}.contact-strip{padding:35px 20px;display:block}.footer{padding:24px 15px;display:block}.footer>span{display:block;margin-bottom:8px}.admin-shell{padding:32px 13px}.admin-heading h2{font-size:40px}.stats{gap:7px}.stat{padding:12px}.stat strong{font-size:28px}.stat span{font-size:10px}.admin-nav button{padding:12px 10px;font-size:11px}}@media(max-width:380px){.hero h1{font-size:54px}.form-row{grid-template-columns:1fr}.product-grid{gap:7px}.product-body{padding:10px}}

/* Productos v1.1 */
.products-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}.products-header h3{margin:0}.products-header p{margin:5px 0}.managed-item{gap:15px}.manage-thumb{width:64px;height:64px;flex:0 0 64px;background:#e9eff7;border-radius:9px;display:grid;place-items:center;font-size:27px;overflow:hidden}.manage-thumb img,.product-photo{width:100%;height:100%;object-fit:contain}.product-photo{padding:10px}.managed-item .record-actions button{font-size:12px}.stack label input[type=file]{padding:10px;background:white}@media(max-width:720px){.products-header .btn{width:100%}.manage-thumb{width:48px;height:48px;flex-basis:48px}.managed-item .record-actions{width:100%;justify-content:flex-end}}

/* v1.2: responsive and permissions */
.header-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.header-actions .icon-link{white-space:nowrap}
.footer{display:flex;flex-wrap:wrap;align-items:center;gap:18px;justify-content:space-between}.footer #adminEntry{margin-left:auto}
.admin-nav{display:flex;flex-wrap:wrap;gap:8px}.admin-nav button{white-space:normal;min-height:44px}
.permission-list{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:8px 0 16px}.permission-list label{display:inline-flex;align-items:center;gap:7px;font-size:14px;cursor:pointer}.permission-list input,.user-active input{width:17px;height:17px;accent-color:#2563eb}
.user-record{align-items:start}.user-active{display:flex;align-items:center;gap:6px;white-space:nowrap}.admin-username{font-size:13px;opacity:.65;margin-left:auto}
@media(max-width:760px){.header-inner{gap:10px}.header-actions{gap:6px}.header-actions .icon-link{font-size:12px;padding:8px}.brand{min-width:0}.brand img{max-width:135px;height:auto}.footer{padding:18px;gap:12px}.footer #adminEntry{margin-left:0}.admin-heading{flex-wrap:wrap}.admin-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.admin-nav button{font-size:12px;padding:12px 7px}.record-actions{flex-wrap:wrap}.user-record{flex-direction:column}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product{min-width:0}.product-body h3{overflow-wrap:anywhere}}
@media(max-width:420px){.brand-sub{display:none}.brand img{max-width:105px}.header-actions .icon-link{font-size:11px;padding:7px 4px}.product-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr!important}.admin-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@supports(padding:max(0px)){.footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}

/* v1.3: Presupuestos */
.quote-panel{max-width:1150px}.quote-panel .quote-results{max-height:235px;overflow:auto;border:1px solid #d9e0e9;border-radius:8px;margin-bottom:12px}.quote-result{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0f4;padding:12px;cursor:pointer;color:#192d4b}.quote-result:hover{background:#edf4ff}.quote-result small{color:#64748b}.quote-row{display:grid;grid-template-columns:minmax(170px,2fr) 75px minmax(115px,1fr) 95px 110px 36px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid #dee5ec}.quote-row label{font-size:11px}.quote-row input{width:100%;padding:8px;font-size:13px}.quote-row-name{min-width:0;overflow-wrap:anywhere}.quote-row-name small{display:block;color:#687588}.quote-line-total{text-align:right;font-weight:700;padding-bottom:9px}.quote-total{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin:20px 0;font-weight:700}.quote-total strong{font-size:25px}.quote-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:25px}.quote-panel #quoteEditor{padding:18px;background:#f5f8fc;border-radius:12px;margin-bottom:25px}.quote-panel .record-actions button{white-space:nowrap}@media(max-width:900px){.quote-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.quote-row-name{grid-column:1/-1}.quote-line-total{text-align:left}.quote-row button{justify-self:end}}@media(max-width:420px){.quote-row{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-row label{min-width:0}.quote-row-name{grid-column:1/-1}.quote-row button{justify-self:start}}

/* v1.4 - portada administrable */
.hero-graphic{isolation:isolate}.hero-custom-image{width:min(37vw,450px);height:320px;object-fit:cover;object-position:center;border-radius:16px;border:1px solid #ffffff35;box-shadow:0 24px 55px #0006;position:relative;z-index:2}.site-image-preview{width:min(100%,600px);min-height:150px;background:#edf1f7;border:1px dashed #bbc7d8;border-radius:12px;display:grid;place-items:center;overflow:hidden;color:#65738b;font-size:13px;text-align:center;padding:10px}.site-image-preview img{display:block;max-height:260px;width:100%;object-fit:contain}.site-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dark-outline{color:#172b47;border-color:#aebbd0}.quote-print-help{display:block;color:#5e6c7d;font-size:12px;padding:8px 0;align-self:center}@media(max-width:1050px){.hero-custom-image{width:360px;height:290px}}@media(max-width:720px){.hero-graphic:has(.hero-custom-image:not(.hidden)){position:relative;right:auto;opacity:1;width:100%;display:flex;justify-content:center;pointer-events:none}.hero:has(.hero-custom-image:not(.hidden)){flex-direction:column;align-items:stretch}.hero-custom-image{width:100%;max-width:400px;height:220px}.site-actions .btn{width:auto}}

.quote-fiscal{border:1px solid #d8dfe8;border-radius:9px;padding:12px 14px}.quote-fiscal summary{cursor:pointer;font-weight:700;color:#233f68;margin-bottom:12px}.quote-fiscal .form-row{margin-top:10px}

/* v1.6: artículos ocasionales, internos a cada presupuesto */
.quote-manual{border:1px solid #cbd8e7;border-radius:11px;background:#fff;padding:15px;margin:12px 0 18px}
.quote-manual summary{font-size:14px;font-weight:700;color:#143c6d;cursor:pointer}
.quote-manual[open] summary{margin-bottom:8px}
.quote-manual-help{font-size:12px;color:#59687a;line-height:1.5;margin:0 0 12px}
.quote-manual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.quote-manual label{min-width:0}
.quote-manual-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.quote-manual-actions .error{font-size:12px}
.quote-manual-tag{font-size:11px;color:#68500c;background:#fff1c9;padding:2px 6px;border-radius:5px;white-space:nowrap;display:inline-block;margin-top:3px}
@media(max-width:620px){.quote-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-manual-actions .btn{width:100%}}

/* v1.7: contraste de botones internos y opción de catálogo manual */
#adminView .small-outline{color:#153251;background:#fff;border:1px solid #8296b0;opacity:1;min-height:40px}
#adminView .small-outline:hover{background:#edf4ff;border-color:#235fa9;color:#11345d}
#adminView .small-outline:focus-visible,#adminView .add-btn:focus-visible{outline:3px solid #f5ca1a;outline-offset:2px}
#adminView .admin-heading .small-outline{background:#102746;color:#fff;border-color:#36587e}
#adminView button:disabled{opacity:.58;cursor:not-allowed}
#adminView .quote-actions .small-outline{background:#fff;color:#112e51;border:1px solid #7c90a8}
#adminView .record-actions .add-btn{color:#153d74;background:#e2ecfa;border:1px solid #b0c9ea;min-height:40px}
.quote-manual-save{margin:14px 0;display:grid;gap:9px;border:1px solid #d6e0ef;background:#f5f8fd;padding:12px;border-radius:9px}
.quote-manual-save .quote-checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:9px;line-height:1.5;color:#183758;font-weight:700}
.quote-manual-save .quote-checkbox input{width:18px;height:18px;flex:0 0 18px;margin:1px 0;accent-color:#174d94}
.quote-manual-save small{color:#52667f;font-size:12px;line-height:1.45}
.quote-manual-save select{max-width:350px}
@media(max-width:700px){#adminView .quote-actions>*{max-width:100%}.quote-manual-save{padding:10px}}
/* Módulo ARCA: legible en PC y celular */
.arca-panel{margin-top:1.5rem}.arca-panel .record{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.arca-panel select,.arca-panel input{max-width:100%}.arca-panel #arcaMessage{padding:.75rem 0;color:#0d2854;font-weight:600}.arca-panel #arcaStatus{font-size:.9rem;background:#eef2f8;padding:.75rem;border-radius:.5rem;color:#172a46}
