/* Presupuesto y formularios de Capa Cero. Funciona también con otros temas. */
html body .cc3d{--c3-primary:var(--cc-primary,#0b5fff);--c3-primary-d:var(--cc-primary-d,#0848c7);--c3-ink:var(--cc-ink,#111c30);--c3-muted:var(--cc-muted,#5b6778);--c3-line:var(--cc-line,#dfe5ec);--c3-bg:var(--cc-bg,#f4f6fa);--c3-card:#fff;--c3-wash:var(--cc-wash,#e9f0ff);--c3-ok:#0b7a4b;--c3-ok-w:#e0f5ea;--c3-warn:#94590a;--c3-warn-w:#fdf0d9;--c3-bad:#b42318;--c3-bad-w:#fde7e4;--c3-r:8px;color:var(--c3-ink);font-size:15px;line-height:1.5}
html body .cc3d *{box-sizing:border-box}
html body .cc3d [hidden]{display:none!important}
html body .cc3d h1{margin:0;font-size:clamp(24px,3vw,32px);font-weight:700;line-height:1.2;color:var(--c3-ink)}
html body .cc3d h2{margin:0;font-size:19px;font-weight:700;color:var(--c3-ink)}
html body .cc3d p{margin:0}
html body .cc3d a{color:var(--c3-primary)}
html body .cc3d-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:18px 0}
html body .cc3d-title p{color:var(--c3-muted);margin-top:4px}
html body .cc3d-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
html body .cc3d-tab{flex:none;padding:8px 14px;border-radius:999px;border:1px solid var(--c3-line);background:#fff;color:var(--c3-muted);font-weight:500;font-size:14px;white-space:nowrap}
html body .cc3d-tab small{font-size:11px;color:var(--c3-muted);margin-left:3px}
html body .cc3d-tab.is-on{background:var(--c3-primary);border-color:var(--c3-primary);color:#fff;font-weight:600}
html body .cc3d-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
html body .cc3d-main{display:grid;gap:14px;min-width:0}
html body .cc3d-side{position:sticky;top:84px;scroll-margin-top:84px;background:var(--c3-card);border:1px solid var(--c3-line);border-radius:var(--c3-r);box-shadow:0 2px 10px rgba(16,32,64,.05)}
html body .cc3d-side-in{display:grid;gap:14px;padding:18px}@media (max-width:1040px){html body .cc3d-layout{grid-template-columns:minmax(0,1fr)}html body .cc3d-side{position:static}}
html body .cc3d-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 18px;border:1px solid var(--c3-line);border-radius:6px;background:#fff;color:var(--c3-ink);font:inherit;font-weight:600;cursor:pointer;text-decoration:none;transition:background .12s,border-color .12s,color .12s}
html body .cc3d-btn:hover{border-color:var(--c3-primary);color:var(--c3-primary)}
html body .cc3d-btn-primary{background:var(--c3-primary);border-color:var(--c3-primary);color:#fff}
html body .cc3d-btn-primary:hover{background:var(--c3-primary-d);border-color:var(--c3-primary-d);color:#fff}
html body .cc3d-btn-lg{min-height:48px;width:100%;font-size:16px}
html body .cc3d-btn-sm{min-height:34px;padding:4px 12px;font-size:14px}
html body .cc3d-btn:disabled{opacity:.5;cursor:not-allowed}
html body .cc3d :focus-visible{outline:2px solid var(--c3-primary);outline-offset:2px}
html body .cc3d-link{white-space:nowrap;font-weight:500}
html body .cc3d-drop{display:grid;justify-items:center;gap:10px;text-align:center;padding:36px 20px;background:var(--c3-card);border:2px dashed #b9c6d8;border-radius:var(--c3-r);color:var(--c3-primary);transition:background .12s,border-color .12s}
html body .cc3d-drop.is-drag{background:var(--c3-wash);border-color:var(--c3-primary)}
html body .cc3d-drop-t{display:grid;gap:2px}
html body .cc3d-drop-t strong{font-size:19px;color:var(--c3-ink)}
html body .cc3d-drop-t span{font-size:14px;color:var(--c3-muted)}
html body .cc3d-drop-a{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
html body .cc3d-fine{font-size:12.5px;color:var(--c3-muted);max-width:72ch}
html body .cc3d-drop.is-compact{grid-template-columns:auto minmax(0,1fr) auto;justify-items:start;text-align:left;padding:14px 16px;gap:4px 14px;align-items:center}
html body .cc3d-drop.is-compact svg{width:30px;height:30px}
html body .cc3d-drop.is-compact .cc3d-fine,html body .cc3d-drop.is-compact #cc3dSample{display:none}
html body .cc3d-drop.is-compact .cc3d-drop-t strong{font-size:16px}
html body .cc3d-drop.is-compact .cc3d-drop-a{margin:0}@media (max-width:560px){html body .cc3d-drop.is-compact{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}html body .cc3d-drop.is-compact svg{display:none}}
html body .cc3d-files{display:grid;gap:10px}
html body .cc3d-files:empty{display:none}
html body .cc3d-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .cc3d-tips div{display:grid;gap:3px;align-content:start;padding:14px;background:var(--c3-bg);border-radius:var(--c3-r);font-size:13.5px;color:var(--c3-muted);line-height:1.4}
html body .cc3d-tips strong{color:var(--c3-ink);font-size:14.5px}
[data-state=files] .cc3d-tips{display:none}@media (max-width:760px){html body .cc3d-tips{grid-template-columns:minmax(0,1fr)}}
html body .cc3d-mobar{display:none}@media (max-width:1040px){html body .cc3d-mobar{position:fixed;left:0;right:0;bottom:var(--cc-tabbar-h,0px);z-index:90;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#fff;border-top:1px solid var(--c3-line);box-shadow:0 -6px 18px rgba(16,32,64,.08)}html body .cc3d-mobar span{font-size:13px;color:var(--c3-muted)}html body .cc3d-mobar b{font-size:18px;font-weight:800;color:var(--c3-primary);margin-right:auto;font-variant-numeric:tabular-nums}html body .cc3d-mobar[hidden]{display:none!important}html body #cc3d-app[data-state=files]{padding-bottom:64px}}
html body .cc3d-file{background:var(--c3-card);border:1px solid var(--c3-line);border-radius:var(--c3-r);overflow:hidden}
html body .cc3d-file.is-active{border-color:var(--c3-primary);box-shadow:0 0 0 1px var(--c3-primary)}
html body .cc3d-file-h{display:grid;grid-template-columns:72px minmax(0,1fr) auto minmax(78px,auto) auto;gap:12px;align-items:center;padding:10px 12px;cursor:pointer}
html body .cc3d-thumb{width:72px;height:54px;border-radius:5px;background:var(--c3-bg);object-fit:cover;display:block}
html body .cc3d-thumb-empty{display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--c3-muted)}
html body .cc3d-file-t{min-width:0}
html body .cc3d-file-t strong{display:block;font-weight:600;overflow-wrap:anywhere}
html body .cc3d-file-t span{display:block;font-size:13px;color:var(--c3-muted);font-variant-numeric:tabular-nums}
html body .cc3d-qty{display:inline-grid;grid-template-columns:32px 54px 32px;border:1px solid var(--c3-line);border-radius:6px;overflow:hidden;height:36px}
html body .cc3d-qty button{border:0;background:var(--c3-bg);cursor:pointer;font-size:17px;color:var(--c3-ink);padding:0}
html body .cc3d-qty button:hover{background:var(--c3-wash);color:var(--c3-primary)}
html body .cc3d .cc3d-qty input{border:0;border-inline:1px solid var(--c3-line);text-align:center;min-height:0;height:100%;width:100%;padding:0;border-radius:0;-moz-appearance:textfield;appearance:textfield;font-variant-numeric:tabular-nums}
html body .cc3d-qty input::-webkit-inner-spin-button,html body .cc3d-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body .cc3d-file-p{font-weight:700;font-size:16px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html body .cc3d-file-a{display:flex;gap:2px}
html body .cc3d-file-a button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:6px;background:transparent;color:var(--c3-muted);cursor:pointer}
html body .cc3d-file-a button:hover{background:var(--c3-bg);color:var(--c3-ink)}@media (max-width:640px){html body .cc3d-file-h{grid-template-columns:58px minmax(0,1fr) auto;gap:8px 10px}html body .cc3d-thumb{width:58px;height:44px}html body .cc3d-qty{grid-row:2;grid-column:1/3;justify-self:start}html body .cc3d-file-p{grid-row:2;grid-column:3}html body .cc3d-file-a{grid-row:1;grid-column:3}}
html body .cc3d-file-b{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);border-top:1px solid var(--c3-line)}@media (max-width:760px){html body .cc3d-file-b{grid-template-columns:minmax(0,1fr)}}
html body #cc3dSlot{position:sticky;top:84px;align-self:start}@media (max-width:760px){html body #cc3dSlot{position:static}}
html body .cc3d-canvas{position:relative;height:min(52vw,450px);min-height:280px;background:#0f1b2d;color:#e8eef6;overflow:hidden}
html body .cc3d-canvas canvas{position:absolute;inset:0;width:100%!important;height:100%!important;touch-action:none;display:block}
html body .cc3d-dims{position:absolute;top:10px;left:12px;pointer-events:none;font-size:13px;font-variant-numeric:tabular-nums;background:rgba(10,20,35,.6);padding:3px 8px;border-radius:4px;z-index:1}
html body .cc3d-dims:empty{display:none}
html body .cc3d-dims i{font-style:normal;color:#9db4d6}
html body .cc3d-noview{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:6px;padding:24px;background:#0f1b2d;color:#9db4d6;z-index:2}
html body .cc3d-noview b{font-size:19px;color:#fff}
html body .cc3d-simbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 12px;background:#14233a;color:#dbe6f5;font-size:13px;font-variant-numeric:tabular-nums}
html body .cc3d-simbar button{min-height:32px;padding:3px 11px;background:transparent;color:#fff;border:1px solid #47628c;border-radius:5px;cursor:pointer;font:inherit;font-weight:600}
html body .cc3d-simbar button:hover{border-color:#fff}
html body .cc3d .cc3d-simbar input[type=range]{flex:1 1 120px;min-width:0;width:auto;accent-color:#6ea2ff}
html body .cc3d-simbar output{flex:none;min-width:96px;text-align:right;color:#9db4d6}
html body .cc3d-opts{padding:14px;display:grid;gap:14px;align-content:start;border-left:1px solid var(--c3-line);min-width:0}@media (max-width:760px){html body .cc3d-opts{border-left:0}}
html body .cc3d-field{display:grid;gap:6px;min-width:0}
html body .cc3d-label{display:block;font-size:13px;font-weight:600;color:var(--c3-ink)}
html body .cc3d input[type=text],html body .cc3d input[type=email],html body .cc3d input[type=tel],html body .cc3d input[type=number],html body .cc3d select,html body .cc3d textarea{width:100%;min-height:40px;padding:7px 10px;background:#fff;color:var(--c3-ink);border:1px solid var(--c3-line);border-radius:6px;font:inherit}
html body .cc3d input[type=range]{width:100%;accent-color:var(--c3-primary)}
html body .cc3d-mats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
html body .cc3d-mat{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 6px;align-items:baseline;padding:7px 9px;border:1px solid var(--c3-line);border-radius:6px;cursor:pointer;font-size:14px}
html body .cc3d-mat:hover{border-color:var(--c3-primary)}
html body .cc3d-mat.is-on{border-color:var(--c3-primary);background:var(--c3-wash)}
html body .cc3d-mat input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
html body .cc3d-mat:focus-within{outline:2px solid var(--c3-primary);outline-offset:1px}
html body .cc3d-mat-n{grid-column:1/3;font-weight:600}
html body .cc3d-mat-p{font-weight:600;color:var(--c3-primary);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13.5px}
html body .cc3d-mat small{grid-column:1/-1;color:var(--c3-muted);font-size:12px;line-height:1.3}
html body .cc3d-swatches{display:flex;flex-wrap:wrap;gap:6px}
html body .cc3d-sw{width:28px;height:28px;border-radius:50%;border:1px solid rgba(16,32,64,.25);cursor:pointer;padding:0}
html body .cc3d-sw[aria-pressed=true]{outline:2px solid var(--c3-primary);outline-offset:2px}
html body .cc3d-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html body .cc3d-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
html body .cc3d-seg button{border:1px solid var(--c3-line);border-radius:6px;background:#fff;padding:6px 4px;cursor:pointer;line-height:1.2;color:var(--c3-ink);min-height:44px;font:inherit}
html body .cc3d-seg button:hover{border-color:var(--c3-primary)}
html body .cc3d-seg button b{display:block;font-size:13.5px;font-weight:600}
html body .cc3d-seg button small{display:block;font-size:11.5px;color:var(--c3-muted)}
html body .cc3d-seg button[aria-pressed=true]{border-color:var(--c3-primary);background:var(--c3-wash);color:var(--c3-primary)}
html body .cc3d-infill-h{display:flex;justify-content:space-between;align-items:baseline}
html body .cc3d-infill-h output{font-weight:600;font-variant-numeric:tabular-nums}
html body .cc3d-hint{font-size:13px;color:var(--c3-muted);line-height:1.4}
html body .cc3d-tier{font-size:13px;color:var(--c3-primary);font-weight:500}
html body .cc3d-tier:empty{display:none}
html body .cc3d-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media (max-width:520px){html body .cc3d-row2{grid-template-columns:minmax(0,1fr)}}
html body .cc3d-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;margin:0;padding:10px 0 0;border-top:1px solid var(--c3-line)}@media (max-width:480px){html body .cc3d-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
html body .cc3d-stats dt{font-size:12px;color:var(--c3-muted)}
html body .cc3d-stats dd{margin:0;font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}
html body .cc3d-checks{display:grid;gap:5px;margin:0;padding:0;list-style:none;font-size:13px;line-height:1.35}
html body .cc3d-checks li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:start}
html body .cc3d-chip{display:inline-block;padding:2px 7px;border-radius:4px;font-size:11.5px;font-weight:600;white-space:nowrap;background:var(--c3-bg);color:var(--c3-ink)}
html body .cc3d-chip.cc3d-ok{background:var(--c3-ok-w);color:var(--c3-ok)}
html body .cc3d-chip.cc3d-warn{background:var(--c3-warn-w);color:var(--c3-warn)}
html body .cc3d-chip.cc3d-bad{background:var(--c3-bad-w);color:var(--c3-bad)}
html body .cc3d-chip.cc3d-info{background:var(--c3-wash);color:var(--c3-primary)}
html body .cc3d-audit{font-size:13px;border-top:1px solid var(--c3-line);padding-top:8px}
html body .cc3d-audit summary{cursor:pointer;font-weight:600}
html body .cc3d-table{overflow-x:auto;margin-top:8px}
html body .cc3d-table table{border-collapse:collapse;width:100%;font-size:13px}
html body .cc3d-table th,html body .cc3d-table td{padding:6px 8px;border-bottom:1px solid var(--c3-line);text-align:left;vertical-align:top}
html body .cc3d-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html body .cc3d-lines{display:grid}
html body .cc3d-line{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px;border-bottom:1px solid var(--c3-line)}
html body .cc3d-line span:first-child{min-width:0;overflow-wrap:anywhere}
html body .cc3d-line span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}
html body .cc3d-line.is-sub{color:var(--c3-muted)}
html body .cc3d-line.is-sub span:last-child{font-weight:400}
html body .cc3d-group{display:grid;gap:6px}
html body .cc3d-urg{display:grid;gap:5px}
html body .cc3d-urg label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 10px;border:1px solid var(--c3-line);border-radius:6px;cursor:pointer;font-size:14px}
html body .cc3d-urg label.is-on{border-color:var(--c3-primary);background:var(--c3-wash)}
html body .cc3d-urg label.is-off{opacity:.55;cursor:not-allowed}
html body .cc3d-urg input{margin:0;accent-color:var(--c3-primary)}
html body .cc3d-urg b{display:block;font-weight:600}
html body .cc3d-urg small{display:block;font-size:12px;color:var(--c3-muted);line-height:1.25}
html body .cc3d-urg em{font-style:normal;font-size:13px;font-variant-numeric:tabular-nums}
html body .cc3d-inline{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.35;font-weight:400}
html body .cc3d-inline input{margin-top:2px;accent-color:var(--c3-primary);flex:none}
html body .cc3d-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
html body .cc3d-total span{font-weight:600}
html body .cc3d-total b{font-size:30px;font-weight:800;color:var(--c3-primary);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html body .cc3d-note{padding:8px 10px;border-radius:6px;background:var(--c3-warn-w);color:var(--c3-warn);font-size:13px;line-height:1.4}
html body .cc3d-err{color:var(--c3-bad);font-size:13.5px}
html body .cc3d-ok{color:var(--c3-ok);font-size:14px;font-weight:500}
html body .cc3d-actions{display:grid;gap:8px}
html body .cc3d-terms{font-size:13px}
html body .cc3d-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:10px;padding:22px;color:var(--c3-ink);background:#fff;box-shadow:0 18px 60px rgba(8,20,45,.3)}
html body .cc3d-dialog::backdrop{background:rgba(8,20,45,.55)}
html body .cc3d-dlg-h{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:10px}
html body .cc3d-dialog form,html body .cc3d-contact{display:grid;gap:12px}
html body .cc3d-dialog form label,html body .cc3d-contact label{display:grid;gap:4px;font-size:14px;font-weight:500}
html body .cc3d-dialog form label.cc3d-inline,html body .cc3d-contact label.cc3d-inline{display:flex;font-weight:400}
html body .cc3d-dialog #cc3dDlgResume{margin-bottom:12px}
html body .cc3d-dialog #cc3dDlgDone p{margin-bottom:12px}
html body .cc3d-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
html body .cc3d-progress{position:relative;height:26px;border-radius:6px;background:var(--c3-bg);overflow:hidden}
html body .cc3d-progress div{position:absolute;inset:0 auto 0 0;width:0;background:var(--c3-wash);transition:width .15s}
html body .cc3d-progress span{position:relative;display:block;text-align:center;font-size:12.5px;line-height:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 8px}
html body .cc3d-big{margin-top:12px!important;font-size:18px}@media (prefers-reduced-motion:reduce){html body .cc3d *{transition:none!important}}

/* Dentro de otros temas: botones sin estilos heredados y ancho propio aunque el contenedor sea estrecho */
html body .cc3d button{font-family:inherit;text-transform:none;letter-spacing:normal;text-shadow:none;box-shadow:none}
html body .cc3d.cc3d-embed{width:min(1240px,calc(var(--cc3d-vw,100vw) - 32px));max-width:none;margin:24px 0 56px calc(50% - min(620px,calc(var(--cc3d-vw,100vw) / 2 - 16px)))}
html body .cc3d-myfiles.cc3d-embed{width:min(980px,calc(var(--cc3d-vw,100vw) - 32px));margin-left:calc(50% - min(490px,calc(var(--cc3d-vw,100vw) / 2 - 16px)))}
