@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#061b3a;--yellow:#ffb800;--ink:#132943;--muted:#697887;--line:#e5e9ed;--bg:#f5f6f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',Arial,sans-serif}h1,h2,h3,strong{font-family:Manrope,Arial,sans-serif}h1{font-size:34px;letter-spacing:-1.3px;margin:6px 0 10px;line-height:1.2}h2{font-size:21px;letter-spacing:-.6px;margin:0}p{line-height:1.6}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #dd9900;outline-offset:4px}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:var(--navy);color:white;padding:35px 24px;display:flex;flex-direction:column}.brand img{width:185px;height:60px;object-fit:contain}.workspace{font-size:9px;letter-spacing:2px;color:#7e91ac;margin:42px 12px 15px}nav{display:grid;gap:8px}nav a{padding:14px;border-radius:9px;color:#a9b8cb;display:flex;gap:14px;font-size:17px}nav a span{font-size:14px}nav a.active{background:#19304d;color:white;border-left:3px solid var(--yellow);padding-left:11px}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:11px;font-size:12px}.sidebar-bottom small{display:block;color:#8f9eb2;font-size:10px;margin-top:6px}.avatar{padding:12px;background:#223b58;border-radius:50%;color:var(--yellow);font-weight:bold}.main{margin-left:235px;padding:0 42px 48px;max-width:1800px}.topbar{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:12px}.topbar b{font-weight:500;color:var(--ink)}.demo-badge{font-size:9px;letter-spacing:1px;background:#fff4d5;padding:8px 10px;border-radius:5px;color:#806005}.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:38px 0 28px}.heading p{margin:0;color:var(--muted)}.eyebrow{font-size:10px!important;font-weight:800;letter-spacing:1.7px;color:#817048!important;margin:0 0 12px}.primary,.secondary{border:0;border-radius:8px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;white-space:nowrap;min-height:44px}.primary{background:var(--yellow);color:var(--navy)}.primary:hover{background:#ffc62f}.secondary{background:white;border:1px solid #d9e0e6;color:var(--ink)}.secondary:hover{background:#f7f8fa}.actions{display:flex;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:26px}.stats article{background:white;border:1px solid var(--line);border-radius:12px;padding:25px}.stats article>span{color:var(--muted);font-size:12px}.stats strong{display:block;font-size:35px;letter-spacing:-1px;margin-top:12px}.stats small{font:12px 'DM Sans',sans-serif;letter-spacing:0;color:var(--muted);margin-left:6px}.currency{font-size:23px}.stats p{font-size:11px;color:var(--muted);margin:8px 0 0}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.panel-title a{font-size:11px;color:var(--muted)}.proposal-list>button,.proposal-row{display:flex;align-items:center;gap:14px;padding:22px 0;width:100%;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:var(--ink)}.proposal-list>button:hover{background:#fafafa}.client-icon{flex-shrink:0;width:42px;height:42px;border-radius:10px;background:#edf3ef;display:grid;place-items:center;font-size:12px;font-weight:700;color:#3f6b54}.lavender{background:#efecfa;color:#6d55a1}.peach{background:#fff0e5;color:#ae6d42}.proposal-list b{font-size:12px}.proposal-list small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.proposal-value{margin-left:auto;text-align:right;flex-shrink:0}.status{background:#f3f1ec;color:#7a6d4d!important;border-radius:4px;padding:4px 7px;display:inline-block!important}.status.sent{background:#ebf1fc;color:#4774ae!important}.muted{font-size:12px;color:var(--muted);line-height:1.65}.panel-foot{margin-bottom:0;font-size:10px}.followups{background:#fffdf8}.followups h2{line-height:1.45;margin:0 0 20px}.followup{display:flex;gap:13px;padding:19px 0;border-top:1px solid #ece7dd}.dot{width:7px;height:7px;background:var(--yellow);border-radius:50%;margin-top:5px;flex-shrink:0}.followup b{font-size:12px}.followup p{font-size:11px;color:var(--muted);margin:7px 0}.followup small{font-size:10px;color:#95886e}.tip{font-size:11px;line-height:1.7;color:#8b7d64;background:#f6f1e7;border-radius:6px;padding:12px}.banner{margin-top:25px;border-radius:12px;background:var(--navy);padding:30px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:white}.banner .eyebrow{color:var(--yellow)!important}.banner h2{font-size:23px}.banner p:last-child{font-size:12px;color:#aab7c8;margin-bottom:0}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.form-panel{margin-bottom:20px}.step-title{display:flex;align-items:center;gap:12px;margin-bottom:23px}.step-title>span{font-size:11px;border-radius:6px;background:#fff5d8;color:#97710d;padding:8px}.step-title h2{font-size:17px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-size:11px;font-weight:600;color:#526174}input,select,textarea{display:block;width:100%;margin-top:8px;border:1px solid #dbe1e7;border-radius:7px;background:#fff;padding:11px;color:var(--ink);min-height:42px}input:focus,select:focus,textarea:focus{outline:2px solid #e8b02f;outline-offset:1px}.full{grid-column:1/-1}.add-product{display:flex;gap:10px;margin-bottom:20px}.add-product select{margin:0;min-width:0}.line-item{border-top:1px solid var(--line);padding:20px 0}.line-head{display:flex;align-items:center;gap:12px}.line-head input{margin:0;font-weight:700;border-color:transparent;padding-left:0}.remove{background:#faf1ef;color:#a85c4c;border:0;border-radius:5px;width:30px;height:30px;flex-shrink:0}.line-item textarea{font-size:12px;background:#fafbfc;min-height:50px;resize:vertical}.line-numbers{display:grid;grid-template-columns:.65fr 1fr .8fr 1fr;gap:12px;margin-top:13px}.line-total{display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:var(--muted);padding-top:1px}.line-total b{font-size:13px;color:var(--ink);padding-bottom:12px}.text-button{padding:10px 0;border:0;background:none;color:#86630d;font-size:12px;font-weight:700}.summary{position:sticky;top:24px}.summary h2{line-height:1.4;margin-bottom:24px}.total-row{display:flex;justify-content:space-between;gap:12px;margin:17px 0;font-size:12px;color:var(--muted)}.grand-total{padding-top:20px;border-top:1px solid var(--line);color:var(--ink);font-weight:bold;align-items:center}.grand-total b{font-size:24px}.info-box{font-size:11px;line-height:1.8;padding:15px;background:#f5f7fa;border-radius:7px;color:#647387;margin:24px 0}.wide{width:100%;margin-bottom:10px}.save-note{font-size:11px;color:#53795e}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.product-visual{height:160px;background:#eef1f5;display:grid;place-items:center}.screen{width:135px;height:80px;background:var(--navy);border:7px solid #293746;border-radius:4px;box-shadow:0 16px 22px #061b3a20;position:relative}.screen:before{content:'';position:absolute;inset:12px;background:linear-gradient(135deg,#ffb800 45%,#ffd470 45%,#ffd470 60%,#234668 60%)}.product-visual.totem .screen{width:60px;height:115px;border-bottom-width:15px}.product-visual.player .screen{width:100px;height:45px;border-radius:9px}.product-visual.mount .screen{width:90px;height:65px;background:transparent;border-width:8px}.product-visual.mount .screen:before{background:#293746;inset:16px -15px}.product-content{padding:23px}.product-content h2{font-size:17px;margin:8px 0}.product-content p{font-size:12px;color:var(--muted);min-height:42px}.product-content footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:25px}.product-content strong{font-size:21px}.product-content small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.client-toolbar{display:flex;justify-content:space-between;align-items:center;margin:25px 0;gap:16px}.client-toolbar>a{font-size:12px}.preview-notice{text-align:center;font-size:10px;color:#8a7345;margin-bottom:25px}.document{background:white;max-width:900px;margin:auto;padding:50px 55px;box-shadow:0 6px 32px #061b3a08;border:1px solid var(--line)}.doc-header{display:flex;justify-content:space-between;gap:25px;align-items:center;border-bottom:3px solid var(--yellow);padding-bottom:25px}.doc-header img{width:200px}.doc-header div{text-align:right;font-size:11px;line-height:1.8;color:var(--muted)}.doc-header b{display:block;color:var(--ink);font-size:15px}.doc-clients{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:28px 0;font-size:12px;line-height:1.8}.doc-clients b{font-size:14px;display:block}.doc-clients p{margin:0;color:var(--muted)}.document h1{font-size:28px;margin:28px 0 12px}.doc-table{width:100%;border-collapse:collapse;margin:25px 0;font-size:11px}.doc-table th{text-align:left;background:#f5f6f8;color:var(--muted);padding:12px 9px;font-size:9px;letter-spacing:.5px}.doc-table td{padding:17px 9px;border-bottom:1px solid var(--line);vertical-align:top}.doc-table td:first-child{width:48%}.doc-table td small{display:block;color:var(--muted);font-size:10px;margin-top:6px;line-height:1.6}.doc-table .num{text-align:right;white-space:nowrap}.doc-totals{max-width:300px;margin-left:auto}.doc-conditions{border-top:1px solid var(--line);margin-top:30px;padding-top:25px;font-size:11px;line-height:1.8}.doc-conditions h2,.doc-plan h2{font-size:16px;margin-bottom:12px}.doc-conditions p{white-space:pre-wrap}.doc-plan{background:#fffaf0;border:1px solid #f1e4c6;border-radius:8px;padding:22px;margin-top:25px}.plan-rows{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.plan-row{background:white;border-radius:6px;padding:12px;font-size:11px;line-height:1.8}.plan-row b{display:block}.doc-footer{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;margin-top:30px;display:flex;justify-content:space-between;gap:20px}.accept-result{margin-top:25px;background:#edf6ee;padding:18px;border-radius:7px;color:#356244;font-size:12px}dialog{border:0;border-radius:15px;max-width:460px;padding:30px;width:calc(100% - 32px);box-shadow:0 20px 90px #061b3a40}dialog::backdrop{background:#061b3a75}dialog p{font-size:12px;color:var(--muted)}dialog h2{margin-bottom:18px}.checkbox{display:flex;gap:12px;align-items:start;margin:20px 0;line-height:1.7}.checkbox input{width:18px;min-height:18px;flex-shrink:0;margin:0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:var(--navy);color:white;border-radius:8px;padding:15px 22px;z-index:20;box-shadow:0 5px 25px #061b3a30;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.main{padding-left:65px;padding-right:65px}.heading{margin-top:50px}}@media(max-width:1150px){.sidebar{width:190px;padding:30px 18px}.brand img{width:150px}.main{margin-left:190px;padding-left:25px;padding-right:25px}.editor-grid{grid-template-columns:minmax(0,1fr) 250px}.dashboard-grid{grid-template-columns:1fr}.heading{align-items:start}.heading h1{font-size:29px}.catalog-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.sidebar{position:static;width:100%;padding:12px 18px;flex-direction:row;align-items:center;justify-content:space-between;gap:15px}.brand img{width:135px;height:40px}.workspace,.sidebar-bottom{display:none}nav{display:flex;gap:4px}nav a{font-size:14px;padding:10px;gap:6px}nav a span{font-size:11px}nav a.active{border:0;padding-left:10px}.main{margin-left:0;padding:0 20px 30px}.topbar{height:60px}.heading{flex-direction:column;gap:18px;margin:26px 0}.stats{gap:10px}.stats article{padding:18px 13px}.stats strong{font-size:26px}.stats small{display:block;margin:4px 0}.stats p{display:none}.editor-grid{grid-template-columns:1fr}.summary{position:static}.document{padding:30px}.catalog-grid{grid-template-columns:repeat(2,1fr)}.banner{align-items:start;flex-direction:column}.line-numbers{gap:8px}.doc-header img{width:170px}.doc-table{font-size:10px}}@media(max-width:480px){.sidebar{padding:10px 12px}.brand img{width:110px}nav a{padding:10px 7px}nav a span{font-size:10px}.main{padding-left:14px;padding-right:14px}.topbar{font-size:10px}.demo-badge{font-size:7px;letter-spacing:.5px}.heading h1{font-size:27px}.stats article>span{font-size:10px}.stats strong{font-size:24px}.stats small{font-size:10px}.panel{padding:19px}.panel-title h2{font-size:18px}.proposal-list>button,.proposal-row{gap:9px;flex-wrap:wrap}.proposal-value{margin-left:51px;text-align:left}.proposal-list b{font-size:12px}.fields{grid-template-columns:1fr}.full{grid-column:auto}.catalog-grid{grid-template-columns:1fr}.client-toolbar{align-items:start;flex-direction:column}.document{padding:22px 15px}.doc-header{gap:12px}.doc-header img{width:140px}.doc-header div{font-size:9px}.doc-header b{font-size:12px}.doc-clients{gap:16px;font-size:10px}.doc-clients b{font-size:12px}.document h1{font-size:22px}.doc-table th,.doc-table td{padding:10px 4px}.doc-table td:first-child{width:42%}.doc-table td small{font-size:9px}.doc-table{font-size:9px}.plan-rows{grid-template-columns:1fr}.doc-footer{flex-direction:column;gap:8px}.actions{width:100%}.actions button{flex:1;font-size:11px;padding:12px}.line-numbers{grid-template-columns:.6fr 1fr .75fr}.line-total{grid-column:1/-1;flex-direction:row;padding-top:8px}.line-total b{padding:0}}
@media print{@page{size:A4;margin:15mm}body{background:white;font-size:11px}.sidebar,.topbar,.client-toolbar,.preview-notice,#toast,dialog{display:none!important}.main{margin:0;padding:0}body .view{display:none!important}body #cliente{display:block!important}.document{border:0;box-shadow:none;margin:0;padding:0;max-width:none}.doc-header{print-color-adjust:exact}.doc-plan,.doc-table th{print-color-adjust:exact}.doc-table thead{display:table-header-group}.doc-table tr,.doc-plan,.doc-conditions{break-inside:avoid}.doc-table td{padding-top:12px;padding-bottom:12px}.doc-footer{margin-top:20px}}
/* Catálogo gestionable e identidad aportada por el titular */
.brand img{height:auto;max-height:85px;width:185px;object-fit:contain}.catalog-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 200px;gap:18px;background:white;border:1px solid var(--line);padding:20px;border-radius:12px}.category-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}.category-tab{background:white;border:1px solid #dce2e8;border-radius:7px;padding:10px 15px;color:var(--muted);font-size:12px;min-height:40px}.category-tab.selected{background:var(--navy);color:white;border-color:var(--navy)}.product-meta{display:flex;gap:10px;align-items:start;justify-content:space-between}.product-meta .status{font-size:9px;margin-top:-3px;flex-shrink:0}.product-meta .eyebrow{font-size:9px!important;line-height:1.7}.product-management{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:20px;padding-top:6px}.archive-button{color:#975248}.archived .product-visual{opacity:.5}.catalog-empty{grid-column:1/-1;text-align:center;padding:50px 20px;background:white;border:1px dashed #ccd4dd;border-radius:12px}.catalog-empty p{color:var(--muted);margin-bottom:24px}.form-error{color:#a34438!important}#product-dialog{max-width:650px;max-height:90vh;overflow:auto}.doc-header img{width:200px;height:auto;max-height:90px;object-fit:contain}.primary:disabled,.secondary:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1150px){.brand img{width:150px}}@media(max-width:800px){.brand img{width:135px;max-height:48px}}@media(max-width:480px){.brand img{width:100px;max-height:40px}.sidebar{gap:6px}nav a{gap:4px;padding:10px 6px}.catalog-toolbar{grid-template-columns:1fr;padding:16px}.category-tab{font-size:11px;padding:10px 12px}.doc-header img{width:140px;max-height:65px}}
/* Clientes, varios presupuestos y seguimiento local */
.managed-quote{display:flex;align-items:center;gap:14px;padding:20px 0;border-top:1px solid var(--line)}.quote-open{display:flex;align-items:center;gap:13px;border:0;background:none;text-align:left;color:var(--ink);min-width:0;flex:1}.quote-open b{font-size:13px}.quote-open small{display:block;color:var(--muted);font-size:10px;margin-top:7px;line-height:1.7}.quote-amount{margin-left:auto;text-align:right;flex-shrink:0;font-size:13px}.quote-amount small{display:block!important;font-size:9px;margin-top:7px}.compact{font-size:10px;padding:9px;min-height:36px}.quote-list{margin-top:22px}.client-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:25px}.search-label{max-width:500px}.client-history{border-top:1px solid var(--line);margin-top:18px;display:grid}.client-grid h2{overflow-wrap:anywhere}.client-grid .muted{overflow-wrap:anywhere}.quote-open span{min-width:0;overflow-wrap:anywhere}#client-dialog{max-width:620px;max-height:90vh;overflow:auto}input:disabled,select:disabled,textarea:disabled{background:#f3f5f7;color:#657387}.history-dialog{max-width:950px;max-height:90vh;overflow:auto;width:calc(100% - 30px)}
@media(max-width:800px){.sidebar{flex-wrap:wrap}.sidebar nav{flex-wrap:wrap}.client-grid{grid-template-columns:1fr}.managed-quote{flex-wrap:wrap}.managed-quote .quote-open{flex-basis:65%}.quote-amount{margin-left:0}.managed-quote .compact{margin-left:54px}.stats strong{font-size:25px}}
@media(max-width:480px){.sidebar{justify-content:center}.sidebar .brand{margin-right:auto}.sidebar nav{width:100%;justify-content:space-between}.managed-quote .quote-open{flex-basis:100%}.quote-amount{margin-left:54px;text-align:left}.managed-quote .compact{margin-left:auto}.stats strong{font-size:19px}.stats article{padding:16px 10px}.quote-open small{max-width:240px}.client-grid .actions button{font-size:12px}}
.loading-app .sidebar,.loading-app .main{visibility:hidden}.loading-app:after{content:'Conectando con Digital Project…';position:fixed;inset:45% 0 auto;text-align:center;color:var(--muted)}.login-page{min-height:100vh;display:grid;place-items:center;background:var(--navy);padding:24px}.login-card{background:white;border-radius:16px;padding:38px;width:100%;max-width:440px;box-shadow:0 20px 80px #0003}.login-card>img{width:210px;height:auto;display:block;margin-bottom:30px}.login-card label{margin-top:18px}.login-card h1{font-size:29px}.server-status{font-size:10px;color:#53795e}.sidebar-bottom{flex-wrap:wrap}.logout-button{color:#c4cfdf;padding:10px 0;flex-basis:100%}.topbar{flex-wrap:wrap}.login-card .eyebrow{margin-top:10px}@media(max-width:480px){.login-card{padding:26px}.server-status{font-size:9px}.topbar{padding:12px 0;height:auto;min-height:65px}}
