:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#20222b;background:#f4f5f8;line-height:1.5}*{box-sizing:border-box}body{margin:0}a{color:#c92433;text-decoration:none}.topbar{background:#14161d;color:white;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:12px max(18px,calc((100% - 1160px)/2));gap:18px;box-shadow:0 2px 18px #0002}.brand{display:flex;align-items:center;gap:12px;color:white;min-width:0}.brand img{object-fit:contain;width:145px;max-height:50px}.brand span{border-left:1px solid #555;padding-left:12px;display:flex;flex-direction:column;line-height:1.12}.brand b{font-size:14px;letter-spacing:3px}.brand small{font-size:9px;color:#ddd;letter-spacing:1px}.topbar nav{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.topbar nav a{font-size:13px;color:#e5e5eb}.topbar nav a:hover{color:#ff5a68}.container{max-width:1120px;margin:0 auto;padding:28px 18px 70px;min-height:calc(100vh - 150px)}.narrow{max-width:800px;margin:auto}.hero{border-radius:20px;color:white;background:linear-gradient(110deg,#14151c 15%,#5b1822 100%);padding:38px;display:flex;align-items:center;justify-content:space-between;gap:24px}.hero h1{font-size:clamp(28px,4vw,43px);line-height:1.1;margin:9px 0}.hero p{color:#e4e0e2;max-width:640px}.hero img{width:145px;height:145px;object-fit:contain;opacity:.95}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:800;color:#f76d7c}.card{background:white;border:1px solid #e6e7eb;border-radius:16px;padding:24px;margin-top:18px;box-shadow:0 2px 9px #1b1d2910}.card h2,.card h3{margin:0 0 14px}.card h2{font-size:20px}.card h3{font-size:17px}.hint,.muted{color:#737684;font-size:13px}.small{font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stack{display:grid;gap:14px}.field{display:grid;gap:6px}.field label,.label{font-weight:650;font-size:13px;color:#343640}input,select,textarea{font:inherit;font-size:14px;border-radius:9px;border:1px solid #d6d8e0;background:white;padding:11px 12px;width:100%;color:#23242a;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #e4a0a5;border-color:#d33540}textarea{resize:vertical;min-height:82px}input[type=checkbox]{width:17px;height:17px;accent-color:#d42d3a}input[type=radio]{width:18px;height:18px;accent-color:#d42d3a}.checkrow{display:flex;gap:10px;align-items:center;cursor:pointer;padding:10px 12px;background:#f8f8fa;border:1px solid #ebedf1;border-radius:10px}.service-choice{background:#fff;border:1px solid #dde0e8;border-radius:12px;display:flex;gap:10px;align-items:center;padding:15px;font-weight:700;cursor:pointer}.service-choice:has(input:checked){border-color:#d02c3a;background:#fff7f8}.btn{background:#c62637;color:white;border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;cursor:pointer;font-size:14px;font-weight:700;text-align:center}.btn:hover{background:#a91e2d;color:white}.btn.secondary{background:#212532;color:white}.btn.light{background:#f1f2f5;color:#222}.btn.outline{background:white;border:1px solid #d8dbe2;color:#353842}.btn.small{font-size:12px;padding:8px 11px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:white;border:1px solid #e5e6eb;border-radius:13px;padding:18px}.stat strong{display:block;font-size:30px;color:#bf2b3a}.stat span{color:#6a6d77;font-size:12px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:10px;border-bottom:1px solid #ebedf1;text-align:left;vertical-align:middle}th{background:#fafafb;color:#555966;font-size:12px}td a{font-weight:700}.tablewrap{overflow-x:auto}.pill{border-radius:40px;display:inline-flex;padding:4px 9px;background:#edf0f6;font-size:11px;font-weight:700;color:#4a5666}.pill.nueva,.pill.borrador{background:#fff0d9;color:#95610e}.pill.confirmada,.pill.aceptada{background:#e2f7ea;color:#17683e}.pill.rechazada,.pill.cancelada{background:#fae5e9;color:#a1243b}.pill.cotizada,.pill.enviada{background:#e8efff;color:#2455a3}.alert{padding:12px 16px;border:1px solid #bcdac5;border-radius:10px;background:#edf9f0;margin-bottom:18px}.alert.err{background:#fff0f0;border-color:#f0aaaa}.note{padding:16px;border-radius:12px;background:#f5f6f9;color:#555965;font-size:13px}.footer{text-align:center;color:#848793;font-size:12px;padding:23px;border-top:1px solid #e5e5e9}.subtotal{text-align:right;font-weight:800;font-size:25px}.flex{display:flex;align-items:center;justify-content:space-between;gap:12px}.divider{border:0;border-top:1px solid #e9eaf0;margin:17px 0}.quote-head{display:flex;justify-content:space-between;gap:20px}.quote-head img{max-width:240px;max-height:90px;object-fit:contain;background:#191a20;padding:12px;border-radius:8px}.print-only{display:none}.danger{color:#bf2535}.item-editor{display:grid;grid-template-columns:2fr 110px 125px 145px 65px;align-items:end;gap:8px;border-bottom:1px solid #eee;padding:12px 0}.item-editor .field{min-width:0}.item-editor input,.item-editor select{font-size:12px}.success-icon{font-size:45px;color:#23865c}.top-space{margin-top:18px}@media(max-width:800px){.topbar{padding:12px 17px;align-items:flex-start;flex-direction:column}.topbar nav{gap:12px}.hero{padding:22px}.hero img{width:85px;height:90px}.stats{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:1fr 1fr}.item-editor{grid-template-columns:1fr 1fr}.item-editor .description{grid-column:span 2}}@media(max-width:540px){.grid,.grid3{grid-template-columns:1fr}.card{padding:16px}.container{padding:15px 12px 50px}.hero img{display:none}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:23px}.brand img{width:118px}.quote-head{flex-direction:column}.item-editor{grid-template-columns:1fr 1fr}}@media print{body{background:white;color:black}.topbar,.footer,.no-print,.btn,.alert{display:none!important}.container{max-width:none;padding:0}.card{margin:0;padding:12px 0;border:0;box-shadow:none}.print-only{display:block}a{color:black}table{page-break-inside:auto}tr{page-break-inside:avoid}h1,h2,h3{page-break-after:avoid}.quote-head img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
