/* Gestión IA · ERP, CRM y contabilidad · azul #0B5FA8 y blanco */
.iaee, .iaee-modal, .iaee-toast, .iaee-pop { --a: #0B5FA8; --a90: rgba(11, 95, 168, .9); --a80: rgba(11, 95, 168, .8); --a70: rgba(11, 95, 168, .72); --a50: rgba(11, 95, 168, .5); --a35: rgba(11, 95, 168, .35); --a20: rgba(11, 95, 168, .2); --a12: rgba(11, 95, 168, .12); --a08: rgba(11, 95, 168, .08); --a05: rgba(11, 95, 168, .05); --a03: rgba(11, 95, 168, .03); --w: #fff; --r: 16px; --sh: 0 10px 30px rgba(11, 95, 168, .12); --f: var(--f-body, "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	color: var(--a); font-family: var(--f); font-size: 15.5px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
.iaee { position: relative; }
.iaee [hidden], .iaee-modal [hidden], .iaee-pop [hidden] { display: none !important; }
.iaee *, .iaee *::before, .iaee *::after, .iaee-modal *, .iaee-modal *::before, .iaee-modal *::after, .iaee-pop * { box-sizing: border-box; }
.iaee :where(button, input, select, textarea), .iaee-modal :where(button, input, select, textarea), .iaee-pop :where(button, input) { font: inherit; color: inherit; }
.iaee :where(h2, h3, h4, h5), .iaee-modal :where(h2, h3, h4, h5) { color: var(--a); margin: 0; line-height: 1.25; font-family: var(--f); }
.entry-content .iaee :where(h2, h3, h4, h5), .entry-content .iaee-modal :where(h2, h3, h4, h5) { margin-top: 0; }
.iaee svg, .iaee-modal svg { display: block; }
.iaee :where(p, .iaee-small, .iaee-pill, .iaee-cuadre, td, span) > .ic, .iaee-modal :where(p, .iaee-small, .iaee-pill, .iaee-cuadre, td, span) > .ic { display: inline-block; vertical-align: -3px; }
.iaee .ic, .iaee-modal .ic, .iaee-pop .ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iaee .ic.sm, .iaee-modal .ic.sm { width: 16px; height: 16px; }
.iaee .ic.lg { width: 28px; height: 28px; }
.iaee-boot { padding: 60px 20px; text-align: center; color: var(--a70); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.iaee-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--a20); border-top-color: var(--a); animation: iaee-g 0.8s linear infinite; display: inline-block; }
@keyframes iaee-g { to { transform: rotate(360deg); } }
.iaee-muted { color: var(--a70); }
.iaee-small { font-size: 13px; color: var(--a70); }
.iaee-num, .iaee td.n, .iaee th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.iaee-neg { font-weight: 700; }
.iaee-neg::before { content: ""; }

/* ---------- Marco ---------- */
.iaee-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--w); border: 1px solid var(--a20); border-radius: 22px; overflow: hidden; box-shadow: var(--sh); min-height: 760px; }
.iaee.is-full { position: fixed; inset: 0; z-index: 99990; background: var(--w); padding: 0; overflow: auto; }
.iaee.is-full .iaee-app { border-radius: 0; min-height: 100vh; border: 0; }
.iaee-side { background: var(--a); color: var(--w); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.iaee-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.iaee-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--w); color: var(--a); display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.iaee-brand b { display: block; font-size: 17px; line-height: 1.15; }
.iaee-brand small { display: block; font-size: 12px; opacity: .85; }
.iaee-emp { margin: 0 4px 10px; }
.iaee-emp select { width: 100%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: var(--w); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.iaee-emp select option { color: var(--a); background: var(--w); }
.iaee-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.iaee-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--w); cursor: pointer; text-align: left; font-weight: 600; font-size: 14.5px; }
.iaee-nav button:hover { background: rgba(255, 255, 255, .12); }
.iaee-nav button[aria-current="page"] { background: var(--w); color: var(--a); }
.iaee-nav .iaee-cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--w); color: var(--a); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.iaee-nav button[aria-current="page"] .iaee-cnt { background: var(--a); color: var(--w); }
.iaee-nav-sep { height: 1px; background: rgba(255, 255, 255, .2); margin: 8px 6px; }
.iaee-side-foot { margin-top: auto; display: grid; gap: 8px; padding: 10px 4px 0; }
.iaee-plan { font-size: 12.5px; background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; }
.iaee-plan b { display: block; font-size: 14px; }
.iaee-plan a { color: var(--w); font-weight: 700; }
.iaee-main { min-width: 0; padding: 22px 26px 34px; background: var(--w); }
.iaee-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.iaee-top h2 { font-size: 25px; font-weight: 700; }
.iaee-kicker { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--a70); margin: 0 0 3px; }
.iaee-top-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.iaee-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--a12); margin: 0 0 18px; overflow-x: auto; scrollbar-width: thin; }
.iaee-tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 700; font-size: 14.5px; color: var(--a70); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.iaee-tabs button:hover { color: var(--a); }
.iaee-tabs button[aria-selected="true"] { color: var(--a); border-bottom-color: var(--a); }
.iaee-mbar { display: none; }

