/* Diseño propio para la versión funcional. Solo se activa en /gestion-2/.
   No cambia cálculos, autenticación, formularios ni persistencia. */
html[data-gestion2="live"]{
 --navy:#101b18;
 --ink:#203b30;
 --green:#2f715a;
 --gold:#b99a5d;
 --line:#e7eae4;
 --paper:#fff;
 --background:#f4f5f1;
}
html[data-gestion2="live"] body{background:var(--background);min-width:320px}
html[data-gestion2="live"] .sidebar{
 background:#101b18;
 border-right:1px solid #253a30;
}
html[data-gestion2="live"] .sidebar .brand{
 color:#f8f3e7;
 padding:7px 12px;
}
html[data-gestion2="live"] .sidebar .brand-emblem{
 background:linear-gradient(140deg,#374838,#1b2e24);
 color:#d5bb83;
 border-color:#b99a5d70;
 border-radius:11px;
}
html[data-gestion2="live"] .sidebar .portfolio-label{
 color:#e8dac0;
 background:#24362c;
 border-color:#b99a5d38;
}
html[data-gestion2="live"] .sidebar .nav-label{color:#92aa99}
html[data-gestion2="live"] .sidebar .nav-item{
 border:1px solid transparent;
 border-radius:10px;
 color:#b8c8bd;
 font-weight:550;
}
html[data-gestion2="live"] .sidebar .nav-item:hover{
 background:#25382e;
 color:#fff;
}
html[data-gestion2="live"] .sidebar .nav-item.active{
 background:#26382e;
 color:#f6ebcf;
 border-color:#bca06d44;
 box-shadow:inset 3px 0 0 var(--gold);
}
html[data-gestion2="live"] .sidebar .sidebar-bottom{border-top:1px solid #ffffff18}
html[data-gestion2="live"] .web-context{
 background:#172720;
 color:#e9eddf;
 border-bottom:1px solid #b99a5d36;
}
html[data-gestion2="live"] .web-context a{color:#e7c982}
html[data-gestion2="live"] .topbar{
 background:#fff;
 border-bottom:1px solid #e7eae4;
}
html[data-gestion2="live"] .page-heading h1{
 font-size:clamp(28px,2.5vw,38px);
 font-weight:400;
 color:#203d30;
 letter-spacing:-.75px;
}
html[data-gestion2="live"] .page-heading .eyebrow{
 color:#9a8150;
 letter-spacing:.17em;
}
html[data-gestion2="live"]:not([data-theme="dark"]) .workspace{
 background:#f4f5f1;
}
html[data-gestion2="live"]:not([data-theme="dark"]) :is(.metric-card,.panel,.month-card,.mini-metric-grid>div){
 background:#fff;
 border-color:#e7eae4;
 box-shadow:0 5px 22px #17272008;
}
html[data-gestion2="live"] .metric-card{
 border-radius:12px;
 padding:clamp(17px,1.6vw,24px);
}
html[data-gestion2="live"] .metric-value{
 font-size:clamp(23px,2.1vw,32px);
 letter-spacing:-1px;
 font-weight:650;
}
html[data-gestion2="live"] :is(.panel,.month-card){border-radius:13px}
html[data-gestion2="live"] .button.primary{
 background:#285f4b;
 border-color:#285f4b;
 border-radius:8px;
}
html[data-gestion2="live"] .button.primary:hover{
 background:#1e4b3b;
 border-color:#1e4b3b;
}
html[data-gestion2="live"] .button:not(.primary),html[data-gestion2="live"] input,html[data-gestion2="live"] select{
 border-radius:8px;
}
html[data-gestion2="live"] .sidebar-profile>span{
 background:#2b3e31;color:#dec48b;
 border-color:#dec48b55;
}
html[data-gestion2="live"] .gestion2-version-nav{
 position:fixed;
 right:18px;
 bottom:18px;
 z-index:65;
 display:flex;
 align-items:center;
 gap:12px;
 background:#15241c;
 color:#f4ebd5;
 border:1px solid #c0a36e88;
 box-shadow:0 8px 28px #0003;
 border-radius:12px;
 padding:10px 13px;
 font:11px/1.35 Inter,"Segoe UI",Arial,sans-serif;
}
html[data-gestion2="live"] .gestion2-version-nav strong{
 color:#d8bd86;
 letter-spacing:.13em;
 font-size:10px;
}
html[data-gestion2="live"] .gestion2-version-nav a{
 color:#f3ead9;
 text-decoration:underline;
 text-underline-offset:3px;
}
html[data-gestion2="live"] .gestion2-version-nav a:hover{color:#f0c779}
html[data-gestion2="live"] .gestion2-version-nav a:focus-visible{
 outline:3px solid #e7cb96;outline-offset:4px;
}
@media(min-width:1100px){
 html[data-gestion2="live"] .sidebar{width:257px;padding-left:20px;padding-right:20px}
 html[data-gestion2="live"] .main-shell{margin-left:257px;width:calc(100% - 257px)}
 html[data-gestion2="live"] .workspace{padding-left:clamp(28px,3.6vw,55px);padding-right:clamp(28px,3.6vw,55px)}
}
@media(max-width:700px){
 html[data-gestion2="live"] .gestion2-version-nav{
  bottom:calc(76px + env(safe-area-inset-bottom));
  right:8px;
  padding:8px 10px;
  gap:8px;
  max-width:calc(100vw - 16px);
 }
 html[data-gestion2="live"] .gestion2-version-nav strong{font-size:9px}
 html[data-gestion2="live"] .metric-value{font-size:24px}
}
