
:root{
  --bg:#08090b;--panel:#0f1216;--panel2:#15191e;--line:#292e34;
  --text:#f3efe9;--muted:#918d88;--gold:#d6ad62;--red:#8d332c;
  --cyan:#61d9df;--sidebar:248px;--mobile-nav:70px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:
radial-gradient(circle at 95% 0,#45151122,transparent 31%),
radial-gradient(circle at 18% 18%,#073c4220,transparent 25%),var(--bg)}
button,input{font:inherit}button{cursor:pointer}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:50;display:flex;flex-direction:column;
background:linear-gradient(180deg,#0d0f12,#080a0c);border-right:1px solid #2c2522;box-shadow:18px 0 55px #0005}
.brand{display:flex;align-items:center;gap:11px;padding:22px 18px 20px;border-bottom:1px solid #282421}
.brandMark{width:47px;height:47px;display:grid;place-items:center;border-radius:11px;border:1px solid #66342e;
background:linear-gradient(145deg,#28100e,#11151a);color:var(--gold);font:900 17px Georgia,serif}
.brandMark.small{width:36px;height:36px;font-size:14px}
.brandText b,.mobileBrand b{display:block;font:900 15px Georgia,serif;letter-spacing:.07em}
.brandText small,.mobileBrand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.10em;margin-top:3px}
.desktopMenu{padding:16px 10px;display:flex;flex-direction:column;gap:5px;overflow:auto}
.menuItem{width:100%;display:flex;align-items:center;gap:11px;border:1px solid transparent;padding:11px 12px;border-radius:9px;
background:transparent;color:#aaa59e;text-align:left;transition:.16s;font-weight:800;font-size:12px}
.menuItem:hover{background:#171414;color:#fff;border-color:#302724}
.menuItem.active{background:linear-gradient(90deg,#321612,#181516);color:#fff;border-color:#533028}
.menuIcon{width:24px;text-align:center;font-size:17px}
.menuMeta{display:flex;flex-direction:column;gap:1px}.menuMeta small{color:#706d68;font-size:8px}
.sidebarFooter{margin-top:auto;padding:16px 17px;border-top:1px solid #282421;display:flex;align-items:center;gap:8px;color:#928d87}
.sidebarFooter b{display:block;font-size:9px;letter-spacing:.10em}.sidebarFooter small{font-size:8px}
.statusDot{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 11px #d6ad6277}
.workspace{margin-left:var(--sidebar);min-height:100vh;padding:23px 28px 60px}
.workspaceTopbar{position:sticky;top:0;z-index:20;min-height:72px;margin:-23px -28px 24px;padding:15px 28px;
display:flex;align-items:center;justify-content:space-between;gap:15px;background:#08090be8;border-bottom:1px solid #282421;backdrop-filter:blur(16px)}
.sectionEyebrow{font-size:8px;color:var(--gold);font-weight:1000;letter-spacing:.16em}
.workspaceTopbar h1{font:900 25px Georgia,serif;margin:3px 0 0}
.actionButton{border:1px solid #44322c;background:#171313;color:#c8c1bb;border-radius:8px;padding:8px 10px;font-weight:800;font-size:10px}
.actionButton:hover{color:#fff;border-color:#695047}
.moduleHost,.moduleError{max-width:1450px;margin-left:auto;margin-right:auto}
.moduleError{margin-bottom:13px;border:1px solid #723b34;background:#25110f;color:#f0c1b9;border-radius:9px;padding:11px 13px;font-size:11px}
.moduleLoading{min-height:52vh;display:grid;place-items:center;align-content:center;gap:12px;color:var(--muted)}
.loader{width:30px;height:30px;border-radius:50%;border:3px solid #292e33;border-top-color:var(--gold);animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes moduleIn{from{opacity:.35;transform:translateY(4px)}}
.mobileHeader,.mobileMenu{display:none}

/* Componentes visuales compartidos disponibles para todos los módulos */
.modulePage{animation:moduleIn .18s ease}
.moduleHero{border:1px solid var(--line);border-radius:16px;padding:26px;background:linear-gradient(135deg,#14181d,#0e1115 58%,#23110f)}
.moduleHero .eyebrow,.moduleSection .eyebrow{font-size:9px;color:var(--gold);letter-spacing:.15em;font-weight:1000}
.moduleHero h2{font:900 40px/1 Georgia,serif;margin:8px 0}.moduleHero p{max-width:800px;color:var(--muted);line-height:1.65;margin:0}
.moduleSection{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#0e1115;padding:18px}
.emptyModule{min-height:280px;display:grid;place-items:center;align-content:center;text-align:center;border:1px dashed #393d42;
border-radius:13px;background:#0c0f12;padding:28px;color:var(--muted)}
.emptyModule b{font:900 24px Georgia,serif;color:#ded7cf;margin-bottom:6px}
.emptyModule code{margin-top:10px;color:#d7b879;background:#15120f;border:1px solid #342a25;border-radius:7px;padding:8px 10px;font-size:10px}

@media(max-width:720px){
  .sidebar{display:none}.mobileHeader{display:flex;position:fixed;left:0;right:0;top:0;height:58px;z-index:55;align-items:center;
  justify-content:space-between;padding:8px 12px;background:#08090bf2;border-bottom:1px solid #2c2522;backdrop-filter:blur(14px)}
  .mobileBrand{display:flex;align-items:center;gap:8px}.mobileMenuButton{border:1px solid #43322d;background:#181311;color:#fff;border-radius:8px;padding:8px 10px}
  .workspace{margin-left:0;padding:76px 11px calc(var(--mobile-nav) + 28px)}
  .workspaceTopbar{position:static;margin:0 0 13px;padding:0;min-height:auto;background:transparent;border:0}.workspaceTopbar h1{font-size:21px}
  .actionButton{display:none}
  .mobileMenu{display:flex;position:fixed;left:0;right:0;bottom:0;height:var(--mobile-nav);z-index:55;align-items:center;justify-content:space-around;
  gap:2px;padding:6px 4px max(6px,env(safe-area-inset-bottom));background:#090b0df4;border-top:1px solid #322824;backdrop-filter:blur(16px);overflow-x:auto}
  .mobileMenu .menuItem{min-width:62px;flex:1;display:flex;flex-direction:column;gap:3px;justify-content:center;padding:7px 3px;text-align:center;font-size:8px}
  .mobileMenu .menuIcon{font-size:17px}.mobileMenu .menuMeta small{display:none}
  .moduleHero{padding:19px 15px}.moduleHero h2{font-size:31px}
}
