@font-face{font-family:MemorialCentury;src:url('../fonts/CenturyGothicPaneuropeanRegular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:MemorialCentury;src:url('../fonts/CenturyGothicPaneuropeanBold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:MemorialNeuro;src:url('../fonts/neuropolitical%20rg.otf') format('opentype');font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#0d0e11;--sidebar:#101115;--panel:#1c1f24;--panel2:#292c32;--border:#31343c;--text:#f0f2f4;--muted:#9ca0aa;--red:#cf3039;--red2:#f05b60;--green:#72cca2;--yellow:#f3c079;font-family:MemorialCentury,'Century Gothic','Arial',sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--red2);outline-offset:2px}a{color:inherit}h1,h2,h3,p{margin:0}.layout{display:flex;min-height:100vh}.sidebar{width:246px;background:var(--sidebar);border-right:1px solid #26282f;padding:25px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;flex:none}.brand{display:flex;align-items:center;gap:11px;padding:5px 9px 27px;border-bottom:1px solid var(--border)}.brand img{width:41px;height:41px;object-fit:contain}.brand strong{display:block;text-transform:lowercase;font-weight:700;font-size:14px;white-space:nowrap}.brand small{display:block;letter-spacing:2px;color:var(--muted);font-size:7px;margin-top:4px}.nav{margin-top:23px;display:grid;gap:8px}.nav-link{width:100%;border:1px solid transparent;background:transparent;color:#b2b6c0;text-align:left;border-radius:8px;padding:13px 15px}.nav-link.is-active,.nav-link:hover{background:#292027;color:#fff;border-color:#55323a}.sidebar-bottom{margin-top:auto;padding:15px 10px;font-size:11px;color:#a2a6ae;line-height:2}.sidebar-bottom small{display:block;color:#737986}.indicator{display:inline-block;background:var(--green);width:7px;height:7px;border-radius:50%;margin-right:7px}.workspace{min-width:0;flex:1}.topbar{height:72px;background:#121419;border-bottom:1px solid #272a32;display:flex;align-items:center;justify-content:space-between;padding:0 30px}.crumb{font-size:12px;color:#a9aeb7}.crumb .sep{color:#656a74;padding:0 10px}.crumb b{color:white;font-weight:600}.topbar-right{display:flex;align-items:center;gap:16px;font-size:11px}.local-chip{color:var(--green)}.version{color:#7c818c}.main-content{max-width:1190px;margin:0 auto;padding:34px 38px 80px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}.page-header h1{font-family:MemorialNeuro,'Arial',sans-serif;font-weight:400;font-size:27px;letter-spacing:-.5px;margin-bottom:9px}.page-header p{color:var(--muted);font-size:12px;line-height:1.7}.btn{border:1px solid var(--border);background:#2d3037;color:#f7f7f7;border-radius:8px;padding:11px 15px;display:inline-flex;gap:9px;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;font-weight:700;min-height:40px}.btn:hover:not(:disabled){background:#3a3d45}.btn-primary{border-color:#b4232b;background:#b9232c}.btn-primary:hover:not(:disabled){background:#d12a33}.btn-ghost{background:transparent}.btn-sm{min-height:31px;padding:6px 10px;font-size:11px}.btn-danger{color:#fc8890}.btn:disabled{opacity:.4}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:22px}.panel-title{font-size:15px;display:flex;align-items:center;gap:10px;margin-bottom:19px;font-weight:700}.panel-title .number{color:var(--red2)}.info{border-left:3px solid var(--red);border-radius:6px;background:#2b2428;color:#e1d7db;font-size:12px;line-height:1.7;padding:13px 16px}.search{width:100%;background:#1e2127;border:1px solid var(--border);border-radius:9px;color:white;min-height:44px;padding:11px 14px;margin-bottom:20px}.card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(335px,1fr));gap:13px}.project-card,.revision-card{background:#202329;border:1px solid var(--border);border-radius:12px;padding:15px;display:flex;gap:15px;align-items:center;cursor:pointer;text-align:left;color:var(--text);width:100%}.project-card:hover,.revision-card:hover{border-color:#ae444d;background:#29272c}.project-cover{width:73px;height:76px;background:#363a40;border-radius:8px;object-fit:cover;flex:none}.project-card h3,.revision-card h3{font-size:14px;margin-bottom:10px}.meta{display:flex;align-items:center;gap:9px;color:#aeb1bb;font-size:11px;margin-top:6px}.meta .mi{color:#d8a3a7;width:16px;text-align:center;font-size:12px}.arrow{color:#aab0ba;font-size:20px;margin-left:auto}.tag{font-size:10px;border-radius:4px;padding:4px 6px;color:#ddd;background:#3a3d45}.tag.yellow{color:#efc788;background:#46372a}.tag.green{color:#8cdeb8;background:#254035}.project-head{display:flex;align-items:center;gap:17px;padding:17px;margin-bottom:25px}.project-head img{width:112px;height:105px;object-fit:cover;border-radius:8px}.project-head h2{margin-bottom:13px;font-size:19px}.revision-list{display:grid;gap:12px;max-width:860px}.revision-code{border-radius:8px;background:#383c44;padding:16px 12px;min-width:66px;font-size:19px;font-weight:700;color:#fff;text-align:center}.empty{color:#a4a9b2;font-size:13px;text-align:center;padding:45px 15px;border:1px dashed #3d414b;border-radius:10px}.editor-head{margin-bottom:15px}.stage-nav{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-bottom:23px}.stage-btn{min-height:79px;padding:12px 5px;border:1px solid var(--border);background:#202329;color:#b7bac5;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:10px}.stage-btn .stage-num{font-size:17px;font-weight:700}.stage-btn.active{background:#5e252c;color:white;border-color:#c34852}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,310px);gap:17px;align-items:start}.fields{display:grid;gap:17px}.fields.two{grid-template-columns:1fr 1fr}.field{display:grid;gap:8px}.field label,.field-label{font-size:11px;color:#cbd0d8;font-weight:700}.field input,.field select,.field textarea,.input,.select{display:block;width:100%;background:#30333b;border:1px solid #454952;border-radius:7px;padding:10px;color:#f6f6f8;font-size:12px;min-height:40px}.field textarea{resize:vertical;min-height:85px}.help{font-size:11px;line-height:1.6;color:#a2a7b1}.checklist{display:flex;flex-wrap:wrap;gap:9px}.check-option{padding:11px 12px;border:1px solid #434750;background:#2c2f37;border-radius:7px;font-size:12px;display:flex;align-items:center;gap:9px;cursor:pointer}.check-option:has(input:checked){background:#433036;border-color:#a8434d}.check-option input{accent-color:var(--red)}.stack{display:grid;gap:15px}.rule{border:0;border-top:1px solid var(--border);margin:10px 0}.side-note{position:sticky;top:18px}.side-note h3{font-size:13px;margin-bottom:15px}.side-note p{font-size:12px;line-height:1.7;color:#b7bbc5;margin-bottom:12px}.pill{display:inline-block;background:#303941;border-radius:5px;padding:6px 8px;font-size:10px;color:#c1c7ce}.right-actions{display:flex;gap:8px;flex-wrap:wrap}.subtle-header{color:#cbd0d8;font-size:13px;font-weight:700;margin-bottom:11px}.row{display:flex;align-items:center;gap:10px}.space-between{justify-content:space-between}.more-space{margin-top:15px}.data-row{background:#272a31;border:1px solid #3c4048;border-radius:8px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-top:8px}.cover-wrap{overflow-x:auto;padding:16px;background:#121316;border:1px solid #30343a;border-radius:12px}.cover-page{width:210mm;height:297mm;margin:0 auto;position:relative;overflow:hidden;background:#191919;isolation:isolate;color:white;box-shadow:0 15px 55px #0006;transform-origin:top left}.cover-page .cover-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:-3}.cover-page .cover-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(0,0,0,.13) 0%,rgba(0,0,0,.03) 34%,rgba(0,0,0,.11) 60%,rgba(0,0,0,.47) 100%)}.cover-company{position:absolute;top:16mm;left:60mm;right:60mm;height:54mm;display:flex;justify-content:center;align-items:center}.cover-company img{width:100%;height:100%;object-fit:contain}.cover-lower{position:absolute;bottom:55mm;left:12mm;right:12mm;text-align:center;display:flex;flex-direction:column;align-items:center}.cover-title{font-family:MemorialNeuro,'Trebuchet MS',Arial,sans-serif;font-weight:400;font-size:42pt;line-height:1.04;letter-spacing:.06mm;width:182mm;max-width:182mm;overflow-wrap:anywhere;text-transform:uppercase;margin:0 0 2.5mm}.cover-subtitle{font-family:MemorialNeuro,'Trebuchet MS',Arial,sans-serif;font-size:13.5pt;text-transform:uppercase;letter-spacing:.18mm}.cover-memorial{font-family:MemorialCentury,'Century Gothic',Arial,sans-serif;font-weight:700;font-size:12pt;line-height:1.35;letter-spacing:.35mm;margin-top:7mm!important;text-transform:uppercase}.cover-date{position:absolute;bottom:20mm;left:0;right:0;text-align:center;font-size:10.8pt}.cover-scale{width:100%;aspect-ratio:210/297;position:relative;overflow:hidden}.cover-scale .cover-page{transform:scale(var(--cover-scale,.50))}.document-page{width:min(100%,680px);min-height:710px;margin:0 auto;padding:28px;background:white;color:#202126;border-radius:2px;display:flex;flex-direction:column;gap:18px}.document-page.dark{background:#1a1d21;color:#f5f5f5}.doc-header{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #aaa;padding-bottom:12px;font-size:10px}.document-page h3{font-size:14pt;font-weight:700}.document-page p{font-size:11pt;line-height:1.4}.document-page .red{color:#b91c1c}.document-page.dark .red{color:#f05b60}.doc-footer{margin-top:auto;padding:12px 0 0;border-top:1px solid #888;display:flex;align-items:center;justify-content:space-between;gap:11px;font-size:10px}.doc-footer img{max-width:90px;max-height:53px;object-fit:contain}.doc-footer .social{display:flex;align-items:center;gap:8px;font-size:10px}.doc-footer svg{width:15px;height:15px}.status-table{border-collapse:collapse;width:100%;font-size:12px}.status-table th,.status-table td{padding:10px;text-align:left;border-bottom:1px solid #434750}.status-table th{color:#c5c8d0}.status-ok{color:var(--green)}.status-err{color:#ff8e94}.modal-backdrop{position:fixed;inset:0;background:#000b;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal-box{width:min(100%,530px);background:#202329;border:1px solid #4e525b;border-radius:12px;padding:23px;box-shadow:0 25px 70px #000a;max-height:90vh;overflow:auto}.modal-box h2{font-size:19px;margin-bottom:18px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.toast{position:fixed;right:20px;bottom:22px;background:#2e323a;color:white;border:1px solid #585d67;padding:11px 16px;border-radius:8px;font-size:12px;z-index:110;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}.toast.visible{opacity:1;transform:none}.font-sample{font-size:18px;line-height:1.3;padding:10px;background:#292d33;border:1px solid #3c4149;border-radius:6px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.warn{color:#e7bf88}.muted{color:var(--muted)}
@media(max-width:1000px){.sidebar{width:210px}.main-content{padding:25px 24px 60px}.stage-nav{grid-template-columns:repeat(3,1fr)}.editor-layout{grid-template-columns:1fr}.side-note{position:static}.cover-page{transform-origin:top left}}
@media(max-width:700px){.layout{display:block}.sidebar{width:100%;height:auto;position:static;padding:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.brand{padding:0;border:0}.brand img{width:32px;height:32px}.brand strong{font-size:11px}.brand small{font-size:6px}.sidebar-bottom{display:none}.nav{margin:0;display:flex;gap:3px}.nav-link{width:auto;font-size:10px;padding:9px}.topbar{height:50px;padding:0 15px}.main-content{padding:20px 14px 48px}.page-header{align-items:center}.page-header h1{font-size:21px}.card-list{grid-template-columns:1fr}.stage-nav{grid-template-columns:repeat(3,1fr)}.fields.two{grid-template-columns:1fr}.project-head{align-items:flex-start}.project-head img{width:78px;height:85px}.local-chip{display:none}.cover-wrap{padding:4px}.doc-header,.doc-footer{font-size:8px}.document-page{padding:17px}.doc-footer img{max-width:45px}.doc-footer .social{font-size:8px}}
@media print{@page{size:A4 portrait;margin:0}body{background:white!important}.sidebar,.topbar,.page-header,.panel,.stage-nav,.toast,.no-print{display:none!important}.workspace,.main-content{padding:0!important;margin:0!important;max-width:none!important}.cover-wrap{padding:0;border:0;overflow:visible}.cover-page{transform:none!important;box-shadow:none;width:210mm;height:297mm}.cover-scale{height:297mm!important;overflow:visible}}
@media print{.cover-scale{width:210mm!important;height:297mm!important;overflow:visible!important}.cover-bg,.cover-shade,.cover-page{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* v0.1.1 — Catálogo normativo ampliado */
.norm-toolbar{display:grid;gap:10px}.norm-search{margin-bottom:0}
.norm-tabs{display:flex;gap:7px;flex-wrap:wrap}
.norm-tabs .btn{border:1px solid #494c56}
.norm-tabs .norm-current{background:#762832;border-color:#b44751;color:#fff}
.norm-results{display:grid;gap:16px;margin-top:14px}
.norm-group{display:grid;gap:10px}
.norm-group h4{margin:0;color:#eee;font-size:12px;font-weight:700;letter-spacing:.3px}
.norm-cards{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(265px,1fr))}
.norm-option{display:flex;align-items:flex-start;gap:11px;padding:12px;border:1px solid #40434b;background:#292c33;border-radius:8px;cursor:pointer;min-width:0}
.norm-option:hover{border-color:#a44b53}
.norm-option:has(input:checked){background:#3b2c33;border-color:#b14d56}
.norm-option input{accent-color:var(--red);margin-top:4px;flex:none}
.norm-info{flex:1;min-width:0;display:grid;gap:5px}
.norm-info strong{font-size:12px;color:#fff;line-height:1.3}
.norm-info small{font-size:11px;line-height:1.45;color:#bec1c9}
.norm-recommended{align-self:start;font-size:9px;white-space:nowrap;color:#cfcece;border:1px solid #5b5c65;border-radius:5px;padding:3px 4px}
.info a{color:#f17c80;text-decoration:underline}
@media(max-width:700px){.norm-cards{grid-template-columns:1fr}.norm-recommended{font-size:9px}}
