/* APPMailing · «Lo que te ahorras» animado (09/11/2026). Pareja de appmailing-fx.js.
   Usa las variables de SageMind (--text, --border…) y, fuera de la app, sus valores de reserva. */
.aml-fx {
  --fx-a: #fdba74; --fx-b: #ea580c; --fx-t: #c2410c;
  --fx-text: var(--text, #1f2328); --fx-sec: var(--text-secondary, #4b5563); --fx-mut: var(--text-muted, #6b7280);
  --fx-bg: var(--bg, #fff); --fx-el: var(--bg-elevated, #fafaf9); --fx-hover: var(--bg-hover, #f3f4f6); --fx-border: var(--border, #e5e7eb);
  --fx-ok: var(--status-success-text, #15803d); --fx-ok-bg: var(--status-success-bg, #dcfce7);
  --fx-ko: var(--status-error-text, #b91c1c); --fx-ko-bg: var(--status-error-bg, #fdecec);
  color: var(--fx-text);
}
[data-theme="dark"] .aml-fx { --fx-t: #fdba74; }
.aml-fx .fx-i { flex: none; }
.fx-wrap { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 16px; align-items: start; }

/* Lista de problemas */
.fx-items { display: grid; gap: 6px; }
.fx-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--fx-border);
  background: var(--fx-el); color: var(--fx-sec); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease; }
.fx-item:hover { background: var(--fx-hover); }
.fx-item:focus-visible, .fx-pause:focus-visible { outline: 2px solid var(--fx-b); outline-offset: 2px; }
.fx-item[aria-selected="true"] { color: var(--fx-text); border-color: color-mix(in srgb, var(--fx-b) 45%, var(--fx-border));
  background: linear-gradient(150deg, color-mix(in srgb, var(--fx-a) 22%, var(--fx-el)), var(--fx-el) 75%); }
.fx-item-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; color: var(--fx-mut); background: var(--fx-hover); transition: color .2s ease, background .2s ease; }
.fx-item[aria-selected="true"] .fx-item-ico { color: #fff; background: linear-gradient(145deg, var(--fx-a), var(--fx-b)); }
.fx-item-t { min-width: 0; line-height: 1.3; }
.fx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.fx-prog i { display: block; height: 100%; width: 0; background: var(--fx-b); }

/* Escaparate: mismo marco que la maqueta de la portada */
.fx-stage { border-radius: 16px; background: var(--fx-bg); border: 1px solid var(--fx-border); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35); overflow: hidden; min-width: 0; }
.fx-bar-top { display: flex; align-items: center; gap: 5px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--fx-border); }
.fx-bar-top > i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong, var(--fx-border)); }
.fx-bar-top > span { margin-left: auto; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-mut); }
.fx-pause { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--fx-border); background: var(--fx-el);
  color: var(--fx-sec); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.fx-pane[hidden] { display: none; }
.fx-pane-tit { margin: 0; padding: 14px 16px 0; font-size: 16px; letter-spacing: -.01em; }
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 16px 16px; }
.fx-side { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; padding: 12px; border-radius: 14px; }
.fx-side.is-hoy { background: var(--fx-hover); }
.fx-side.is-con { background: color-mix(in srgb, var(--fx-a) 16%, var(--fx-bg)); border: 1px solid color-mix(in srgb, var(--fx-b) 30%, transparent); }
.fx-lab { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-mut); }
.fx-side.is-con .fx-lab { color: var(--fx-t); }
.fx-scene { position: relative; display: grid; gap: 8px; align-content: start; min-height: 222px; padding: 10px; border-radius: 11px; background: var(--fx-bg);
  border: 1px solid color-mix(in srgb, var(--fx-border) 80%, transparent); overflow: hidden; font-size: 12.5px; }