/* ---------- Botones y formularios ---------- */
.iaee-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1.5px solid var(--a); background: var(--a); color: var(--w); font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; font-size: 14.5px; white-space: nowrap; transition: background-color .2s, box-shadow .2s; }
.iaee-btn:hover { background: var(--a90); box-shadow: 0 6px 16px rgba(11, 95, 168, .22); }
.iaee-btn.ghost { background: var(--w); color: var(--a); }
.iaee-btn.ghost:hover { background: var(--a05); box-shadow: none; }
.iaee-btn.link { border-color: transparent; background: transparent; color: var(--a); padding-left: 6px; padding-right: 6px; }
.iaee-btn.link:hover { background: var(--a05); box-shadow: none; }
.iaee-btn.sm { padding: 7px 11px; font-size: 13.5px; border-radius: 9px; }
.iaee-btn.xs { padding: 4px 8px; font-size: 12.5px; border-radius: 8px; }
.iaee-btn.block { width: 100%; }
.iaee-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.iaee-btn.is-loading { position: relative; color: transparent !important; }
.iaee-btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: iaee-g .8s linear infinite; }
.iaee-btn.ghost.is-loading::after { border-color: var(--a20); border-top-color: var(--a); }
.iaee-ib { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--a20); background: var(--w); color: var(--a); display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.iaee-ib:hover { border-color: var(--a); }
.iaee-ib.sm { width: 30px; height: 30px; border-radius: 8px; }
.iaee-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.iaee-f > span, .iaee-lbl { font-size: 13px; font-weight: 700; color: var(--a80); }
.iaee-f small { font-size: 12px; color: var(--a70); }
.iaee :where(input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], input[type=month], input[type=datetime-local], input:not([type]), select, textarea), .iaee-modal :where(input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], input[type=month], input[type=datetime-local], input[type=password], input:not([type]), select, textarea) { width: 100%; border: 1.5px solid var(--a20); border-radius: 10px; padding: 9px 11px; background: var(--w); color: var(--a); font-size: 15px; outline: none; min-height: 40px; }
.iaee :where(input, select, textarea):focus, .iaee-modal :where(input, select, textarea):focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a12); }
.iaee textarea, .iaee-modal textarea { min-height: 80px; resize: vertical; }
.iaee input.n, .iaee-modal input.n { text-align: right; font-variant-numeric: tabular-nums; }
.iaee .is-bad, .iaee-modal .is-bad { border-color: var(--a) !important; box-shadow: 0 0 0 3px var(--a35) !important; }
.iaee-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
.iaee-c12 { grid-column: span 12; } .iaee-c8 { grid-column: span 8; } .iaee-c6 { grid-column: span 6; } .iaee-c4 { grid-column: span 4; } .iaee-c3 { grid-column: span 3; } .iaee-c2 { grid-column: span 2; } .iaee-c9 { grid-column: span 9; }
.iaee-chk { display: inline-flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.iaee-chk input { width: 18px; height: 18px; accent-color: var(--a); margin-top: 2px; flex: 0 0 auto; }
.iaee-seg { display: inline-flex; border: 1.5px solid var(--a20); border-radius: 11px; padding: 3px; gap: 2px; background: var(--w); flex-wrap: wrap; }
.iaee-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--a70); }
.iaee-seg button[aria-pressed="true"] { background: var(--a); color: var(--w); }
.iaee-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.iaee-filtros .iaee-f { min-width: 140px; }
.iaee-filtros .grow { flex: 1 1 220px; }
.iaee-acciones { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }

