.master-catalog-head{align-items:flex-start;gap:18px}.master-catalog-head p{max-width:760px}.master-catalog-summary{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}.master-catalog-summary span{display:flex;align-items:baseline;gap:5px;padding:8px 11px;border:1px solid #eadff0;border-radius:999px;background:#fbf9fc;color:#706278;font-size:11px}.master-catalog-summary b{color:#341540;font:800 14px Sora}.master-toolbar{margin-top:12px}.master-table{min-width:900px}.master-table :is(input,select){width:100%;min-width:0}.master-table td:nth-child(1){width:110px}.master-table td:nth-child(2){min-width:250px}.master-table td:nth-child(3){width:95px}.master-table td:nth-child(4){width:155px}.master-table td:nth-child(5){width:130px}.master-table td:nth-child(6){width:145px}.master-table td:nth-child(7){width:210px}.master-name-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.master-name-cell small{grid-column:1/-1;color:#817588;white-space:normal}.master-row-actions{display:flex;gap:6px;justify-content:flex-end}.master-row-actions button{border:0;border-radius:8px;padding:7px 9px;background:#f2eaf6;color:#58256f;font-size:10px;font-weight:800;cursor:pointer}.master-row-actions .publish{background:#ff6b25;color:#fff}.master-state{display:grid;gap:3px}.master-state small{color:#817588;font-size:9px}.master-binding-count{display:grid;gap:3px}.master-binding-count strong{font-size:11px;color:#3d1b4c}.master-binding-count small{font-size:9px;color:#817588}.master-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;color:#766b7d;font-size:10px}.master-legend span{display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%;background:#b9adbfc}.dot.commercial{background:#ff6b25}.dot.technical{background:#6f28c7}.master-dialog{width:min(820px,calc(100vw - 28px));max-height:min(88vh,820px);border:0;border-radius:20px;padding:0;box-shadow:0 25px 80px #29133555;color:#291633}.master-dialog::backdrop{background:#1e0e2a99;backdrop-filter:blur(2px)}.master-dialog form{padding:24px;overflow:auto;max-height:inherit}.master-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.master-dialog-head h2{margin:2px 0 0}.dialog-close{width:34px;height:34px;border:0;border-radius:50%;background:#f2eaf6;color:#59276f;font-size:22px;cursor:pointer}.master-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.master-form-grid label{margin:0}.master-form-grid :is(input,select,textarea){width:100%;box-sizing:border-box;border:1px solid #ded3e4;border-radius:10px;padding:10px;background:#fff;color:#28152f}.master-form-grid textarea{resize:vertical;font:12px ui-monospace,monospace}.master-form-grid small{font-size:9px;color:#85788c}.master-wide{grid-column:1/-1}.master-check{display:flex!important;flex-direction:row!important;align-items:center!important;padding-top:25px}.master-check input{width:auto}.master-bindings{display:grid;gap:8px;margin-top:18px}.master-binding-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;border:1px solid #e5dae9;border-radius:11px;background:#faf8fb}.master-binding-card strong{font-size:11px}.master-binding-card small{display:block;margin-top:3px;color:#766a7d;font-size:9px}.master-binding-card button{align-self:center;border:0;border-radius:8px;padding:7px 10px;background:#6f28c7;color:#fff;font-size:10px;font-weight:800}.compact-dialog{width:min(560px,calc(100vw - 28px))}.compact-dialog label{margin-bottom:14px}.compact-dialog :is(input,select,textarea){box-sizing:border-box;width:100%}.master-empty{padding:30px;text-align:center;color:#7e7285}.master-price-pending{color:#9b5b22;font-size:10px;font-weight:800}.master-price-value{display:flex;align-items:center;gap:4px}.master-price-value span{font-size:10px;color:#766a7d}.master-price-value input{font-variant-numeric:tabular-nums}.master-history-note{font-size:9px;color:#796d80}.master-history{margin-top:14px;border-top:1px solid #eadff0;padding-top:12px}.master-history summary{cursor:pointer;color:#5d276f;font:800 11px Sora}.master-history-row{display:grid;grid-template-columns:135px 1fr auto;gap:10px;padding:8px 2px;border-bottom:1px solid #eee6f1;font-size:10px;color:#62566a}.master-history-row strong{color:#32183e}.master-history-row time{white-space:nowrap;color:#817588}
.master-head-actions,.legacy-import-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.legacy-import-actions{margin:14px 0}.legacy-import-actions span{flex:1}.legacy-import-dialog{width:min(1040px,calc(100vw - 28px))}.legacy-import-dialog>form>label{display:grid;gap:6px;max-width:520px}.legacy-import-dialog select{box-sizing:border-box;width:100%;border:1px solid #ded3e4;border-radius:10px;padding:10px;background:#fff;color:#28152f}.legacy-import-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.legacy-import-summary span,.legacy-labor-summary{padding:10px 12px;border:1px solid #eadff0;border-radius:11px;background:#fbf9fc;color:#62566a;font-size:10px}.legacy-import-summary b{display:block;color:#341540;font:800 16px Sora}.legacy-preview-table{min-width:820px}.legacy-preview-table td{vertical-align:top}.legacy-preview-table small{display:block;margin-top:3px;color:#7c6f83;white-space:normal}.legacy-status{display:inline-flex;border-radius:999px;padding:5px 8px;background:#f1e9f5;color:#632e77;font-size:9px;font-weight:800}.legacy-status.new{background:#fff1e8;color:#a34414}.legacy-status.invalid{background:#fff0f0;color:#a52929}.legacy-status.imported{background:#eaf7ef;color:#22633a}.legacy-labor-summary{margin-top:12px}.legacy-labor-summary strong{color:#341540}.legacy-import-actions button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:760px){.master-catalog-head{display:grid}.master-catalog-head .button,.master-head-actions{width:100%}.master-head-actions{display:grid}.master-catalog-summary{display:grid;grid-template-columns:1fr 1fr}.master-table-wrap{overflow:auto}.master-table{min-width:760px}.master-form-grid{grid-template-columns:1fr}.master-wide{grid-column:auto}.master-dialog form{padding:18px}.master-row-actions{justify-content:flex-start}.master-history-row{grid-template-columns:1fr}.master-history-row time{white-space:normal}.legacy-import-summary{grid-template-columns:1fr 1fr}.legacy-import-actions{display:grid}.legacy-import-actions span{display:none}.legacy-import-actions button{width:100%}.legacy-preview-wrap{overflow:auto}}

/* Catálogo Maestro V2: amplía la ficha sin alterar la composición Premium Light aprobada. */
.technical-fields{min-width:0;margin:4px 0;padding:14px;border:1px solid #e3d8e8;border-radius:14px;background:#fcfafd}.technical-fields legend{padding:0 7px;color:#4f1f63;font:800 12px Sora}.technical-fields>p{margin:0 0 12px;color:#75677d;font-size:11px}.technical-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.technical-fields details{margin-top:12px;border-top:1px solid #eee5f1;padding-top:10px}.technical-fields summary,.master-advanced summary{cursor:pointer;color:#5d276f;font:800 11px Sora}.master-advanced{margin-top:18px;padding:12px 14px;border:1px solid #e6dcea;border-radius:13px;background:#fbf9fc}.master-advanced>.button{margin-top:10px}.binding-card-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.binding-card-actions button{background:#6f28c7}.binding-card-actions .danger,.text-button.danger{background:#fff0f0;color:#9e2929}.history-dialog{padding:24px}.history-toolbar{display:flex;align-items:end;gap:10px;margin-bottom:12px}.history-toolbar label{display:grid;gap:5px}.master-history-list{display:grid;gap:8px;max-height:58vh;overflow:auto}.master-history-list article{padding:11px 12px;border:1px solid #e7ddeb;border-radius:12px;background:#fbf9fc}.master-history-list article>div:first-child{display:flex;justify-content:space-between;gap:12px}.master-history-list small{color:#7b6e82;font-size:10px}.history-details{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;color:#65586c;font-size:10px}.history-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.history-summary span{padding:10px;border-radius:10px;background:#f2eaf6;color:#5d276f;font-size:10px}.legacy-status.ambiguous{background:#fff7dc;color:#795b00}.legacy-status.excluded{background:#efedf1;color:#68606d}.legacy-preview-table button{border:0;border-radius:8px;padding:7px 10px;background:#efe5f4;color:#5d276f;font-size:10px;font-weight:800;cursor:pointer}
@media(max-width:760px){.technical-grid{grid-template-columns:1fr}.master-binding-card{grid-template-columns:1fr}.binding-card-actions{justify-content:flex-start}.history-dialog{padding:18px}.master-history-list article>div:first-child{display:grid}.history-summary{grid-template-columns:1fr}.history-toolbar{align-items:stretch}.history-toolbar label{flex:1}}
.binding-warning-copy,.binding-warning-empty{margin:7px 0 0;font-size:10px;line-height:1.45}.binding-warning-copy{color:#6d3a16}.binding-warning-empty{color:#817588}.binding-history{margin-top:10px;padding-top:8px;border-top:1px solid #e8deec}.binding-history summary{cursor:pointer;color:#5d276f;font:800 10px Sora}.master-binding-card.is-historical{margin-top:8px;background:#f5f2f7}.binding-warning-preview{margin:-2px 0 14px;padding:12px;border:1px solid #f0a15d;border-radius:12px;background:#fff5eb;color:#3f2618}.binding-warning-preview strong{display:block;color:#b55318;font:800 11px Sora}.binding-warning-preview p{margin:6px 0 0;font-size:11px;line-height:1.5}.binding-warning-preview.hidden{display:none}