/* Motor: aparecer / desaparecer por pasos */
.aml-fx [data-p] { transition: opacity .35s ease, transform .35s ease; }
.aml-fx [data-p]:not(.is-on) { opacity: 0; transform: translateY(4px); }
.aml-fx [data-hasta] { transition: opacity .25s ease; }
.aml-fx [data-hasta].is-gone { opacity: 0; }
.fx-swap { display: inline-grid; justify-items: end; flex: none; } .fx-swap > * { grid-area: 1 / 1; }
.fx-res { margin-top: auto; }

/* Estados */
.fx-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; line-height: 1.3; }
.fx-st.is-ok { color: var(--fx-ok); background: var(--fx-ok-bg); }
.fx-st.is-ko { color: var(--fx-ko); background: var(--fx-ko-bg); }
.fx-st.is-wait { color: var(--fx-mut); background: var(--fx-hover); }
.fx-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.fx-dot.is-ok { color: var(--fx-ok); background: var(--fx-ok-bg); } .fx-dot.is-ko { color: var(--fx-ko); background: var(--fx-ko-bg); }

/* Filas */
.fx-list { display: grid; gap: 6px; }
.fx-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--fx-el); border: 1px solid color-mix(in srgb, var(--fx-border) 70%, transparent); min-width: 0; }
.fx-row > .fx-i { color: var(--fx-mut); }
.fx-row.is-ko { background: color-mix(in srgb, var(--fx-ko-bg) 70%, var(--fx-bg)); }
.fx-row-t { display: grid; flex: 1; min-width: 0; gap: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.fx-row-t small { font-size: 11px; color: var(--fx-mut); overflow: hidden; text-overflow: ellipsis; }
.fx-row-t .fx-why { color: var(--fx-ko); white-space: normal; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.fx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--fx-ko); background: var(--fx-ko-bg); }
.fx-hub { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--fx-a), var(--fx-b)); }
.fx-hub small { margin-left: auto; font-size: 11px; opacity: .92; }
.fx-fly { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none; color: var(--fx-b); background: color-mix(in srgb, var(--fx-a) 30%, transparent); }
.aml-fx .fx-fly:not(.is-on) { opacity: 0; transform: translate(-28px, -16px) scale(.6); }
.aml-fx .fx-fly { transition: opacity .3s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }

/* PDF y escala */
.fx-dev { display: grid; gap: 6px; }
.fx-dev-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fx-sec); font-weight: 600; min-height: 16px; }
.fx-a4-wrap { position: relative; display: grid; place-items: center; padding: 6px 0 4px; }
.fx-a4 { position: relative; width: 116px; aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid #d1d5db; border-radius: 3px; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45); }
.fx-doc { --s: 1; position: absolute; inset: 0; padding: 9px; display: grid; gap: 5px; align-content: start; color: #111827; transform: scale(var(--s)); transform-origin: 0 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.fx-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.fx-doc-top b { font-size: 7px; line-height: 1.15; letter-spacing: .03em; text-align: right; }
.fx-logo { display: grid; place-items: center; width: 34px; height: 16px; border: 1px dashed #9ca3af; border-radius: 3px; font-size: 6px; font-style: normal; font-weight: 700; color: #6b7280; }
.fx-l { display: block; height: 5px; border-radius: 2px; background: #e9ecf1; }
.fx-doc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.fx-doc-foot b { font-size: 7.5px; }
.fx-bar { display: block; width: 46px; height: 14px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 6px); }
.fx-side.is-hoy .fx-a4 { overflow: hidden; }
.fx-cut { position: absolute; right: 4px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fff; background: #dc2626; }
.fx-badge { position: absolute; right: 4px; bottom: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--fx-b); }

/* Búsqueda */
.fx-search { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--fx-border); background: var(--fx-el); color: var(--fx-mut); min-height: 18px; }
.fx-search span { color: var(--fx-text); font-weight: 600; }
.fx-caret { width: 1.5px; height: 14px; margin-left: -4px; background: var(--fx-text); animation: fxCaret 1s steps(1) infinite; }
@keyframes fxCaret { 50% { opacity: 0; } }

/* Reenvío */
.fx-timer { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--fx-hover); color: var(--fx-sec); font-variant-numeric: tabular-nums; }
.fx-chk { display: flex; align-items: center; gap: 8px; padding: 5px 2px; color: var(--fx-sec); }
.fx-box { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--fx-border); flex: none; color: var(--fx-ok); }
.fx-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--fx-border); background: var(--fx-bg); font-size: 11.5px; font-weight: 650; overflow: hidden; }
.fx-press { position: absolute; inset: 0; background: color-mix(in srgb, var(--fx-a) 45%, transparent); }
.aml-fx .fx-press.is-on { animation: fxPress .7s ease forwards; }
@keyframes fxPress { 0% { opacity: .9; } 100% { opacity: 0; } }
.fx-cursor { position: absolute; right: 22px; bottom: -8px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 16px solid var(--fx-text);
  transform: rotate(-30deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); pointer-events: none; }