/* ---------- Tarjetas y KPI ---------- */
.iaee-card { border: 1px solid var(--a20); border-radius: var(--r); background: var(--w); padding: 18px; box-shadow: 0 1px 2px rgba(11, 95, 168, .05); min-width: 0; }
.iaee-card + .iaee-card { margin-top: 16px; }
.iaee-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.iaee-card h3 .iaee-btn { margin-left: auto; }
.iaee-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.iaee-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iaee-cols .iaee-card + .iaee-card { margin-top: 0; }
.iaee-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; margin-bottom: 16px; }
.iaee-kpi { border: 1px solid var(--a20); border-radius: 14px; padding: 14px 16px; background: var(--w); position: relative; overflow: hidden; }
.iaee-kpi.solid { background: var(--a); color: var(--w); border-color: var(--a); }
.iaee-kpi small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .78; }
.iaee-kpi b { display: block; font-size: 23px; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.iaee-kpi em { display: block; font-style: normal; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.iaee-kpi .ic { position: absolute; right: 12px; top: 12px; opacity: .35; }
.iaee-empty { text-align: center; padding: 34px 16px; color: var(--a70); border: 1.5px dashed var(--a20); border-radius: 14px; background: var(--a03); }
.iaee-empty b { display: block; color: var(--a); font-size: 16px; margin-bottom: 4px; }
.iaee-empty .iaee-btn { margin-top: 12px; }
.iaee-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--a05); border: 1px solid var(--a12); font-size: 14px; margin-bottom: 14px; }
.iaee-note .ic { margin-top: 1px; }
.iaee-note.solid { background: var(--a); color: var(--w); border-color: var(--a); }
.iaee-note.solid a { color: var(--w); }

/* ---------- Tablas ---------- */
.iaee-tw { overflow-x: auto; border: 1px solid var(--a12); border-radius: 12px; background: var(--w); -webkit-overflow-scrolling: touch; }
.iaee .iaee-t, .iaee-modal .iaee-t { width: 100%; border-collapse: collapse; font-size: 14px; display: table; overflow: visible; }
.iaee-t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--a70); background: var(--a03); padding: 9px 10px; border-bottom: 1px solid var(--a12); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.iaee-t th.sort { cursor: pointer; }
.iaee-t th.sort:hover { color: var(--a); }
.iaee-t td:first-child { min-width: 140px; }
.iaee-t td { padding: 8px 10px; border-bottom: 1px solid var(--a08); vertical-align: top; }
.iaee-t tbody tr:hover td { background: var(--a03); }
.iaee-t tr.click { cursor: pointer; }
.iaee-t tfoot td { font-weight: 800; background: var(--a05); border-top: 1.5px solid var(--a20); border-bottom: 0; }
.iaee-t tr.nivel-1 td { font-weight: 800; background: var(--a05); }
.iaee-t tr.nivel-2 td { font-weight: 700; }
.iaee-t tr.nivel-3 td:first-child { padding-left: 18px; }
.iaee-t tr.nivel-4 td:first-child { padding-left: 28px; }
.iaee-t tr.nivel-5 td:first-child { padding-left: 38px; }
.iaee-t tr.sub td { background: var(--a03); font-size: 13px; }
.iaee-t tr.total td { font-weight: 800; border-top: 1.5px solid var(--a35); }
.iaee-t tr.gran td { font-weight: 800; background: var(--a); color: var(--w); }
.iaee-t td .iaee-small { display: block; }
.iaee-t input, .iaee-t select { min-height: 34px !important; padding: 5px 8px !important; font-size: 14px !important; border-radius: 8px !important; }
.iaee-tbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
.iaee-tbar input[type=search] { max-width: 320px; }
.iaee-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--a35); color: var(--a); background: var(--w); white-space: nowrap; }
.iaee-pill.solid { background: var(--a); color: var(--w); border-color: var(--a); }
.iaee-pill.soft { background: var(--a08); border-color: transparent; }
.iaee-pill.ghost { border-style: dashed; color: var(--a70); }

/* ---------- Gráficos ---------- */
.iaee-chart { width: 100%; height: auto; }
.iaee-chart text { fill: var(--a70); font-size: 11px; font-family: var(--f); }
.iaee-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--a80); margin-top: 6px; }
.iaee-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.iaee-bar { height: 10px; border-radius: 999px; background: var(--a12); overflow: hidden; }
.iaee-bar i { display: block; height: 100%; background: var(--a); border-radius: 999px; }

/* ---------- Alertas ---------- */
.iaee-alerts { display: grid; gap: 8px; }
.iaee-alert { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--a20); background: var(--w); cursor: pointer; text-align: left; width: 100%; }
.iaee-alert:hover { border-color: var(--a); }
.iaee-alert.alta { background: var(--a); color: var(--w); border-color: var(--a); }
.iaee-alert.media { background: var(--a08); border-color: transparent; }
.iaee-alert .lvl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .85; display: block; }
.iaee-alert p { margin: 2px 0 0; font-size: 14px; }

