/* ============================================================
   MIDNIGHT OS · NEXT GENERATION · COLORES POR MÓDULO (referencia aprobada por Yaki, 26 oct 2026)
   - Negro grafito #080D16, tarjetas oscuras con borde fino, un color fluorescente por módulo, brillo suave en los íconos.
   - Se carga después de mid-azul.css y solo actúa en el modo Next Gen (data-theme=azul). El modo Claro no cambia.
   - SOLO apariencia: no cambia botones, rutas, permisos, datos ni funciones. El dorado queda en el sello de Midnight.
   ============================================================ */
html[data-theme=azul]{
  --mb-ink:#080D16;--mb-graphite:#0E1522;--mb-smoke:#172131;--mb-s1:#0B111C;--mb-s2:#101826;--mb-s3:#152033;
  --mb-gold:#248CFF;--mb-gold-hi:#6DB6FF;--mb-gold-lo:#1667D9;--mb-champ:#D6DEEC;--mb-white:#F2F5FA;
  --mb-mute:rgba(214,222,236,.66);--mb-mute2:rgba(214,222,236,.44);--mb-line:rgba(130,160,210,.14);--mb-line2:rgba(130,160,210,.28);
  --mb-panel:linear-gradient(180deg,rgba(20,28,42,.84),rgba(10,15,24,.94));
  --mb-ok:#00D96A;--mb-warn:#FFC947;--mb-bad:#FF465C;--mb-info:#00C8FF;
  --az-glow:0 0 0 1px rgba(130,160,210,.16),0 10px 30px -16px rgba(36,140,255,.35);
  --c-home:#248CFF;--c-biz:#19E879;--c-ops:#FF792E;--c-fin:#00D96A;--c-mkt:#C14BFF;--c-docs:#00C8FF;--c-usr:#00D9D9;--c-ai:#7445FF;--c-sec:#FF465C;--c-cfg:#FF8A45;--c-me:#8FA3FF;
  background:radial-gradient(45% 35% at 80% 0%,rgba(36,140,255,.10),transparent 70%),radial-gradient(35% 30% at 0% 100%,rgba(193,75,255,.06),transparent 70%),#080D16 fixed;
}
html[data-theme=azul] body::before{opacity:.22}

/* un color por módulo (mandos, franja de arriba, ventana abierta y barra del teléfono) */
html[data-theme=azul] [data-g=home],html[data-theme=azul] [data-g=""]{--mc:var(--c-home)}
html[data-theme=azul] [data-g=biz]{--mc:var(--c-biz)}
html[data-theme=azul] [data-g=ops]{--mc:var(--c-ops)}
html[data-theme=azul] [data-g=fin]{--mc:var(--c-fin)}
html[data-theme=azul] [data-g=mkt]{--mc:var(--c-mkt)}
html[data-theme=azul] [data-g=docs]{--mc:var(--c-docs)}
html[data-theme=azul] [data-g=usr]{--mc:var(--c-usr)}
html[data-theme=azul] [data-g=ai]{--mc:var(--c-ai)}
html[data-theme=azul] [data-g=sec]{--mc:var(--c-sec)}
html[data-theme=azul] [data-g=cfg]{--mc:var(--c-cfg)}
html[data-theme=azul] [data-g=me]{--mc:var(--c-me)}
/* dentro de una empresa los grupos son los del menú del dueño: mismos colores en orden */
html[data-theme=azul] [data-g=h0]{--mc:var(--c-home)}html[data-theme=azul] [data-g=h1]{--mc:var(--c-biz)}html[data-theme=azul] [data-g=h2]{--mc:var(--c-ops)}
html[data-theme=azul] [data-g=h3]{--mc:var(--c-fin)}html[data-theme=azul] [data-g=h4]{--mc:var(--c-mkt)}html[data-theme=azul] [data-g=h5]{--mc:var(--c-docs)}
html[data-theme=azul] [data-g=h6]{--mc:var(--c-usr)}html[data-theme=azul] [data-g=h7]{--mc:var(--c-ai)}html[data-theme=azul] [data-g=h8]{--mc:var(--c-sec)}
html[data-theme=azul] [data-g=h9]{--mc:var(--c-cfg)}html[data-theme=azul] [data-g=h10]{--mc:var(--c-me)}
html[data-theme=azul] .mlx-b[data-v=newbiz],html[data-theme=azul] .mlx-b[href="next.html"]{--mc:var(--c-home)}