.aml-fx .fx-cursor:not(.is-on) { opacity: 0; transform: translate(-60px, 26px) rotate(-30deg); }
.aml-fx .fx-cursor { transition: opacity .3s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx-resend { overflow: visible; }

/* Nombre del adjunto */
.fx-mail { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--fx-el); border: 1px solid color-mix(in srgb, var(--fx-border) 70%, transparent); }
.fx-mail > small { font-size: 11px; color: var(--fx-mut); }
.fx-adjs { display: flex; flex-wrap: wrap; gap: 5px; }
.fx-att { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: var(--fx-hover); font-size: 11.5px; font-weight: 600; max-width: 100%; }
.fx-att.is-name { color: var(--fx-t); background: color-mix(in srgb, var(--fx-a) 26%, var(--fx-bg)); min-width: 60%; }
.fx-att.is-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-field { display: grid; padding: 4px 9px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--fx-b) 50%, var(--fx-border)); font-size: 12px; font-weight: 650; }
.fx-field small { font-size: 10px; font-weight: 600; color: var(--fx-mut); text-transform: uppercase; letter-spacing: .04em; }
.fx-bubble { justify-self: start; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: var(--fx-hover); font-size: 12px; color: var(--fx-sec); }
.fx-bubble.is-ok { color: var(--fx-ok); background: var(--fx-ok-bg); }

/* Programaciones */
.fx-week { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.fx-day { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 9px; background: var(--fx-el); border: 1px solid color-mix(in srgb, var(--fx-border) 70%, transparent); min-height: 70px; align-content: start; }
.fx-day > b { font-size: 11.5px; color: var(--fx-mut); }
.fx-day .fx-swap { justify-items: center; } .fx-day .fx-swap > span { display: grid; justify-items: center; gap: 3px; }
.fx-day small { font-size: 10.5px; color: var(--fx-mut); text-align: center; }
.fx-vac { grid-column: 3 / 6; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px; border-radius: 8px; font-size: 11.5px; font-weight: 650; color: #92400e; background: #fef3c7; }
.fx-next { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--fx-sec); }
.fx-switch { position: relative; display: inline-block; width: 30px; height: 18px; border-radius: 999px; background: var(--fx-b); flex: none; }
.fx-switch i { position: absolute; top: 3px; left: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

@media (max-width: 1000px) {
  .fx-wrap { grid-template-columns: minmax(0, 1fr); }
  .fx-items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .fx-item { flex: 0 0 auto; width: auto; max-width: 250px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .fx-split { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .fx-pane-tit { padding: 12px 12px 0; }
  .fx-scene { min-height: 0; }
}
/* 09/11: textos ampliados por problema */
.fx-pane-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 16px 0; }
.fx-pane-hd .fx-pane-tit { padding: 0; }
.fx-foro { margin: 0; max-width: 520px; font-size: 12.5px; font-style: italic; color: var(--fx-sec); }
.fx-foro small { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-mut); }
.fx-txt { display: grid; gap: 6px; }
.fx-txt p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fx-sec); }
.fx-side.is-con .fx-txt p { color: var(--fx-text); }
.fx-txt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.fx-txt li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.45; color: var(--fx-sec); }
.fx-txt li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-ko); opacity: .7; }
.fx-side.is-con .fx-txt li::before { background: var(--fx-b); opacity: 1; }
.fx-ahorro { display: flex; align-items: flex-start; gap: 8px; margin: 0 16px 16px; padding: 10px 12px; border-radius: 11px; font-size: 13px; line-height: 1.45;
  color: var(--fx-text); background: color-mix(in srgb, var(--fx-a) 22%, var(--fx-bg)); border: 1px solid color-mix(in srgb, var(--fx-b) 30%, transparent); }
