/* AppNaía V36.5 · Light / Dark / Auto. Estilo, no modifica lógica de negocio.
   Negro profundo (#050505), verde Naía (#C1FF72), morado (#B072FF).
   La piel clara permanece intacta: los cambios se limitan al atributo data-naia-theme=dark.
*/
.naia-theme-card{--naia-theme-lime:#C1FF72;--naia-theme-violet:#B072FF;background:linear-gradient(135deg,#fff 0%,#fcfaff 100%);border:1px solid #eae5f3;border-radius:22px;padding:clamp(15px,2.5vw,24px);margin:5px 0 18px;box-shadow:0 5px 23px rgba(49,31,79,.035);color:#20253a}
.naia-theme-heading{display:flex;gap:13px;align-items:center;margin-bottom:18px}.naia-theme-symbol{height:47px;width:47px;display:grid;place-items:center;flex:none;color:#8952d5;background:#f1e8ff;border-radius:16px}
.naia-theme-heading h3{margin:0;font-size:17px;font-weight:850;font-family:Outfit,Inter,sans-serif}.naia-theme-heading p{font-size:12px;color:#768096;line-height:1.5;margin:4px 0 0}
.naia-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.naia-theme-option{display:flex;flex-direction:column;gap:5px;align-items:flex-start;min-width:0;padding:11px;border:1.5px solid #e9e7ef;border-radius:17px;background:#fff;text-align:left;color:#25263a;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s}
.naia-theme-option:active{transform:scale(.985)}.naia-theme-option[aria-pressed="true"]{border-color:#a873fa;box-shadow:0 0 0 3px rgba(176,114,255,.14)}.naia-theme-option strong{font-size:13px;font-weight:800}.naia-theme-option small{font-size:11px;color:#7e8497;line-height:1.4}.naia-theme-option:focus-visible{outline:3px solid #b072ff;outline-offset:3px}
.naia-theme-preview{width:100%;height:66px;border-radius:12px;display:block;position:relative;overflow:hidden;border:1px solid #e9e7ef;margin-bottom:4px}
.naia-theme-preview i{position:absolute;inset:0 auto 0 0;width:22%;background:rgba(176,114,255,.15);border-right:1px solid #b8a9cd45}.naia-theme-preview b{position:absolute;left:31%;top:25%;width:53%;height:20%;border-radius:5px;background:#d2c0ff}.naia-theme-preview em{position:absolute;left:31%;bottom:22%;width:33%;height:17%;border-radius:4px;background:#c1ff72}
.naia-theme-preview-light{background:#fbfaff}.naia-theme-preview-dark{background:#050505;border-color:#252525}.naia-theme-preview-dark i{background:#121212;border-color:#333}.naia-theme-preview-dark b{background:#b072ff}.naia-theme-preview-auto{background:linear-gradient(105deg,#fbfaff 0 50%,#050505 50%)}
.naia-theme-note{font-size:11px;color:#818b9e;line-height:1.5;margin:13px 0 0}
@media(max-width:540px){.naia-theme-options{gap:7px}.naia-theme-option{padding:8px;border-radius:13px}.naia-theme-preview{height:50px}.naia-theme-option strong{font-size:12px}.naia-theme-option small{font-size:10px}.naia-theme-heading h3{font-size:16px}}

/* ---- Negro Naía: tokens semánticos comunes ---- */
html[data-naia-theme="dark"]{
 color-scheme:dark; --naia-dark-bg:#050505;--naia-dark-surface:#0d0d0f;--naia-dark-raised:#161619;--naia-dark-input:#17171b;--naia-dark-border:#292a2e;--naia-dark-text:#f8f7f4;--naia-dark-muted:#b9b7c3;--naia-dark-purple:#B072FF;--naia-dark-lime:#C1FF72;
 --naia-primary:#B072FF;--naia-primary-rgb:176,114,255;--naia-secondary:#C1FF72;--naia-secondary-rgb:193,255,114;
}
html[data-naia-theme="dark"],html[data-naia-theme="dark"] body{background:#050505!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] body.bg-lightBg,html[data-naia-theme="dark"] main{background:#050505!important}
html[data-naia-theme="dark"] :is(.bg-lightBg,.bg-gray-50,.bg-slate-50,.bg-slate-100,.bg-gray-100,.bg-purple-50,.bg-violet-50){background-color:#17171b!important}
html[data-naia-theme="dark"] :is(.bg-cardBg,.bg-white,.bg-cardBg\/90,.bg-white\/90,.bg-cardBg\/95){background-color:#0e0e10!important}
html[data-naia-theme="dark"] :is(.bg-green-50,.bg-lime-50){background-color:#152216!important}
html[data-naia-theme="dark"] :is(.bg-red-50,.bg-rose-50){background-color:#29151c!important}
html[data-naia-theme="dark"] :is(.bg-yellow-50,.bg-amber-50,.bg-orange-50){background-color:#292112!important}
html[data-naia-theme="dark"] :is(.bg-blue-50,.bg-sky-50){background-color:#141e2a!important}
html[data-naia-theme="dark"] :is(.text-darkText,.text-gray-900,.text-slate-900,.text-gray-800,.text-slate-800,.text-gray-700,.text-slate-700){color:#f8f7f4!important}
html[data-naia-theme="dark"] :is(.text-grayText,.text-gray-600,.text-gray-500,.text-slate-500,.text-slate-600,.text-gray-400,.text-slate-400){color:#b9b7c3!important}
html[data-naia-theme="dark"] :is(.text-accentPurple,.text-purple-600,.text-violet-600){color:#c79aff!important}
html[data-naia-theme="dark"] :is(.text-green-600,.text-green-700){color:#b5fa7a!important}
html[data-naia-theme="dark"] :is(.text-red-500,.text-red-600,.text-red-700){color:#ff8796!important}
html[data-naia-theme="dark"] :is(.text-amber-600,.text-orange-600,.text-yellow-700){color:#f9d49a!important}
html[data-naia-theme="dark"] :is(.border-gray-100,.border-gray-200,.border-slate-100,.border-slate-200,.border-purple-100,.border-purple-200,.border-violet-100){border-color:#2b2b30!important}
html[data-naia-theme="dark"] :is(.border-green-100,.border-lime-200){border-color:#42652d!important}
html[data-naia-theme="dark"] :is(.border-red-100,.border-rose-100){border-color:#6a343d!important}
html[data-naia-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]),select,textarea){color:#f8f7f4;background-color:#18181c;border-color:#34343d;accent-color:#C1FF72}
html[data-naia-theme="dark"] :is(input,select,textarea)::placeholder{color:#a2a0aa!important;opacity:1}
html[data-naia-theme="dark"] :is(input,select,textarea):focus-visible{outline-color:#B072FF}
html[data-naia-theme="dark"] :is(input,select,textarea):disabled{color:#a9a5b3;opacity:.66}
html[data-naia-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:#C1FF72}
html[data-naia-theme="dark"] :is(.bg-neonGreen,button.bg-neonGreen,.naia-report-v3514-apply){background-color:#C1FF72!important;color:#0c1604!important}
html[data-naia-theme="dark"] :is(.bg-neonGreen,.naia-report-v3514-apply) :is(span,b,strong,i,svg){color:#0c1604}
html[data-naia-theme="dark"] :is(.bg-accentPurple,.bg-purple-600){background-color:#8e4bdb!important;color:#fff!important}
html[data-naia-theme="dark"] :is(.text-white,.bg-red-500,.bg-red-600){color:#fff!important}
html[data-naia-theme="dark"] :is(.shadow-sm,.shadow-md,.shadow-lg){--tw-shadow-color:rgba(0,0,0,.3)!important}
/* Barras y paneles (sin modificar disposición ni navegación) */
html[data-naia-theme="dark"] header.sticky,html[data-naia-theme="dark"] nav.fixed{background:rgba(9,9,11,.98)!important;border-color:#2b2b30!important;box-shadow:0 5px 22px #0009!important}
html[data-naia-theme="dark"] nav.fixed button:not(.bg-neonGreen){color:#bcb9cb}
html[data-naia-theme="dark"] nav.fixed button.text-accentPurple{color:#c79aff!important}
html[data-naia-theme="dark"] :is(.brand-soft-card,.naia-total-card,.naia-kpi,.naia-kpi-soft,.naia-kpi-purple,.naia-kpi-green,.naia-kpi-red,.naia-stat-purple,.naia-stat-green,.naia-stat-red){background:linear-gradient(135deg,#101013,#171419)!important;border-color:#2b2b32!important;color:#f8f7f4!important;box-shadow:0 5px 22px rgba(0,0,0,.35)!important}
html[data-naia-theme="dark"] .naia-donut:after{background:#0e0e10;box-shadow:inset 0 0 0 1px #2b2b30}
html[data-naia-theme="dark"] .naia-bar-track{background:#27272d}
html[data-naia-theme="dark"] :is(.naia-type-visual,.naia-config-details,.naia-accordion-head,.naia-accordion-body){background:#111114!important;border-color:#323238!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] .naia-type-visual strong,html[data-naia-theme="dark"] .naia-config-details>summary{color:#f8f7f4!important}
html[data-naia-theme="dark"] .naia-type-option input:checked+.naia-type-visual{background:#251633!important;border-color:#B072FF!important}
html[data-naia-theme="dark"] .naia-select-app-btn[aria-expanded="true"]{background:#24192e!important}
html[data-naia-theme="dark"] #modal-select-naia .naia-select-option{background:#19191d!important;color:#f8f7f4!important;border-color:#36343d!important}
html[data-naia-theme="dark"] #modal-select-naia .naia-select-option.active{background:#271c36!important;color:#d6b0ff!important;border-color:#B072FF!important}
html[data-naia-theme="dark"] #modal-select-naia .naia-select-option:hover{background:#222028!important}
/* Reportes: KPIs, calendario y panel lateral */
html[data-naia-theme="dark"] #tab-reportes :is(.naia-report-v3514-kpi,.naia-report-v3515-card,.naia-report-v3514-group,.naia-report-v3514-alert,.naia-report-v3515-shortcuts,.naia-report-v3515-panel,.naia-report-v3514-date-fields,.naia-report-v3515-footer,.naia-report-v3514-explorer-mark){background:#121215!important;color:#f8f7f4!important;border-color:#35333a!important;box-shadow:0 8px 25px #0005!important}
html[data-naia-theme="dark"] #tab-reportes :is(.naia-report-v3514-period,.naia-report-v3514-date>summary,.naia-report-v3514-export,.naia-report-v3515-subnav button,.naia-report-v3515-shortcuts-row button,.naia-report-v3515-shortcuts-row a,.naia-report-v3644-cancel){background:#1b1a20!important;color:#e3cfef!important;border-color:#38313e!important}
html[data-naia-theme="dark"] #tab-reportes .naia-report-v3514-period.is-active{background:#4e2a6e!important;border-color:#B072FF!important;color:#fff!important}
html[data-naia-theme="dark"] #tab-reportes .naia-report-v3515-panel :is(h1,h2,h3,h4,p,strong,b,span){color:inherit}
html[data-naia-theme="dark"] #tab-reportes :is(.naia-report-v3514-alert.critical){background:#29141b!important;border-color:#6b3540!important}
html[data-naia-theme="dark"] #tab-reportes :is(.naia-report-v3514-alert.ok){background:#172417!important;border-color:#48663a!important}
html[data-naia-theme="dark"] #tab-reportes .naia-report-v3514-date-fields input{background:#1b1b20!important;color:#fff!important;border-color:#38343e!important}
html[data-naia-theme="dark"] #tab-reportes .naia-report-v3515-close{background:#26262d;color:#f8f7f4}
/* Calendarios / modal fecha-hora */
html[data-naia-theme="dark"] :is(.naia-dtp-trigger,.naia-dtp-panel,.naia-dtp-date,.naia-dtp-clock-col,.naia-dtp-clock-input,.naia-dtp-period-value,.naia-dtp-time,.naia-dtp-x){background:#151518!important;border-color:#35333b!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] .naia-dtp-head{background:linear-gradient(110deg,#1d1527,#142016)!important}
html[data-naia-theme="dark"] .naia-dtp-head h3{color:#fff!important}
html[data-naia-theme="dark"] .naia-dtp-calendar .naia-dtp-date:hover{background:#342143!important}
html[data-naia-theme="dark"] .naia-dtp-calendar .naia-dtp-date.chosen,html[data-naia-theme="dark"] .naia-dtp-time.chosen{background:#C1FF72!important;color:#0a1903!important}
html[data-naia-theme="dark"] :is(.naia-dtp-clock-col,.naia-dtp-clock-arrow){color:#c69aff}
html[data-naia-theme="dark"] :is(.naia-dtp-footer,.naia-dtp-preview){background:#111214!important;border-color:#313138!important;color:#e8e0f0!important}
html[data-naia-theme="dark"] .naia-dtp-today{background:#C1FF72!important;color:#131e0c!important}
/* Administración y Configuración V36 */
html[data-naia-theme="dark"] #tab-admin .naia-console,html[data-naia-theme="dark"] #tab-config .naia-console{--naia-org-text:#f8f7f4;--naia-org-muted:#b9b7c3;color:#f8f7f4}
html[data-naia-theme="dark"] .naia-console :is(.naia-console-find,.naia-console-tile,.naia-console-subnav,.naia-console-subitem,.naia-console-search-result,.naia-console-editor>.naia-accordion-head,.naia-console-editor>.naia-accordion-body){background:#111114!important;border-color:#303037!important;color:#f8f7f4!important;box-shadow:none!important}
html[data-naia-theme="dark"] .naia-console :is(.naia-console-tile-desc,.naia-console-subitem small,.naia-console-subtitle,.naia-console-groupdesc,.naia-console-small,.naia-console-result-copy small){color:#b9b7c3!important}
html[data-naia-theme="dark"] .naia-console .naia-console-subitem.is-active{background:#291c39!important;border-color:#684b8e!important;color:#d4afff!important}
html[data-naia-theme="dark"] .naia-console :is(.naia-console-tile-icon,.naia-console-groupicon){background:#2a2034;color:#cda5ff}
html[data-naia-theme="dark"] .naia-console .naia-console-find input{background:transparent!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] :is(.naia-theme-card,.naia-theme-option){background:#111114!important;border-color:#35323b!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] .naia-theme-heading p,html[data-naia-theme="dark"] :is(.naia-theme-option small,.naia-theme-note){color:#b9b7c3!important}
html[data-naia-theme="dark"] .naia-theme-option[aria-pressed="true"]{border-color:#C1FF72!important;box-shadow:0 0 0 2px #C1FF7240!important}
/* API / IA */
html[data-naia-theme="dark"] .naia-ia{color:#f8f7f4;--nia-ink:#f8f7f4}
html[data-naia-theme="dark"] .naia-ia :is(.nia-box,.nia-stat,.nia-budget-card,.nia-connection,.nia-switch,.nia-tag,.nia-form-grid,.nia-table-wrap,.nia-history){background:#141418!important;color:#f8f7f4!important;border-color:#323238!important}
html[data-naia-theme="dark"] .naia-ia :is(.nia-break-top,.nia-break-top strong,.nia-hint,.nia-muted,.nia-budget-note,.nia-budget-foot,.nia-disclaimer,.nia-connection small,.nia-switch small,.nia-table-wrap td,.nia-tag){color:#c1becd!important}
html[data-naia-theme="dark"] .naia-ia :is(thead,.nia-bar-track,.nia-break-track){background:#242329!important}
html[data-naia-theme="dark"] .naia-ia :is(input,select){background:#1b1a20!important;border-color:#34313c!important;color:#fff!important}
html[data-naia-theme="dark"] .naia-ia .nia-save{background:#C1FF72!important;color:#182808!important}
/* Pancito, conversación y facturas */
html[data-naia-theme="dark"] :is(.naia-chef-card,.naia-chef-table-card,.naia-chef-report,.naia-chef-report-section,.naia-chef-visual-fact,.naia-chef-visual-note,.naia-chef-order-form,.naia-chef-bubble){background:#151519!important;color:#f8f7f4!important;border-color:#363039!important}
html[data-naia-theme="dark"] :is(#naia-chef-footer,#naia-chef-footer textarea,#naia-chef-footer .naia-chef-media-actions button){background:#18181d!important;color:#f8f7f4!important;border-color:#39353f!important}
html[data-naia-theme="dark"] #naia-chef-invoice{background:#20351b!important;color:#C1FF72!important;border-color:#426634!important}
html[data-naia-theme="dark"] .naia-chef-invoice-action{background:#C1FF72!important;color:#17230d!important}
/* Mantener el frame de Menú digital, pero oscurecer su carcasa; la página interna escucha postMessage. */
html[data-naia-theme="dark"] #naia-menu-integrado{background:#050505!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] #naia-menu-integrado .naia-menu-integrado-header{background:#0e0e10!important;border-color:#29292e!important}
html[data-naia-theme="dark"] #naia-menu-integrado .naia-menu-integrado-volver{background:#271c32!important;color:#d6b3ff!important;border-color:#604471!important}
html[data-naia-theme="dark"] #naia-menu-integrado .naia-menu-integrado-info small{color:#c0b8cc!important}
/* Accesibilidad / claridad */
html[data-naia-theme="dark"] :is(a,button,summary,[role="button"]):focus-visible{outline:2px solid #C1FF72!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){.naia-theme-option,.naia-theme-card{transition:none!important}}
/* Acceso a la PWA: el formulario también sigue el tema, sin modificar el recibo imprimible. */
html[data-naia-theme="dark"] :is(.naia-login-panel){background:radial-gradient(circle at 85% 5%,#182311,transparent 43%),#050505!important}
html[data-naia-theme="dark"] :is(.naia-login-card){background:#111114!important;color:#f8f7f4!important;border-color:#303039!important;box-shadow:0 24px 70px #000a!important}
html[data-naia-theme="dark"] :is(.naia-login-tabs){background:#1d1c21!important;border-color:#343238!important}
html[data-naia-theme="dark"] :is(.naia-login-tab){color:#c6c1cd!important}
html[data-naia-theme="dark"] :is(.naia-login-tab.active){background:#263519!important;color:#C1FF72!important}
html[data-naia-theme="dark"] :is(.naia-login-intro h2,.naia-login-field label){color:#f8f7f4!important}
html[data-naia-theme="dark"] :is(.naia-login-intro p,.naia-login-trust,.naia-login-footer){color:#bfbac6!important}
html[data-naia-theme="dark"] .naia-login-input{background:#1b1b20!important;color:#fff!important;border-color:#3a3740!important}
html[data-naia-theme="dark"] .naia-login-eye{color:#c3b7d0!important}
html[data-naia-theme="dark"] .naia-login-forgot{color:#C1FF72!important}
/* Pancito: shell, encabezado, conversación y resultados (incluidos nodos dinámicos) */
html[data-naia-theme="dark"] #naia-chef-shell{background:#0e0e11!important;color:#f8f7f4!important;border-color:#343139!important;box-shadow:0 18px 55px #000b!important}
html[data-naia-theme="dark"] #naia-chef-head{background:linear-gradient(110deg,#241831,#152017)!important;border-color:#39313e!important}
html[data-naia-theme="dark"] #naia-chef-main{background:#0d0d0f!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] #naia-chef-tools button{background:#1c1a20!important;border-color:#3b3542!important;color:#d4b3ff!important}
html[data-naia-theme="dark"] #naia-chef-tools button.active{background:#312043!important;border-color:#9a67d8!important;color:#eee0ff!important}
html[data-naia-theme="dark"] :is(#naia-chef-recipe,#naia-chef-message,#naia-chef-grams){background:#18181d!important;border-color:#383540!important;color:#fff!important}
html[data-naia-theme="dark"] :is(#naia-chef-heading small,#naia-chef-scale label,#naia-chef-info){color:#c5bece!important}
html[data-naia-theme="dark"] #naia-chef-close{color:#e0d3e9!important}
html[data-naia-theme="dark"] .naia-chef-bubble.mine{background:#223818!important;border-color:#48682f!important;color:#e8f8d8!important}
html[data-naia-theme="dark"] :is(.naia-chef-simple,.naia-chef-report-header,.naia-chef-report-section,.naia-chef-report-section.is-base,.naia-chef-report-section.is-result,.naia-chef-report-section.is-note,.naia-chef-report .naia-chef-table-wrap,.naia-chef-visual .naia-chef-report-header,.pancito-order-success,.pancito-success-facts,.pancito-success-note,.pancito-success-finish){background:#17151d!important;border-color:#3a3540!important;color:#f8f7f4!important}
html[data-naia-theme="dark"] :is(.naia-chef-paragraph,.naia-chef-list,.naia-chef-visual-fact-label,.naia-chef-visual-fact-full,.naia-chef-report-heading small,.naia-chef-visual .naia-chef-report-heading small,.pancito-success-head p,.pancito-success-line span){color:#c4c0cf!important}
html[data-naia-theme="dark"] :is(.naia-chef-card-title,.naia-chef-bubble strong,.naia-chef-report-heading strong,.naia-chef-visual-fact-value,.naia-chef-visual-note strong,.pancito-success-head strong,.pancito-success-line strong){color:#f8f7f4!important}
html[data-naia-theme="dark"] :is(.naia-chef-report th,.naia-chef-table-wrap th){background:#523373!important;color:#fff!important}
html[data-naia-theme="dark"] .naia-chef-report tbody tr:nth-child(even){background:#201a26!important}
html[data-naia-theme="dark"] #naia-chef-footer #naia-chef-send{background:#C1FF72!important;color:#13220c!important}