/* ===== MANDOS: tarjetas horizontales (ícono iluminado, nombre, descripción, flecha) ===== */
html[data-theme=azul] .mlx-cmd,html[data-theme=azul] .mlx-s3{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
@media(max-width:1250px){html[data-theme=azul] .mlx-cmd,html[data-theme=azul] .mlx-s3{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b{--mc0:var(--mc,var(--c-home));flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:16px;min-height:88px;padding:16px 40px 16px 18px;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--mc0) 26%,transparent);
  background:linear-gradient(120deg,color-mix(in srgb,var(--mc0) 13%,transparent),transparent 58%),linear-gradient(180deg,rgba(20,28,42,.86),rgba(10,15,24,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-4px;border-top:2px solid rgba(214,222,236,.55);border-right:2px solid rgba(214,222,236,.55);transform:rotate(45deg);transition:transform .22s,border-color .22s}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b:hover,html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b:focus-visible{transform:translateY(-3px);border-color:color-mix(in srgb,var(--mc0) 60%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--mc0) 35%,transparent),0 16px 36px -16px color-mix(in srgb,var(--mc0) 70%,transparent)}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b:hover::after{transform:translateX(3px) rotate(45deg);border-color:var(--mc0)}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:46px;height:46px;flex:none;border:0;border-radius:12px;color:var(--mc0);
  background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--mc0) 22%,transparent),transparent 72%)}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:28px;height:28px;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--mc0) 80%,transparent))}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t{font:600 13.5px/1.25 Jost,system-ui,sans-serif;letter-spacing:.08em;color:#fff}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:12px;letter-spacing:.01em;color:var(--mb-mute);margin-top:5px}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-n{top:8px;right:8px;background:var(--c-sec)}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-c.cur .mlx-b{border-color:var(--mc0);box-shadow:0 0 0 1px var(--mc0),0 16px 36px -18px var(--mc0)}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-c.add .mlx-b{border-style:dashed}
@media(max-width:560px){
  html[data-theme=azul] .mlx-cmd{grid-template-columns:1fr;gap:8px}
  html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b{min-height:64px;gap:12px;padding:10px 34px 10px 12px}
  html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:38px;height:38px}html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:24px;height:24px}
  html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t{font-size:12.5px;letter-spacing:.06em}html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:11.5px;margin-top:3px}
  html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-n{top:50%;right:30px;margin-top:-11px}
}
/* tarjetas de módulos (ventana abierta, favoritos, recientes): ícono con el color de su sección */
html[data-theme=azul] .mlx-panel{--mc0:var(--mc,var(--c-home));border-color:color-mix(in srgb,var(--mc0) 30%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--mc0) 7%,transparent),transparent 50%),var(--mb-panel)}
html[data-theme=azul] .mlx-ph h3{color:var(--mc0,var(--c-home))}
html[data-theme=azul] .mlx-panel .mlx-i{color:var(--mc0);border-color:color-mix(in srgb,var(--mc0) 40%,transparent);box-shadow:0 0 16px -4px color-mix(in srgb,var(--mc0) 60%,transparent)}
html[data-theme=azul] .mlx-b{border-radius:14px}
html[data-theme=azul] .mlx-b:hover{transform:translateY(-2px)}