/* ---------- Documento (editor de líneas) ---------- */
.iaee-doc-lines td { padding: 6px; }
.iaee-doc-lines .iaee-ib { width: 30px; height: 30px; }
.iaee-tot { margin-left: auto; width: min(100%, 360px); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14.5px; padding: 12px 14px; border-radius: 12px; background: var(--a05); }
.iaee-tot b { font-variant-numeric: tabular-nums; text-align: right; }
.iaee-tot .big { font-size: 18px; font-weight: 800; }
.iaee-cuadre { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.iaee-cuadre.ok { background: var(--a); color: var(--w); }
.iaee-cuadre.no { border: 1.5px dashed var(--a); }

/* ---------- Buscador (combobox) ---------- */
.iaee-bus { position: relative; }
.iaee-pop { position: fixed; z-index: 100001; background: var(--w); border: 1px solid var(--a20); border-radius: 12px; box-shadow: 0 14px 40px rgba(11, 95, 168, .22); max-height: 300px; overflow-y: auto; padding: 4px; min-width: 260px; }
.iaee-pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--a); }
.iaee-pop button small { display: block; color: var(--a70); font-size: 12px; }
.iaee-pop button:hover, .iaee-pop button.on { background: var(--a08); }
.iaee-pop .vacio { padding: 10px; font-size: 13px; color: var(--a70); }

/* ---------- Kanban ---------- */
.iaee-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.iaee-col { background: var(--a05); border-radius: 14px; padding: 10px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; }
.iaee-col.drop { outline: 2px dashed var(--a); outline-offset: -2px; }
.iaee-col h4 { font-size: 14px; display: flex; justify-content: space-between; gap: 6px; padding: 2px 4px 6px; }
.iaee-col h4 small { font-weight: 600; color: var(--a70); }
.iaee-opp { background: var(--w); border: 1px solid var(--a20); border-radius: 12px; padding: 10px 12px; cursor: grab; box-shadow: 0 1px 2px rgba(11, 95, 168, .06); }
.iaee-opp:hover { border-color: var(--a); }
.iaee-opp b { display: block; font-size: 14.5px; }
.iaee-opp .m { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--a70); margin-top: 4px; }
.iaee-opp.est { border-style: dashed; border-color: var(--a); }

/* ---------- Línea de tiempo ---------- */
.iaee-tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--a12); }
.iaee-tl li { position: relative; padding: 0 0 14px 12px; }
.iaee-tl li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--w); border: 2.5px solid var(--a); }
.iaee-tl li.hecha::before { background: var(--a); }
.iaee-tl b { display: block; font-size: 14.5px; }
.iaee-tl small { color: var(--a70); font-size: 12.5px; }

/* ---------- Asistente ---------- */
.iaee-wiz { max-width: 860px; margin: 10px auto; }
.iaee-wiz h2 { font-size: 26px; margin-bottom: 6px; }
.iaee-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.iaee-opt { position: relative; cursor: pointer; }
.iaee-opt input { position: absolute; opacity: 0; pointer-events: none; }
.iaee-opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--a20); border-radius: 14px; transition: background-color .2s, border-color .2s, color .2s; }
.iaee-opt span b { font-size: 15px; }
.iaee-opt span small { font-size: 12.5px; opacity: .82; line-height: 1.35; }
.iaee-opt:hover span { border-color: var(--a); }
.iaee-opt input:checked + span { background: var(--a); color: var(--w); border-color: var(--a); }
.iaee-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--a20); }
.iaee-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.iaee-steps i { height: 5px; flex: 1; border-radius: 999px; background: var(--a12); }
.iaee-steps i.on { background: var(--a); }

/* ---------- Modal y avisos ---------- */
.iaee-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(11, 95, 168, .35); backdrop-filter: blur(3px); }
.iaee-mbox { background: var(--w); border-radius: 20px; box-shadow: 0 24px 70px rgba(11, 95, 168, .35); width: min(100%, 640px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; animation: iaee-in .22s ease; }
.iaee-mbox.lg { width: min(100%, 1040px); }
.iaee-mbox.xl { width: min(100%, 1280px); }
.iaee-mbox.sm { width: min(100%, 460px); }
@keyframes iaee-in { from { transform: translateY(12px); opacity: 0; } }
.iaee-mhead { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--a12); }
.iaee-mhead h3 { font-size: 18px; font-weight: 700; flex: 1; }
.iaee-mbody { padding: 18px 20px; overflow-y: auto; }
.iaee-mfoot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--a12); background: var(--a03); flex-wrap: wrap; }
.iaee-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100002; background: var(--a); color: var(--w); padding: 12px 18px; border-radius: 12px; box-shadow: 0 14px 40px rgba(11, 95, 168, .35); font-weight: 600; max-width: min(92vw, 560px); font-size: 14.5px; animation: iaee-in .2s ease; }
.iaee-toast.err { background: var(--w); color: var(--a); border: 2px solid var(--a); }
.iaee-drop { border: 2px dashed var(--a35); border-radius: 16px; padding: 28px 18px; text-align: center; background: var(--a03); cursor: pointer; transition: background-color .2s, border-color .2s; }
.iaee-drop:hover, .iaee-drop.over { background: var(--a08); border-color: var(--a); }
.iaee-drop b { display: block; font-size: 16px; margin: 8px 0 2px; }
.iaee-drop .ic { margin: 0 auto; width: 34px; height: 34px; }