.fx-ahorro .fx-i { margin-top: 2px; color: var(--fx-b); }
.fx-ahorro b { color: var(--fx-t); }
.fx-item-ico.is-on { color: #fff; background: linear-gradient(145deg, var(--fx-a), var(--fx-b)); }

/* Vista previa del correo */
.fx-pv { display: grid; gap: 12px; }
.fx-pv-ctrl { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.fx-pv-ctrl > div { display: grid; gap: 4px; } .fx-pv-ctrl small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-mut); }
.fx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--fx-hover); border: 1px solid var(--fx-border); }
.fx-seg button { border: 0; background: transparent; color: var(--fx-sec); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.fx-seg button[aria-pressed="true"] { background: var(--fx-el); color: var(--fx-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fx-seg button:focus-visible, .fx-pv-adj:focus-visible { outline: 2px solid var(--fx-b); outline-offset: 2px; }
.fx-pv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.fx-pv-n { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 750; color: #fff; background: var(--fx-b); }
.fx-pv-hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.fx-pv-hd > div { display: grid; min-width: 0; flex: 1; } .fx-pv-hd b { font-size: 13.5px; }
.fx-pv-hd small { font-size: 12px; color: var(--fx-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pv-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 750; color: #fff; background: linear-gradient(145deg, var(--fx-a), var(--fx-b)); }
.fx-pv-asunto { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 4px 16px 10px; font-size: 15px; border-bottom: 1px solid var(--fx-border); }
.fx-pv-body { padding: 14px 16px 6px; font-size: 13.5px; line-height: 1.55; }
.fx-pv-body p { margin: 0 0 8px; }
.fx-pv-logo { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 6px; border: 1px dashed var(--fx-border); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--fx-mut); }
.fx-pv-ficha { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--fx-el); border: 1px solid var(--fx-border); }
.fx-pv-ficha > .fx-pv-n { position: absolute; top: -9px; right: -9px; }
.fx-pv-ficha div { display: grid; min-width: 0; } .fx-pv-ficha small { font-size: 11px; color: var(--fx-mut); } .fx-pv-ficha b { font-size: 13px; overflow-wrap: anywhere; }
.fx-pv-adj { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 16px; padding: 9px 12px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--fx-b) 45%, var(--fx-border));
  background: transparent; color: var(--fx-text); font: inherit; text-align: left; cursor: pointer; }
.fx-pv-adj:hover { background: var(--fx-hover); }
.fx-pv-pdfi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; color: #dc2626; background: color-mix(in srgb, #dc2626 12%, transparent); }
.fx-pv-adj-t { display: grid; min-width: 0; flex: 1; } .fx-pv-adj-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pv-adj-t small { font-size: 11.5px; color: var(--fx-t); font-weight: 600; }
.fx-pv-ver { font-size: 12px; font-weight: 650; color: var(--fx-t); }
.fx-pv-pdf { padding: 0 16px 16px; } .fx-pv-pdf[hidden] { display: none; }
.fx-pv-pdf > p { margin: 10px 0 0; font-size: 12px; color: var(--fx-mut); }
.fx-pv-sheet { max-width: 360px; margin: 0 auto; padding: 16px; border-radius: 4px; background: #fff; color: #111827; border: 1px solid #e5e7eb; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 300px; animation: fxIn .25s ease; }
@keyframes fxIn { from { opacity: 0; transform: translateY(-4px); } }
.fx-pv-sh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-pv-sh-top .fx-logo { width: 54px; height: 26px; font-size: 8px; }
.fx-pv-sh-top div { display: grid; text-align: right; } .fx-pv-sh-top b { font-size: 12px; letter-spacing: .04em; } .fx-pv-sh-top small { font-size: 11px; color: #6b7280; }
.fx-pv-sh-cli { display: grid; padding: 8px; border-radius: 4px; background: #f6f7f9; } .fx-pv-sh-cli small { font-size: 10.5px; color: #374151; }
.fx-pv-sh-tab { display: grid; grid-template-columns: 1fr; gap: 6px; align-content: start; }
.fx-pv-sh-tab span { display: none; }
.fx-pv-sh-tab i { display: block; height: 7px; border-radius: 2px; background: #eef0f3; }
.fx-pv-sh-tab::before { content: "Artículo · Uds. · Precio · Importe"; font-size: 9.5px; font-weight: 700; color: #6b7280; padding-bottom: 4px; border-bottom: 1px solid #e5e7eb; }
.fx-pv-sh-foot { display: flex; align-items: center; gap: 10px; } .fx-pv-sh-foot b { margin-left: auto; font-size: 13px; }
.fx-pv-qr { width: 28px; height: 28px; background: conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0) 0 0 / 7px 7px; outline: 3px solid #111; outline-offset: -3px; }
.fx-pv-notas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pv; }
.fx-pv-notas li { position: relative; padding: 12px 14px 12px 46px; border-radius: 14px; border: 1px solid var(--fx-border); background: var(--fx-el); counter-increment: pv; }
.fx-pv-notas li::before { content: counter(pv); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 750; color: #fff; background: var(--fx-b); }
.fx-pv-notas b { display: block; font-size: 14px; } .fx-pv-notas span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--fx-sec); }

/* Rescate de informes */
.fx-rs { display: grid; gap: 16px; }
.fx-rs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 8px; padding: 14px 16px 16px; align-items: stretch; }
.fx-rs-cols .fx-side { grid-template-rows: auto auto 1fr; }
.fx-rs-flecha { display: flex; align-items: center; justify-content: center; gap: 4px; }
.fx-rs-flecha i { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-b); animation: fxFlecha 1.2s ease-in-out infinite; }
.fx-rs-flecha i:nth-child(2) { animation-delay: .15s; } .fx-rs-flecha i:nth-child(3) { animation-delay: .3s; }
@keyframes fxFlecha { 0%, 100% { opacity: .25; transform: translateX(-3px); } 50% { opacity: 1; transform: translateX(3px); } }
.fx-rs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-rs-cards article { padding: 16px; border-radius: 16px; border: 1px solid var(--fx-border); background: var(--fx-el); display: grid; gap: 8px; align-content: start; }
.fx-rs-cards h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.fx-rs-cards p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fx-sec); }
@media (max-width: 1100px) { .fx-rs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .fx-pv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fx-rs-cols { grid-template-columns: minmax(0, 1fr); padding: 10px; } .fx-rs-flecha { transform: rotate(90deg); height: 20px; }
  .fx-rs-cards { grid-template-columns: minmax(0, 1fr); }
  .fx-pv-ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fx-ahorro { margin: 0 10px 12px; } .fx-pane-hd { padding: 12px 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .fx-rs-flecha i, .fx-pv-sheet { animation: none; } }

/* Casos de uso: chat de SageMind → APPMailing */
.fx-item-t small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--fx-mut); }
.fx-donde { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--fx-t); background: color-mix(in srgb, var(--fx-a) 24%, transparent); }
.fx-caso { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; padding: 12px 16px 16px; align-items: start; }
.fx-caso .fx-scene { min-height: 330px; background: var(--fx-hover); }
.fx-chatwin { display: grid; gap: 8px; align-content: start; }
.fx-msg { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; }
.fx-msg.is-me { justify-self: end; color: #fff; background: var(--accent, #2563eb); border-bottom-right-radius: 4px; }
.fx-msg.is-bot { justify-self: start; display: flex; gap: 7px; align-items: flex-start; background: var(--fx-bg); border: 1px solid var(--fx-border); border-bottom-left-radius: 4px; }
.fx-msg.is-bot .fx-i { margin-top: 2px; color: var(--fx-b); }
.fx-tools { display: grid; justify-items: start; min-height: 0; } .fx-tools > * { grid-area: 1 / 1; }
.fx-tool { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 12px; color: var(--fx-mut); }
.fx-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--fx-b) 25%, transparent); border-top-color: var(--fx-b); animation: fxSpin .8s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-card-wrap { justify-self: stretch; }
.fx-card { display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: var(--fx-bg); border: 1px solid color-mix(in srgb, var(--fx-b) 35%, var(--fx-border)); box-shadow: 0 8px 20px -16px rgba(0, 0, 0, .4); }
.fx-card-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fx-card.is-mini { padding: 7px 10px; }
.fx-kv { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 12px; }
.fx-kv small { color: var(--fx-mut); font-size: 11px; } .fx-kv b { font-weight: 600; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fx-card-acts { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.fx-card-acts .fx-swap { justify-items: start; }
.fx-btn.is-p { color: #fff; background: var(--fx-b); border-color: var(--fx-b); }
.fx-mini-pdf { display: grid; gap: 5px; width: 120px; margin: 4px auto 0; padding: 9px; border-radius: 3px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45); }
.fx-mini-pdf i { display: block; height: 5px; border-radius: 2px; background: #e9ecf1; } .fx-mini-pdf .fx-logo { margin-bottom: 3px; }
.fx-tpl { display: grid; gap: 5px; padding: 9px 10px; border-radius: 9px; background: var(--fx-el); border: 1px dashed var(--fx-border); font-size: 12px; }
.fx-tpl b { font-size: 12.5px; min-height: 1.3em; } .fx-tpl p { margin: 0; color: var(--fx-sec); min-height: 1.3em; }
.fx-tpl > i { display: block; height: 5px; border-radius: 2px; background: color-mix(in srgb, var(--fx-border) 80%, transparent); }
.fx-langs { display: flex; gap: 4px; }
.fx-lang { position: relative; padding: 3px 9px 5px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: var(--fx-mut); background: var(--fx-el); }
.fx-lang i { position: absolute; left: 6px; right: 6px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--fx-b); }
.fx-crumb { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--fx-sec); background: var(--fx-bg); border: 1px solid var(--fx-border); }
.fx-switch.is-off { background: var(--fx-border); } .fx-switch.is-off i { left: 3px; }
.fx-otras { display: grid; gap: 5px; margin-top: 4px; }
.fx-otras small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-mut); }
.fx-otras span { justify-self: start; padding: 5px 10px; border-radius: 10px; font-size: 12.5px; color: var(--fx-text); background: var(--fx-el); border: 1px solid var(--fx-border); }
@media (max-width: 860px) { .fx-caso { grid-template-columns: minmax(0, 1fr); } .fx-caso .fx-scene { min-height: 0; } }
@media (max-width: 640px) { .fx-caso { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .fx-spin { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .aml-fx [data-p], .aml-fx [data-hasta], .fx-doc, .fx-item, .aml-fx .fx-fly, .aml-fx .fx-cursor { transition: none; }
  .fx-caret, .aml-fx .fx-press.is-on { animation: none; }
}
/* Calculadora sola a todo el ancho en la vista de SageMind (el ejemplo del chat pasó a «Casos de uso») */
.aml-duo.is-solo { grid-template-columns: minmax(0, 1fr); }
.aml-duo.is-solo .aml-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
.aml-duo.is-solo .aml-calc > h2, .aml-duo.is-solo .aml-calc > p { grid-column: 1 / -1; }
.aml-duo.is-solo .aml-calc-out { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
@media (max-width: 767px) { .aml-duo.is-solo .aml-calc { grid-template-columns: minmax(0, 1fr); } .aml-duo.is-solo .aml-calc-out { grid-column: auto; grid-row: auto; } }