/* tarjetas de módulos (ventana abierta, favoritos, recientes, búsqueda): horizontales y pequeñas, ícono con el color de su sección */
html[data-theme=azul] .mlx-c:not(.sec){--mc1:var(--mc,var(--mc0,var(--c-home)))}
html[data-theme=azul] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-b,html[data-theme=azul] .mlx-row .mlx-b{flex-direction:row;justify-content:flex-start;text-align:left;gap:12px;min-height:62px;padding:12px 34px 12px 14px;border-radius:12px;
  border:1px solid color-mix(in srgb,var(--mc1) 20%,rgba(130,160,210,.14));background:linear-gradient(120deg,color-mix(in srgb,var(--mc1) 8%,transparent),transparent 55%),#0F1726}
html[data-theme=azul] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-i,html[data-theme=azul] .mlx-row .mlx-i{width:34px;height:34px;flex:none;border:0;border-radius:10px;color:var(--mc1);background:color-mix(in srgb,var(--mc1) 14%,transparent);box-shadow:none}
html[data-theme=azul] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-i svg,html[data-theme=azul] .mlx-row .mlx-i svg{width:19px;height:19px}
html[data-theme=azul] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-t,html[data-theme=azul] .mlx-row .mlx-t{font:500 13px/1.25 Jost,system-ui,sans-serif;letter-spacing:.02em;text-transform:none;color:#F2F5FA}
html[data-theme=azul] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-b:hover,html[data-theme=azul] .mlx-row .mlx-b:hover{border-color:color-mix(in srgb,var(--mc1) 55%,transparent);box-shadow:0 12px 28px -16px color-mix(in srgb,var(--mc1) 70%,transparent)}
html[data-theme=azul] .mlx-c.cur:not(.sec) .mlx-b{border-color:var(--mc1);box-shadow:0 0 0 1px var(--mc1)}
@media(max-width:560px){html[data-theme=azul] .mlx-row .mlx-c{flex:0 0 min(78%,260px)}}

/* ===== FRANJA DE ARRIBA EN CADA MÓDULO: menú horizontal con íconos de colores y línea luminosa en el activo ===== */
html[data-theme=azul] #mlx-strip{--mc0:var(--mc,var(--c-home))}
html[data-theme=azul] .mlx-s1{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:0 2px;border-bottom:1px solid var(--mb-line)}
html[data-theme=azul] .mlx-sb{--sc:var(--mc,var(--c-home));flex:0 0 auto;flex-direction:row;min-height:44px;gap:7px;padding:10px 8px;border:0;border-radius:0;background:none!important;box-shadow:none!important;transform:none!important;
  font:600 11px/1 Jost,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:rgba(214,222,236,.82)}
html[data-theme=azul] .mlx-sb i{width:auto;height:auto;background:none!important;box-shadow:none!important;color:var(--sc)}
html[data-theme=azul] .mlx-sb i svg{width:18px;height:18px}
html[data-theme=azul] .mlx-sb::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:transparent}
html[data-theme=azul] .mlx-sb:hover{color:#fff}
html[data-theme=azul] .mlx-sb.on{color:#fff}
html[data-theme=azul] .mlx-sb.on::after{background:var(--sc);box-shadow:0 0 10px var(--sc)}
html[data-theme=azul] .mlx-sb.on i svg{filter:drop-shadow(0 0 6px var(--sc))}
html[data-theme=azul] .mlx-sb b{position:static;margin-left:2px}
/* accesos rápidos (submódulos): pequeños, fondo azul grisáceo, ícono de color; solo el elegido brilla */
html[data-theme=azul] .mlx-s2{background:rgba(12,18,30,.7);border-color:var(--mb-line);border-radius:14px;gap:8px}
html[data-theme=azul] .mlx-w{padding:7px 12px;border-radius:9px;background:#121B2B;border:1px solid rgba(130,160,210,.16);color:#F2F5FA;font-size:12.5px}
html[data-theme=azul] .mlx-w::before{background:var(--mc0);box-shadow:none}
html[data-theme=azul] .mlx-w:hover{background:#18233A;border-color:rgba(130,160,210,.3)}
html[data-theme=azul] .mlx-w.on{border-color:color-mix(in srgb,var(--mc0) 70%,transparent);background:color-mix(in srgb,var(--mc0) 14%,#121B2B);box-shadow:0 0 14px -4px var(--mc0)}
html[data-theme=azul] .mlx-w.on::before{box-shadow:0 0 8px var(--mc0)}
html[data-theme=azul] .mlx-tg:hover{border-color:var(--mc0)}
/* barra fija del teléfono */
html[data-theme=azul] #mlx-bar button{--sc:var(--mc,var(--c-home))}
html[data-theme=azul] #mlx-bar button[data-v=nano]{--sc:var(--c-ai)}html[data-theme=azul] #mlx-bar button[data-v=nmc]{--sc:var(--c-sec)}
html[data-theme=azul] #mlx-bar button svg{color:var(--sc)}
html[data-theme=azul] #mlx-bar button.on{color:#fff;box-shadow:inset 0 2px 0 var(--sc)}

/* ===== BOTONES GENERALES, CAMPOS Y TARJETAS DE DATOS ===== */
html[data-theme=azul] body .btn.solid{background:linear-gradient(180deg,#3A9BFF,#1A78E8)!important;border-color:rgba(109,182,255,.6)!important;color:#fff!important}
html[data-theme=azul] body input,html[data-theme=azul] body select,html[data-theme=azul] body textarea{background:#0D1421;border-color:rgba(130,160,210,.2)}
html[data-theme=azul] body input:focus,html[data-theme=azul] body select:focus,html[data-theme=azul] body textarea:focus{border-color:#248CFF;box-shadow:0 0 0 3px rgba(36,140,255,.18)}
html[data-theme=azul] body .card,html[data-theme=azul] body .kpi,html[data-theme=azul] body .stat{border-color:var(--mb-line)}
/* cifras: cada tarjeta toma el color de lo que mide (lo pone admin/mid-neon.js): rojo pérdidas, amarillo atención, verde ganancias, violeta marketing, naranja costos, azul actividad */
html[data-theme=azul] body .kpi{border-color:color-mix(in srgb,var(--kc,#248CFF) 28%,transparent)!important;background:linear-gradient(140deg,color-mix(in srgb,var(--kc,#248CFF) 10%,transparent),transparent 58%),linear-gradient(180deg,rgba(20,28,42,.82),rgba(10,15,24,.92))!important}
html[data-theme=azul] body .kpi::before{background:linear-gradient(130deg,color-mix(in srgb,var(--kc,#248CFF) 70%,transparent),transparent 42%)!important;opacity:.8!important}
html[data-theme=azul] body .kpi small{color:color-mix(in srgb,var(--kc,#248CFF) 45%,#C8D1E0)}
/* menú lateral (paneles de clientes y vistas con menú): ícono con el color de su sección, línea luminosa en el activo */
html[data-theme=azul] .side h4{color:color-mix(in srgb,var(--mc,#93A0B8) 65%,#93A0B8)}
html[data-theme=azul] body .nv i{color:var(--mc,#248CFF)}
html[data-theme=azul] body .nv.on{background:linear-gradient(90deg,color-mix(in srgb,var(--mc,#248CFF) 20%,transparent),transparent 80%)!important;box-shadow:inset 3px 0 0 var(--mc,#248CFF)!important;color:#fff}
html[data-theme=azul] body .nv.on i{filter:drop-shadow(0 0 6px var(--mc,#248CFF))}
/* paneles de clientes (Next Gen del dueño): misma base negro grafito y azul eléctrico */
html.ngo[data-theme=azul]:root{--ng-bg:#080D16;--ng-s1:rgba(16,23,36,.8);--ng-ln:rgba(130,160,210,.13);--ng-ln2:rgba(130,160,210,.26);--ng-tx:#F2F5FA;--ng-mu:#93A0B8;--ng-mu2:#69758C;--ng-ac:#248CFF;--ng-ac2:#6DB6FF;--ng-ok:#00D96A;--ng-bad:#FF465C}

/* ===== EN CADA MÓDULO (como la referencia): menú de arriba + tarjetas de los mandos + accesos rápidos ===== */
html[data-theme=azul] #mlx-strip{display:grid;gap:12px;margin-bottom:14px}
html[data-theme=azul] #mlx-strip.home{margin-bottom:4px}
html[data-theme=azul] .mlx-s3{margin-top:2px}
html[data-theme=azul] .mlx-s3 .mlx-b{min-height:80px;padding:14px 36px 14px 16px;gap:14px}
html[data-theme=azul] .mlx-s3 .mlx-t{font-size:12.5px}html[data-theme=azul] .mlx-s3 .mlx-t small{font-size:11.5px}
html[data-theme=azul] .mlx-s3 .mlx-c.on .mlx-b{border-color:var(--mc0);box-shadow:0 0 0 1px var(--mc0),0 0 26px -6px color-mix(in srgb,var(--mc0) 70%,transparent);transform:translateY(-2px)}
html[data-theme=azul] .mlx-s2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px}
html[data-theme=azul] .mlx-qa{display:inline-flex;align-items:center;gap:8px;margin-right:6px;font:600 11.5px/1 Jost,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#fff}
html[data-theme=azul] .mlx-qa svg{width:17px;height:17px;color:#FFC947;filter:drop-shadow(0 0 6px rgba(255,201,71,.7))}
html[data-theme=azul] .mlx-w::before{display:none!important}
html[data-theme=azul] .mlx-w i{display:inline-flex!important;width:16px;height:16px;align-items:center;justify-content:center;color:var(--wc,#248CFF)}
html[data-theme=azul] .mlx-w i svg{width:15px;height:15px}
html[data-theme=azul] .mlx-w.on{border-color:color-mix(in srgb,var(--wc,#248CFF) 70%,transparent);background:color-mix(in srgb,var(--wc,#248CFF) 14%,#121B2B);box-shadow:0 0 14px -4px var(--wc,#248CFF)}
@media(max-width:760px){
  html[data-theme=azul] .mlx-s3{display:flex;overflow-x:auto;scrollbar-width:none;gap:10px;padding-bottom:2px}
  html[data-theme=azul] .mlx-s3::-webkit-scrollbar{display:none}
  html[data-theme=azul] .mlx-s3 .mlx-c{flex:0 0 210px}
  html[data-theme=azul] .mlx-s2{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  html[data-theme=azul] .mlx-w{flex:0 0 auto}
}


/* nombres completos sin cortar palabras (como la referencia) */
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t{overflow-wrap:normal;word-break:normal;hyphens:none;letter-spacing:.04em;font-size:12.5px}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b{padding-right:30px;gap:12px}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-b::after{right:14px}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:42px;height:42px}
html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:30px;height:30px}
@media(min-width:1251px) and (max-width:1500px){html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t{font-size:11.5px;letter-spacing:.03em}html[data-theme=azul] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:11px}}

/* ===== MODO CLARO NEXT GEN (pedido de Yaki, 26 oct 2026): la misma tabla de colores por módulo y los mismos botones, con fondo claro.
   Copia del diseño oscuro con fondos blancos, texto oscuro y tonos de cada módulo un poco más profundos para que se lean sobre blanco. ===== */
html[data-theme=light]{
  --c-home:#1A73E8;--c-biz:#0FA958;--c-ops:#E8620F;--c-fin:#00A653;--c-mkt:#A333E0;--c-docs:#0096C7;--c-usr:#00A3A3;--c-ai:#5B33E0;--c-sec:#E52E46;--c-cfg:#E8701F;--c-me:#5C6FE0;
  --mb-ink:#F4F6FB;--mb-gold:#1A73E8;--mb-gold-hi:#1A73E8;--mb-gold-lo:#1259B8;--mb-line:rgba(40,60,110,.13);--mb-line2:rgba(40,60,110,.24);
  --mb-panel:linear-gradient(180deg,#FFFFFF,#F8FAFD);--mb-mute:rgba(30,40,60,.62);--mb-mute2:rgba(30,40,60,.44);
  background:radial-gradient(45% 35% at 80% 0%,rgba(26,115,232,.07),transparent 70%),radial-gradient(35% 30% at 0% 100%,rgba(163,51,224,.05),transparent 70%),#F4F6FB fixed}
html[data-theme=light] body .mlx-b,html[data-theme=light] .mlx-sb,html[data-theme=light] .mlx-w{box-shadow:0 1px 2px rgba(15,23,42,.05)}

html[data-theme=light] body::before{opacity:.22}
html[data-theme=light] [data-g=home],html[data-theme=light] [data-g=""]{--mc:var(--c-home)}
html[data-theme=light] [data-g=biz]{--mc:var(--c-biz)}
html[data-theme=light] [data-g=ops]{--mc:var(--c-ops)}
html[data-theme=light] [data-g=fin]{--mc:var(--c-fin)}
html[data-theme=light] [data-g=mkt]{--mc:var(--c-mkt)}
html[data-theme=light] [data-g=docs]{--mc:var(--c-docs)}
html[data-theme=light] [data-g=usr]{--mc:var(--c-usr)}
html[data-theme=light] [data-g=ai]{--mc:var(--c-ai)}
html[data-theme=light] [data-g=sec]{--mc:var(--c-sec)}
html[data-theme=light] [data-g=cfg]{--mc:var(--c-cfg)}
html[data-theme=light] [data-g=me]{--mc:var(--c-me)}
html[data-theme=light] [data-g=h0]{--mc:var(--c-home)}html[data-theme=light] [data-g=h1]{--mc:var(--c-biz)}html[data-theme=light] [data-g=h2]{--mc:var(--c-ops)}
html[data-theme=light] [data-g=h3]{--mc:var(--c-fin)}html[data-theme=light] [data-g=h4]{--mc:var(--c-mkt)}html[data-theme=light] [data-g=h5]{--mc:var(--c-docs)}
html[data-theme=light] [data-g=h6]{--mc:var(--c-usr)}html[data-theme=light] [data-g=h7]{--mc:var(--c-ai)}html[data-theme=light] [data-g=h8]{--mc:var(--c-sec)}
html[data-theme=light] [data-g=h9]{--mc:var(--c-cfg)}html[data-theme=light] [data-g=h10]{--mc:var(--c-me)}
html[data-theme=light] .mlx-b[data-v=newbiz],html[data-theme=light] .mlx-b[href="next.html"]{--mc:var(--c-home)}
html[data-theme=light] .mlx-cmd,html[data-theme=light] .mlx-s3{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
@media(max-width:1250px){html[data-theme=light] .mlx-cmd,html[data-theme=light] .mlx-s3{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b{--mc0:var(--mc,var(--c-home));flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:16px;min-height:88px;padding:16px 40px 16px 18px;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--mc0) 26%,transparent);
  background:linear-gradient(120deg,color-mix(in srgb,var(--mc0) 13%,transparent),transparent 58%),linear-gradient(180deg,rgba(255,255,255,.86),rgba(250,251,254,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-4px;border-top:2px solid rgba(30,40,60,.55);border-right:2px solid rgba(30,40,60,.55);transform:rotate(45deg);transition:transform .22s,border-color .22s}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b:hover,html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b:focus-visible{transform:translateY(-3px);border-color:color-mix(in srgb,var(--mc0) 60%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--mc0) 35%,transparent),0 16px 36px -16px color-mix(in srgb,var(--mc0) 70%,transparent)}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b:hover::after{transform:translateX(3px) rotate(45deg);border-color:var(--mc0)}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:46px;height:46px;flex:none;border:0;border-radius:12px;color:var(--mc0);
  background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--mc0) 22%,transparent),transparent 72%)}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:28px;height:28px;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--mc0) 80%,transparent))}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t{font:600 13.5px/1.25 Jost,system-ui,sans-serif;letter-spacing:.08em;color:#0E1726}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:12px;letter-spacing:.01em;color:var(--mb-mute);margin-top:5px}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-n{top:8px;right:8px;background:var(--c-sec)}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-c.cur .mlx-b{border-color:var(--mc0);box-shadow:0 0 0 1px var(--mc0),0 16px 36px -18px var(--mc0)}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-c.add .mlx-b{border-style:dashed}
@media(max-width:560px){
  html[data-theme=light] .mlx-cmd{grid-template-columns:1fr;gap:8px}
  html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b{min-height:64px;gap:12px;padding:10px 34px 10px 12px}
  html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:38px;height:38px}html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:24px;height:24px}
  html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t{font-size:12.5px;letter-spacing:.06em}html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:11.5px;margin-top:3px}
  html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-n{top:50%;right:30px;margin-top:-11px}
}
html[data-theme=light] .mlx-panel{--mc0:var(--mc,var(--c-home));border-color:color-mix(in srgb,var(--mc0) 30%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--mc0) 7%,transparent),transparent 50%),var(--mb-panel)}
html[data-theme=light] .mlx-ph h3{color:var(--mc0,var(--c-home))}
html[data-theme=light] .mlx-panel .mlx-i{color:var(--mc0);border-color:color-mix(in srgb,var(--mc0) 40%,transparent);box-shadow:0 0 16px -4px color-mix(in srgb,var(--mc0) 60%,transparent)}
html[data-theme=light] .mlx-b{border-radius:14px}
html[data-theme=light] .mlx-b:hover{transform:translateY(-2px)}
html[data-theme=light] .mlx-c:not(.sec){--mc1:var(--mc,var(--mc0,var(--c-home)))}
html[data-theme=light] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-b,html[data-theme=light] .mlx-row .mlx-b{flex-direction:row;justify-content:flex-start;text-align:left;gap:12px;min-height:62px;padding:12px 34px 12px 14px;border-radius:12px;
  border:1px solid color-mix(in srgb,var(--mc1) 20%,rgba(40,60,110,0.126));background:linear-gradient(120deg,color-mix(in srgb,var(--mc1) 8%,transparent),transparent 55%),#FFFFFF}
html[data-theme=light] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-i,html[data-theme=light] .mlx-row .mlx-i{width:34px;height:34px;flex:none;border:0;border-radius:10px;color:var(--mc1);background:color-mix(in srgb,var(--mc1) 14%,transparent);box-shadow:none}
html[data-theme=light] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-i svg,html[data-theme=light] .mlx-row .mlx-i svg{width:19px;height:19px}
html[data-theme=light] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-t,html[data-theme=light] .mlx-row .mlx-t{font:500 13px/1.25 Jost,system-ui,sans-serif;letter-spacing:.02em;text-transform:none;color:#0E1726}
html[data-theme=light] .mlx-grid:not(.mlx-cmd) .mlx-c:not(.sec) .mlx-b:hover,html[data-theme=light] .mlx-row .mlx-b:hover{border-color:color-mix(in srgb,var(--mc1) 55%,transparent);box-shadow:0 12px 28px -16px color-mix(in srgb,var(--mc1) 70%,transparent)}
html[data-theme=light] .mlx-c.cur:not(.sec) .mlx-b{border-color:var(--mc1);box-shadow:0 0 0 1px var(--mc1)}
@media(max-width:560px){html[data-theme=light] .mlx-row .mlx-c{flex:0 0 min(78%,260px)}}
html[data-theme=light] #mlx-strip{--mc0:var(--mc,var(--c-home))}
html[data-theme=light] .mlx-s1{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:0 2px;border-bottom:1px solid var(--mb-line)}
html[data-theme=light] .mlx-sb{--sc:var(--mc,var(--c-home));flex:0 0 auto;flex-direction:row;min-height:44px;gap:7px;padding:10px 8px;border:0;border-radius:0;background:none!important;box-shadow:none!important;transform:none!important;
  font:600 11px/1 Jost,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:rgba(30,40,60,.82)}
html[data-theme=light] .mlx-sb i{width:auto;height:auto;background:none!important;box-shadow:none!important;color:var(--sc)}
html[data-theme=light] .mlx-sb i svg{width:18px;height:18px}
html[data-theme=light] .mlx-sb::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:transparent}
html[data-theme=light] .mlx-sb:hover{color:#0E1726}
html[data-theme=light] .mlx-sb.on{color:#0E1726}
html[data-theme=light] .mlx-sb.on::after{background:var(--sc);box-shadow:0 0 10px var(--sc)}
html[data-theme=light] .mlx-sb.on i svg{filter:drop-shadow(0 0 6px var(--sc))}
html[data-theme=light] .mlx-sb b{position:static;margin-left:2px}
html[data-theme=light] .mlx-s2{background:rgba(250,251,254,.7);border-color:var(--mb-line);border-radius:14px;gap:8px}
html[data-theme=light] .mlx-w{padding:7px 12px;border-radius:9px;background:#FFFFFF;border:1px solid rgba(40,60,110,0.144);color:#0E1726;font-size:12.5px}
html[data-theme=light] .mlx-w::before{background:var(--mc0);box-shadow:none}
html[data-theme=light] .mlx-w:hover{background:#F1F5FB;border-color:rgba(40,60,110,0.27)}
html[data-theme=light] .mlx-w.on{border-color:color-mix(in srgb,var(--mc0) 70%,transparent);background:color-mix(in srgb,var(--mc0) 14%,#FFFFFF);box-shadow:0 0 14px -4px var(--mc0)}
html[data-theme=light] .mlx-w.on::before{box-shadow:0 0 8px var(--mc0)}
html[data-theme=light] .mlx-tg:hover{border-color:var(--mc0)}
html[data-theme=light] #mlx-bar button{--sc:var(--mc,var(--c-home))}
html[data-theme=light] #mlx-bar button[data-v=nano]{--sc:var(--c-ai)}html[data-theme=light] #mlx-bar button[data-v=nmc]{--sc:var(--c-sec)}
html[data-theme=light] #mlx-bar button svg{color:var(--sc)}
html[data-theme=light] #mlx-bar button.on{color:#0E1726;box-shadow:inset 0 2px 0 var(--sc)}
html[data-theme=light] body .btn.solid{background:linear-gradient(180deg,#3A9BFF,#1A78E8)!important;border-color:rgba(109,182,255,.6)!important;color:#0E1726!important}
html[data-theme=light] body input,html[data-theme=light] body select,html[data-theme=light] body textarea{background:#FFFFFF;border-color:rgba(40,60,110,0.18)}
html[data-theme=light] body input:focus,html[data-theme=light] body select:focus,html[data-theme=light] body textarea:focus{border-color:#248CFF;box-shadow:0 0 0 3px rgba(36,140,255,.18)}
html[data-theme=light] body .card,html[data-theme=light] body .kpi,html[data-theme=light] body .stat{border-color:var(--mb-line)}
html[data-theme=light] body .kpi{border-color:color-mix(in srgb,var(--kc,#248CFF) 28%,transparent)!important;background:linear-gradient(140deg,color-mix(in srgb,var(--kc,#248CFF) 10%,transparent),transparent 58%),linear-gradient(180deg,rgba(255,255,255,.82),rgba(250,251,254,.92))!important}
html[data-theme=light] body .kpi::before{background:linear-gradient(130deg,color-mix(in srgb,var(--kc,#248CFF) 70%,transparent),transparent 42%)!important;opacity:.8!important}
html[data-theme=light] body .kpi small{color:color-mix(in srgb,var(--kc,#248CFF) 45%,#3D4A60)}
html[data-theme=light] .side h4{color:color-mix(in srgb,var(--mc,#5A6478) 65%,#5A6478)}
html[data-theme=light] body .nv i{color:var(--mc,#248CFF)}
html[data-theme=light] body .nv.on{background:linear-gradient(90deg,color-mix(in srgb,var(--mc,#248CFF) 20%,transparent),transparent 80%)!important;box-shadow:inset 3px 0 0 var(--mc,#248CFF)!important;color:#0E1726}
html[data-theme=light] body .nv.on i{filter:drop-shadow(0 0 6px var(--mc,#248CFF))}
html[data-theme=light] #mlx-strip{display:grid;gap:12px;margin-bottom:14px}
html[data-theme=light] #mlx-strip.home{margin-bottom:4px}
html[data-theme=light] .mlx-s3{margin-top:2px}
html[data-theme=light] .mlx-s3 .mlx-b{min-height:80px;padding:14px 36px 14px 16px;gap:14px}
html[data-theme=light] .mlx-s3 .mlx-t{font-size:12.5px}html[data-theme=light] .mlx-s3 .mlx-t small{font-size:11.5px}
html[data-theme=light] .mlx-s3 .mlx-c.on .mlx-b{border-color:var(--mc0);box-shadow:0 0 0 1px var(--mc0),0 0 26px -6px color-mix(in srgb,var(--mc0) 70%,transparent);transform:translateY(-2px)}
html[data-theme=light] .mlx-s2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px}
html[data-theme=light] .mlx-qa{display:inline-flex;align-items:center;gap:8px;margin-right:6px;font:600 11.5px/1 Jost,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#0E1726}
html[data-theme=light] .mlx-qa svg{width:17px;height:17px;color:#FFC947;filter:drop-shadow(0 0 6px rgba(255,201,71,.7))}
html[data-theme=light] .mlx-w::before{display:none!important}
html[data-theme=light] .mlx-w i{display:inline-flex!important;width:16px;height:16px;align-items:center;justify-content:center;color:var(--wc,#248CFF)}
html[data-theme=light] .mlx-w i svg{width:15px;height:15px}
html[data-theme=light] .mlx-w.on{border-color:color-mix(in srgb,var(--wc,#248CFF) 70%,transparent);background:color-mix(in srgb,var(--wc,#248CFF) 14%,#FFFFFF);box-shadow:0 0 14px -4px var(--wc,#248CFF)}
@media(max-width:760px){
  html[data-theme=light] .mlx-s3{display:flex;overflow-x:auto;scrollbar-width:none;gap:10px;padding-bottom:2px}
  html[data-theme=light] .mlx-s3::-webkit-scrollbar{display:none}
  html[data-theme=light] .mlx-s3 .mlx-c{flex:0 0 210px}
  html[data-theme=light] .mlx-s2{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  html[data-theme=light] .mlx-w{flex:0 0 auto}
}

html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t{overflow-wrap:normal;word-break:normal;hyphens:none;letter-spacing:.04em;font-size:12.5px}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b{padding-right:30px;gap:12px}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-b::after{right:14px}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i{width:42px;height:42px}
html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-i svg{width:30px;height:30px}
@media(min-width:1251px) and (max-width:1500px){html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t{font-size:11.5px;letter-spacing:.03em}html[data-theme=light] :is(.mlx-cmd,.mlx-s3) .mlx-t small{font-size:11px}}
html[data-theme=light] .mlx-sb b,html[data-theme=light] .mlx-w b,html[data-theme=light] .mlx-n{color:#fff!important;background:#E52E46!important}

/* 178 · BOTONES COMPACTOS (pedido de Yaki, 27 oct 2026): menos espacio arriba, mandos en 2 filas, accesos en columnas ordenadas */
html.mlx-on .main>.ctx{margin-bottom:8px;padding:6px 8px}
html.mlx-on #mlx-strip{gap:8px;padding-top:4px;padding-bottom:10px;margin-bottom:8px}
html.mlx-on #mlx-strip .mlx-s1 .mlx-sb{min-height:34px;padding:6px 8px;font-size:11px}
html.mlx-on #mlx-strip .mlx-s1 .mlx-sb i svg{width:15px;height:15px}
@media(min-width:761px){
  html.mlx-on #mlx-strip .mlx-s3{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:0}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-b{min-height:46px;padding:7px 24px 7px 9px;gap:9px;border-radius:11px}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-b::after{right:10px;width:6px;height:6px;margin-top:-3px}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-i{width:28px;height:28px;border-radius:8px}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-i svg{width:18px;height:18px}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-t{font-size:11px;letter-spacing:.04em;line-height:1.2}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-t small{display:none}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-n{top:-6px;right:-4px;margin:0}
  html.mlx-on #mlx-strip .mlx-s3 .mlx-c.on .mlx-b{transform:none}
  html.mlx-on #mlx-strip .mlx-s2{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px;padding:8px 10px}
  html.mlx-on #mlx-strip .mlx-s2 .mlx-qa{grid-column:1/-1;margin:0 0 2px}
  html.mlx-on #mlx-strip .mlx-w{min-width:0;justify-content:flex-start;padding:5px 9px;font-size:12px;border-radius:8px}
  html.mlx-on #mlx-strip .mlx-w span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.mlx-on #mlx-strip .mlx-w b{margin-left:auto}
}
/* accesos agrupados por tema */
html.mlx-on #mlx-strip .mlx-sg{grid-column:1/-1;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:start;gap:10px;padding:5px 0;border-top:1px solid var(--mb-line,rgba(120,170,255,.14))}
html.mlx-on #mlx-strip .mlx-sg em{font:600 10.5px/1.2 Jost,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;font-style:normal;color:var(--mb-mute,#8d9ab6);padding-top:8px}
html.mlx-on #mlx-strip .mlx-sgw{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}
@media(max-width:760px){
  html.mlx-on #mlx-strip .mlx-s2:has(.mlx-sg){display:block;overflow:visible}
  html.mlx-on #mlx-strip .mlx-sg{display:block;padding:6px 0}
  html.mlx-on #mlx-strip .mlx-sg em{display:block;padding:0 0 6px}
  html.mlx-on #mlx-strip .mlx-sgw{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
  html.mlx-on #mlx-strip .mlx-sgw::-webkit-scrollbar{display:none}
  html.mlx-on #mlx-strip .mlx-sgw .mlx-w{flex:0 0 auto}
}
@media(min-width:761px){html.mlx-on #mlx-strip .mlx-sg{grid-template-columns:118px minmax(0,1fr);padding:4px 0;gap:8px}html.mlx-on #mlx-strip .mlx-sg em{font-size:10px;padding-top:6px}html.mlx-on #mlx-strip .mlx-sgw{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:5px}html.mlx-on #mlx-strip .mlx-sgw .mlx-w{padding:4px 8px;font-size:11.5px}}
@media(min-width:1000px){html.mlx-on #mlx-strip .mlx-s3{grid-template-columns:repeat(5,minmax(0,1fr))}}
