body.editor-cdi-page{background:#071224;color:#f4efe2}
.sat-header{display:grid;grid-template-columns:220px 1fr;align-items:start;gap:24px;padding:18px 24px;background:#081426;border-bottom:1px solid #1f3654}
.sat-brand{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:120px;text-decoration:none}
.sat-brand__logo{display:flex;align-items:center;justify-content:center;width:88px;height:88px;margin-bottom:10px}
.sat-brand__logo img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.sat-brand__text{color:#ffffff;font-size:24px;font-weight:800;letter-spacing:.5px;line-height:1.1}
.sat-header .top-menu-grid{position:static;display:flex;flex-direction:column;gap:8px;align-items:flex-end;justify-content:flex-start;z-index:auto}
.sat-header .top-menu-row{display:flex;flex-direction:row;gap:8px;justify-content:flex-end}
.sat-header .top-menu-btn{width:136px;height:42px;min-width:136px;max-width:136px;display:flex;align-items:center;justify-content:center;background:#2a1c0f;color:#f5f5f5;border:1px solid #a8781f;border-radius:12px;font-size:14px;font-weight:600;text-decoration:none;text-align:center;box-sizing:border-box;white-space:nowrap}
.page-content-grid{padding:24px}
.editor-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap;margin:0 auto 24px;max-width:1520px}
.editor-hero h1{margin:0 0 10px;color:#f5b942}
.editor-hero p{margin:0;max-width:860px;color:#d9cfb4}
.editor-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.editor-link-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;background:#d39a2c;color:#111;text-decoration:none;font-weight:700;border-radius:10px}
.editor-link-btn.secondary{background:#26415f;color:#fff}
.editor-workspace{display:grid;grid-template-columns:38% 62%;gap:18px;margin:18px auto 0;max-width:1520px}
.editor-sidebar,.editor-panel{background:#0f2238;border:1px solid #28405f;border-radius:14px;padding:16px}
.editor-panel{min-height:700px;display:flex;flex-direction:column}
.editor-sidebar-head,.editor-panel-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.editor-sidebar-head h2,.editor-panel-header h2{margin:0;color:#f7d489}
.editor-panel-header p{margin:6px 0 0;color:#d9cfb4;font-size:13px;word-break:break-word}
.editor-sidebar-head button,.editor-actions button,.editor-toolbar button,.editor-toolbar select,.editor-panel button{border-radius:10px;border:1px solid #31557c;background:#163154;color:#fff;padding:10px 12px;font-weight:600}
#btnActivarEdicion.is-active{background:#d6a52a;color:#07111f;border-color:#d6a52a}
.editor-sidebar input{width:100%;margin:14px 0;padding:12px 14px;border-radius:10px;border:1px solid #26415f;background:#081426;color:#fff;box-sizing:border-box}
.editor-file-list{max-height:70vh;overflow:auto;display:flex;flex-direction:column;gap:10px}
.editor-file-item{display:block;width:100%;text-align:left;cursor:pointer;background:#12223f;border:1px solid #31557c;border-radius:12px;padding:12px;box-sizing:border-box}
.editor-file-item.active{border-color:#d39a2c;background:#182e50}
.editor-file-item strong{display:block;color:#fff;margin-bottom:4px}
.editor-file-item small{display:block;color:#cad2dc;line-height:1.4}
.editor-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;transition:opacity .2s ease,filter .2s ease}
.editor-toolbar.is-disabled{opacity:.42;filter:grayscale(.55)}
.editor-actions button,.editor-toolbar button,.editor-toolbar select,.editor-toolbar input{min-height:38px;border-radius:8px}
.editor-toolbar input[type="color"]{width:42px;height:42px;padding:0;border:none;background:transparent}
.editor-area{background:#ffffff;color:#111827;min-height:520px;padding:28px;border-radius:12px;border:1px solid #d1d5db;overflow:auto;line-height:1.5;outline:none}
.editor-area *{color:inherit}
.editor-area.is-readonly{cursor:not-allowed;opacity:.92;background:#f7f7f7}
.editor-area:empty:before{content:'Abra o cree un archivo para editar su contenido.';color:#6b7280}
.editor-marco-activo{border:2px solid #d6a52a !important;box-shadow:0 0 0 3px rgba(214,165,42,0.15)}
.editor-feedback{margin-top:14px;padding:14px 16px;background:#09182d;border:1px solid #28405e;border-radius:12px;color:#d9cfb4;min-height:24px}
@media (max-width:1200px){.editor-workspace{grid-template-columns:1fr}.editor-panel{order:1}.editor-sidebar{order:2}.editor-file-list{max-height:40vh}}
@media (max-width:900px){.sat-header{grid-template-columns:1fr}.sat-brand{align-items:flex-start;min-height:auto}.sat-brand__logo{justify-content:flex-start}.sat-header .top-menu-grid{align-items:stretch}.sat-header .top-menu-row{flex-wrap:wrap;justify-content:flex-start}.sat-header .top-menu-btn{width:136px}.page-content-grid{padding:24px 14px}.editor-actions,.editor-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.editor-toolbar input[type="color"]{width:100%;height:42px}.editor-workspace{grid-template-columns:1fr}}
@media (max-width:640px){.editor-actions,.editor-toolbar{grid-template-columns:1fr}.page-content-grid{padding:20px 12px}}