/* ---------- Acceso ---------- */
.iaee-gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--a20); border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: var(--w); }
.iaee-gate-l { background: var(--a); color: var(--w); padding: 34px; }
.iaee-gate-l h3 { color: var(--w); font-size: 26px; margin-bottom: 10px; }
.iaee-gate-l ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.iaee-gate-l li { display: flex; gap: 10px; align-items: flex-start; }
.iaee-gate-r { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

/* ---------- Impresión ---------- */
@media print {
	.iaee-side, .iaee-tabs, .iaee-top-r, .iaee-filtros, .iaee-mbar, .iaee-acciones { display: none !important; }
	.iaee-app { display: block; border: 0; box-shadow: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 1080px) {
	.iaee-app { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
	.iaee-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); z-index: 100000; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; box-shadow: 0 0 60px rgba(11, 95, 168, .4); }
	.iaee-side.open { transform: none; }
	.iaee-scrim { position: fixed; inset: 0; background: rgba(11, 95, 168, .35); z-index: 99999; }
	.iaee-main { padding: 16px 14px 96px; }
	body:not(.iaee-on) .iaee:not(.is-full) .iaee-mbar { transform: translateY(110%); pointer-events: none; }
	.iaee-mbar { transition: transform .25s ease; }
	.iaee-mbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998; background: var(--w); border-top: 1px solid var(--a20); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(11, 95, 168, .12); }
	.iaee-mbar button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--a70); padding: 4px 2px; cursor: pointer; }
	.iaee-mbar button[aria-current="page"] { color: var(--a); }
	.iaee-mbar button[aria-current="page"] .ic { stroke-width: 2.4; }
	.iaee-top h2 { font-size: 21px; }
	.iaee-cols, .iaee-cols.c3 { grid-template-columns: 1fr; }
	.iaee-c8, .iaee-c6, .iaee-c4, .iaee-c9 { grid-column: span 12; }
	.iaee-c3, .iaee-c2 { grid-column: span 6; }
	.iaee-gate { grid-template-columns: 1fr; }
	.iaee-gate-l, .iaee-gate-r { padding: 24px; }
	body.iaee-on .iawfb-button, body.iaee-on .ia-chat-container, body.iaee-on .to-top { display: none !important; }
}
@media (max-width: 560px) {
	.iaee-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iaee-kpi b { font-size: 19px; }
	.iaee-c3, .iaee-c2 { grid-column: span 12; }
	.iaee-mbox { border-radius: 18px 18px 0 0; max-height: 92vh; }
	.iaee-modal { place-items: end center; padding: 0; }
	.iaee-mbox, .iaee-mbox.lg, .iaee-mbox.xl, .iaee-mbox.sm { width: 100%; }
	.iaee-tbar input[type=search] { max-width: none; }
	.iaee-tot { width: 100%; }
}
/* Venta por módulos */
.iaee-nav button.is-lock { opacity: .62; }
.iaee-nav button.is-lock .iaee-lk { margin-left: auto; width: 15px; height: 15px; }
.iaee-up { text-align: left; }
.iaee-up-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--a08); color: var(--a); margin-bottom: 10px; }
.iaee-up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.iaee-up-op { border: 1px solid var(--a20); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--w); }
.iaee-up-op small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--a70); }
.iaee-up-op > b { font-size: 18px; color: var(--a); }
.iaee-up-op p { font-size: 14px; margin: 0; color: var(--a70); }
.iaee-up-op ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; flex: 1; }
.iaee-up-op li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--a12); padding-bottom: 4px; }
.iaee-up-op.solid { background: var(--a); border-color: var(--a); }
.iaee-up-op.solid small, .iaee-up-op.solid > b, .iaee-up-op.solid p, .iaee-up-op.solid li { color: var(--w); }
.iaee-up-op.solid .iaee-btn.ghost { background: var(--w); color: var(--a); }
