/* WAV ops — automatización de pedidos de la tienda WAV. Página independiente. */
@font-face { font-family: 'WAV Archivo'; src: url('../assets/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'WAV Manrope'; src: url('../assets/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #0b0e13;
  --panel-2: #10141b;
  --line: #ffffff14;
  --line-2: #ffffff24;
  --text: #f0f2ec;
  --muted: #a1a9b5;
  --soft: #7d8796;
  --lime: #c6ee6a;
  --lime-ink: #121708;
  --cyan: #59e8ef;
  --violet: #8a4fe0;
  --violet-soft: #b88eff;
  --warn: #ffb35c;
  --danger: #ff8a7a;
  --lavanda: #afa0d7;
  --grafito: #6a6a73;
  --lima: #c9de84;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --display: 'WAV Archivo', 'WAV Manrope', Arial, sans-serif;
  --body: 'WAV Manrope', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
  font-family: var(--body);
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
em, i, cite, q { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
:is(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-style: normal; margin: 0; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 800; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

main, .ops-top, .ops-footer { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }

/* Barra superior ------------------------------------------------------- */
.ops-strip { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 36px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #0a0d11; color: #c4cbd5; font-size: 13px; text-align: center; }
.ops-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.ops-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 0; }
.ops-back, .ops-store { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #cfd6df; font-size: 15px; font-weight: 600; transition: color .2s; }
.ops-back:hover, .ops-store:hover { color: var(--lime); }
.ops-store { justify-self: end; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.ops-mark { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--display); font-size: 34px; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.ops-mark span { color: var(--lime); }
.ops-mark small { margin-left: 8px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); border-radius: 999px; color: var(--lime); font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-6px); }

/* Botones -------------------------------------------------------------- */
.ops-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 800; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.ops-btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--lime) 70%, transparent); }
.ops-btn-primary:hover { background: #d8f88f; transform: translateY(-1px); }
.ops-btn-ghost { border-color: var(--line-2); background: #ffffff05; color: var(--text); }
.ops-btn-ghost:hover { border-color: #ffffff55; background: #ffffff0a; }
.ops-btn-sm { min-height: 46px; padding: 0 16px; font-size: 15px; }
.ops-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ops-btn.is-running { pointer-events: none; opacity: .75; }

/* Portada -------------------------------------------------------------- */
.ops-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ops-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ops-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; margin-top: 10px; padding: 56px; overflow: clip; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(50% 70% at 85% 30%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 70%), radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--lime) 8%, transparent), transparent 70%), linear-gradient(180deg, #0b0e13, #07090c); }
.ops-hero h1 { margin: 22px 0 22px; font-size: clamp(42px, 4.9vw, 72px); font-weight: 820; letter-spacing: -.055em; line-height: .98; }
.ops-hero h1 span { color: var(--lime); }
.ops-lead { max-width: 520px; margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.ops-lead q { color: var(--text); quotes: '“' '”'; }
.ops-lead-strong { color: var(--text); font-weight: 600; }
.ops-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ops-hero-visual { position: relative; margin: 0; }
.ops-hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--r-lg); filter: saturate(.9) brightness(.82); }
.ops-hero-visual figcaption { margin-top: 10px; color: var(--soft); font-size: 12px; text-align: right; }
.ops-float { position: absolute; display: grid; gap: 3px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: #0b0e13ee; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px #000000a0; font-size: 13px; animation: opsBob 6s ease-in-out infinite; }
.ops-float b { font-size: 14px; }
.ops-float span { color: var(--muted); font-size: 12px; }
.ops-float-pay { left: -24px; top: 12%; border-left: 3px solid var(--lime); }
.ops-float-stock { right: -18px; top: 44%; grid-template-columns: auto 1fr; column-gap: 10px; border-left: 3px solid var(--warn); animation-delay: -2s; }
.ops-float-stock i { grid-row: span 2; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.ops-float-chat { left: 12%; bottom: 40px; max-width: 280px; border-radius: 16px 16px 16px 4px; background: #11261aee; border-color: #2f6b45; color: #e7f6ea; animation-delay: -4s; }
.ops-float-chat span { color: #8fd3a5; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@keyframes opsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Demo en vivo --------------------------------------------------------- */
.ops-live { margin-top: 100px; }
.ops-live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.ops-live-head h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; max-width: 720px; }
.ops-live-tools { display: flex; flex-wrap: wrap; gap: 10px; }

.ops-rail { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 22px 18px; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.ops-rail::before, .ops-rail::after { content: ''; position: absolute; left: calc(18px + 100% / 14); right: calc(18px + 100% / 14); top: 45px; height: 2px; border-radius: 2px; background: var(--line-2); }
.ops-rail::after { right: auto; width: calc((100% - 36px - 100% / 7) * var(--progress, 0)); background: linear-gradient(90deg, var(--lime), var(--cyan)); box-shadow: 0 0 12px color-mix(in srgb, var(--lime) 60%, transparent); transition: width .6s var(--ease); }
.ops-rail li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ops-node { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border: 1px solid var(--line-2); border-radius: 50%; background: #0d1117; color: #8d97a5; transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.ops-node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ops-rail b { font-size: 14px; }
.ops-rail small { color: var(--soft); font-size: 12px; line-height: 1.35; }
.ops-rail li.is-done .ops-node { border-color: color-mix(in srgb, var(--lime) 50%, transparent); background: color-mix(in srgb, var(--lime) 12%, #0d1117); color: var(--lime); }
.ops-rail li.is-active .ops-node { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 16%, transparent), 0 0 30px color-mix(in srgb, var(--lime) 50%, transparent); transform: scale(1.08); }
.ops-rail li.is-active b { color: var(--lime); }

.ops-board { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ops-side { display: grid; gap: 22px; align-content: start; }
.ops-log { position: sticky; top: 16px; }
.ops-main { display: grid; gap: 18px; min-width: 0; }
.ops-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.ops-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 18px; }
.ops-card-head h3 { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.ops-tag { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--violet-soft) 14%, transparent); color: var(--violet-soft); font-size: 12px; font-weight: 700; }
.ops-muted { color: var(--soft); font-size: 13px; }
.ops-muted b { color: var(--text); }

/* Formulario */
.ops-field { display: grid; gap: 8px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.ops-field > span, .ops-field > legend { padding: 0; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ops-field > legend { margin-bottom: 8px; }
.ops-field input, .ops-field select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #07090c; color: var(--text); font-size: 15px; transition: border-color .2s; }
.ops-field input:hover, .ops-field select:hover { border-color: #ffffff44; }
.ops-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ops-people { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-people button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: #cbd2db; font-size: 13px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.ops-people button:hover { border-color: #ffffff55; }
.ops-people button[aria-pressed="true"] { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); }
.ops-finishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ops-finish { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: #07090c; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ops-finish input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ops-finish img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 6px 8px #000000a0); }
.ops-finish b { font-size: 13px; }
.ops-finish small { color: var(--soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.ops-finish small.is-low { color: var(--warn); }
.ops-finish small.is-out { color: var(--danger); }
.ops-finish:has(input:checked) { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 8%, #07090c); }
.ops-finish:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ops-stepper { display: inline-flex; align-items: center; justify-content: space-between; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #07090c; }
.ops-stepper button { width: 46px; height: 44px; border: 0; border-radius: 11px; background: transparent; font-size: 20px; transition: background-color .2s, color .2s; }
.ops-stepper button:hover:not(:disabled) { background: #ffffff0d; color: var(--lime); }
.ops-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.ops-stepper output { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ops-pay { display: flex; flex-wrap: wrap; gap: 4px; }
.ops-pay label { position: relative; flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px; color: #cbd2db; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.ops-pay input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ops-pay label:has(input:checked) { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); }
.ops-pay label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ops-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.ops-total strong { color: var(--text); font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ops-form-msg { min-height: 0; margin: 0 0 10px; color: var(--danger); font-size: 14px; line-height: 1.5; }
.ops-form-msg:empty { display: none; }
.ops-submit { width: 100%; justify-content: space-between; }
.ops-order.is-flash { animation: opsFlash .9s ease-out; }
@keyframes opsFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 50%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* Registro */
.ops-live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ops-live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: opsPulse 1.6s ease-in-out infinite; }
@keyframes opsPulse { 50% { opacity: .3; } }
.ops-log-list { display: grid; gap: 0; max-height: 360px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
.ops-log-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ops-log-list li:last-child { border-bottom: 0; }
.ops-log-list li.is-new { animation: opsIn .55s var(--ease) both; }
.ops-log-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #ffffff0a; color: var(--muted); }
.ops-log-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-log-list [data-type="pay"] .ops-log-ico, .ops-log-list [data-type="order"] .ops-log-ico { color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); }
.ops-log-list [data-type="stock"] .ops-log-ico, .ops-log-list [data-type="restock"] .ops-log-ico { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.ops-log-list [data-type="alert"] .ops-log-ico, .ops-log-list [data-type="block"] .ops-log-ico { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ops-log-list [data-type="msg"] .ops-log-ico { color: #7fdc9b; background: #7fdc9b1c; }
.ops-log-list [data-type="doc"] .ops-log-ico, .ops-log-list [data-type="ship"] .ops-log-ico { color: var(--violet-soft); background: color-mix(in srgb, var(--violet-soft) 14%, transparent); }
.ops-log-text { font-size: 14px; line-height: 1.45; }
.ops-log-text time { display: block; margin-top: 2px; color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes opsIn { from { opacity: 0; transform: translateY(-8px); } }

/* Vistas */
.ops-views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.ops-views button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 13px; background: transparent; color: #c2c9d3; font-size: 15px; font-weight: 750; transition: background-color .25s, color .25s; }
.ops-views svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-views button:hover { color: #fff; }
.ops-views button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.ops-view { display: grid; gap: 18px; animation: opsView .5s var(--ease) both; }
@keyframes opsView { from { opacity: 0; transform: translateY(10px); } }

/* KPIs */
.ops-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ops-kpi { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.ops-kpi span { color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ops-kpi strong { display: block; margin-top: 8px; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.ops-kpi.is-bump { animation: opsBump .9s var(--ease); }
@keyframes opsBump { 0% { border-color: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 18%, transparent); } 100% { border-color: var(--line); box-shadow: none; } }
.ops-grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; }

/* Inventario */
.ops-stock { display: grid; gap: 14px; }
.ops-stock-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ops-stock-row img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tile) 35%, transparent), transparent 70%), #07090c; }
.ops-stock-row b { display: flex; justify-content: space-between; font-size: 14px; }
.ops-stock-row b small { color: var(--soft); font-weight: 600; }
.ops-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 8px; background: #ffffff10; }
.ops-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: var(--tile); transform-origin: left; transition: transform .8s var(--ease), background-color .3s; }
.ops-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--warn); text-decoration: none; opacity: .8; }
.ops-stock-row.is-low .ops-bar i { background: var(--warn); }
.ops-stock-num { min-width: 46px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.ops-stock-row.is-low .ops-stock-num { color: var(--warn); }
.ops-stock-num.is-tick { animation: opsTick .7s var(--ease); }
@keyframes opsTick { 0% { transform: translateY(-10px); opacity: 0; color: var(--lime); } }
.ops-restock { margin-top: 18px; padding: 14px 14px 14px 16px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--warn) 8%, transparent); animation: opsIn .5s var(--ease) both; }
.ops-restock p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #f3e3cf; }
.ops-restock p b { color: var(--warn); }
.ops-restock .ops-btn { min-height: 44px; padding: 0 16px; font-size: 14px; background: var(--warn); color: #1d1206; box-shadow: none; }
.ops-restock .ops-btn:hover { background: #ffc683; }

/* Gráfico */
.ops-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; height: 196px; padding-top: 10px; }
.ops-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 8px; height: 100%; }
.ops-col strong { font-family: var(--display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ops-col-track { position: relative; width: 100%; max-width: 64px; border-radius: 12px 12px 6px 6px; background: #ffffff08; overflow: hidden; }
.ops-col-track i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--tile), color-mix(in srgb, var(--tile) 45%, transparent)); transform-origin: bottom; transition: transform .9s var(--ease); }
.ops-col span { color: var(--muted); font-size: 13px; }

/* Pedidos */
.ops-orders { display: grid; gap: 8px; }
.ops-order-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 112px 206px; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #07090c; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ops-order-row:hover { border-color: #ffffff33; }
.ops-order-row.is-selected { border-color: color-mix(in srgb, var(--lime) 60%, transparent); background: color-mix(in srgb, var(--lime) 5%, #07090c); }
.ops-order-row.is-new { animation: opsIn .6s var(--ease) both; }
.ops-order-row img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tile) 35%, transparent), transparent 70%), #0d1117; }
.ops-order-main { min-width: 0; }
.ops-order-main b { display: block; font-size: 14px; }
.ops-order-main span { display: block; overflow: hidden; color: var(--soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ops-order-pick { all: unset; position: absolute; inset: 0; border-radius: 16px; cursor: pointer; }
.ops-order-pick:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ops-order-row { position: relative; }
.ops-order-row > :not(.ops-order-pick) { position: relative; pointer-events: none; }
.ops-order-row .ops-next { pointer-events: auto; }
.ops-pill { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 5px 10px; border-radius: 999px; background: #ffffff0d; color: #cbd2db; font-size: 12px; font-weight: 750; white-space: nowrap; }
.ops-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ops-pill[data-s="pagado"] { color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); }
.ops-pill[data-s="empacado"] { color: var(--violet-soft); background: color-mix(in srgb, var(--violet-soft) 14%, transparent); }
.ops-pill[data-s="en-camino"] { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.ops-pill[data-s="entregado"] { color: #9aa3b0; }
.ops-next, .ops-done { justify-self: end; }
.ops-next { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #ffffff06; color: var(--text); font-size: 13px; font-weight: 750; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.ops-next:hover { border-color: var(--lime); color: var(--lime); }
.ops-done { color: var(--soft); font-size: 12px; white-space: nowrap; }

/* Documentos */
.ops-docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ops-doc { position: relative; padding: 22px; border-radius: var(--r-lg); }
.ops-doc.is-fresh { animation: opsDoc .7s var(--ease) both; }
@keyframes opsDoc { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ops-invoice { background: #f4f2ea; color: #1b1d20; box-shadow: 0 20px 40px #00000080; }
.ops-doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #00000026; }
.ops-doc-brand { font-family: var(--display); font-size: 26px; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.ops-doc-brand span { color: #5d7b10; }
.ops-doc-meta { text-align: right; font-size: 11px; line-height: 1.5; color: #5b5f66; }
.ops-doc-meta b { display: block; color: #1b1d20; font-size: 13px; letter-spacing: .02em; }
.ops-invoice dl { margin: 14px 0 0; font-size: 13px; }
.ops-invoice dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.ops-invoice dt { color: #5b5f66; }
.ops-invoice dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ops-invoice .ops-inv-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid #0000001f; font-size: 15px; }
.ops-invoice .ops-inv-total dt { color: #1b1d20; font-weight: 800; }
.ops-doc-foot { margin: 14px 0 0; padding: 8px 10px; border-radius: 8px; background: #00000008; color: #6b7078; font-size: 11px; line-height: 1.5; }
.ops-doc-kicker { display: inline-block; margin-bottom: 4px; color: #6b7078; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ops-label { display: flex; flex-direction: column; background: #fbfaf6; color: #111; box-shadow: 0 20px 40px #00000080; border: 2px solid #111; border-radius: 14px; }
.ops-label-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #111; margin-top: 14px; }
.ops-label-grid > div { padding: 10px 0 10px; font-size: 12px; line-height: 1.45; }
.ops-label-grid > div + div { padding-left: 12px; border-left: 2px solid #111; }
.ops-label-grid b { display: block; font-size: 14px; }
.ops-label-grid small { display: block; color: #555; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ops-barcode { display: block; width: 100%; height: 64px; margin-top: 4px; border-top: 2px solid #111; padding-top: 12px; }
.ops-barcode rect { fill: #111; }
.ops-track-num { margin: 6px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-align: center; }
.ops-label-city { display: block; margin: 2px 0 4px; font-family: var(--display); font-size: 30px; font-weight: 850; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.ops-empty-doc { display: grid; place-content: center; min-height: 240px; text-align: center; color: #6b7078; font-size: 14px; }

/* Vista del cliente */
.ops-client { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.ops-phone { position: relative; padding: 12px; border: 1px solid #ffffff2a; border-radius: 46px; background: linear-gradient(160deg, #23262d, #0c0e12); box-shadow: inset 0 0 0 2px #00000080, 0 30px 60px #000000b0, 0 0 80px color-mix(in srgb, var(--violet) 22%, transparent); }
.ops-phone-notch { position: absolute; z-index: 2; left: 50%; top: 22px; width: 96px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.ops-phone-screen { height: 640px; overflow-y: auto; border-radius: 36px; background: #f5f3ee; color: #15171a; scrollbar-width: none; }
.ops-phone-screen::-webkit-scrollbar { display: none; }
.tk-top { display: flex; justify-content: space-between; align-items: center; padding: 54px 20px 14px; background: #050608; color: #f0f2ec; }
.tk-top .ops-doc-brand { font-size: 24px; }
.tk-top .ops-doc-brand span { color: var(--lime); }
.tk-top small { color: #a1a9b5; font-size: 11px; }
.tk-hero { padding: 18px 20px 20px; background: #050608; color: #f0f2ec; border-radius: 0 0 26px 26px; }
.tk-hero p { margin: 0; color: #a1a9b5; font-size: 13px; }
.tk-hero h4 { margin: 4px 0 14px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.tk-prod { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #ffffff0c; }
.tk-prod img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tile) 40%, transparent), transparent 70%), #0d1117; }
.tk-prod b { display: block; font-size: 14px; }
.tk-prod span { color: #a1a9b5; font-size: 12px; }
.tk-body { padding: 20px; }
.tk-steps { margin: 0; padding: 0; list-style: none; }
.tk-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.tk-steps li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: #d9d6cc; }
.tk-steps li:last-child::before { display: none; }
.tk-steps li.is-done::before { background: #1b1d20; }
.tk-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #c9c5ba; border-radius: 50%; background: #f5f3ee; color: transparent; font-size: 13px; font-weight: 900; transition: background-color .4s, border-color .4s, color .4s; }
.tk-steps li.is-done .tk-dot { border-color: #1b1d20; background: #1b1d20; color: var(--lime); }
.tk-steps li.is-current .tk-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 55%, transparent); }
.tk-steps b { display: block; font-size: 14px; }
.tk-steps span { color: #6b7078; font-size: 12px; }
.tk-steps li:not(.is-done) b { color: #8b8f96; }
.tk-card { margin-top: 4px; padding: 14px; border: 1px solid #00000014; border-radius: 16px; background: #fff; font-size: 13px; }
.tk-card small { display: block; color: #6b7078; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tk-card b { display: block; margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .08em; }
.tk-card + .tk-card { margin-top: 10px; }
.tk-help { margin: 14px 0 6px; color: #6b7078; font-size: 12px; text-align: center; }
.ops-client-side { display: grid; gap: 18px; min-width: 0; }
.ops-chat-list { display: grid; gap: 10px; max-height: 380px; overflow-y: auto; padding: 16px; border-radius: 16px; background: #0b1a12 radial-gradient(#ffffff06 1px, transparent 1px) 0 0 / 14px 14px; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
.ops-bubble { justify-self: start; max-width: 92%; margin: 0; padding: 10px 12px 8px; border-radius: 4px 14px 14px 14px; background: #1f3a2a; color: #e7f6ea; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 0 #00000040; }
.ops-bubble.is-new { animation: opsBubble .5s var(--ease) both; }
@keyframes opsBubble { from { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: left top; } }
.ops-bubble time { display: block; margin-top: 4px; color: #8fd3a5; font-size: 11px; text-align: right; }
.ops-chat-empty, .ops-mail-empty { color: var(--soft); font-size: 14px; }
.ops-mail { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ops-mail li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ops-mail li:last-child { border-bottom: 0; }
.ops-mail li.is-new { animation: opsIn .5s var(--ease) both; }
.ops-mail i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #050608; border: 1px solid var(--line-2); color: var(--lime); font-family: var(--display); font-weight: 900; font-size: 14px; }
.ops-mail b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-mail span { display: block; overflow: hidden; color: var(--soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ops-mail time { color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Pasos y cierre ------------------------------------------------------- */
.ops-steps { margin-top: 120px; }
.ops-steps-head h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.ops-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.ops-step-grid li { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.ops-step-grid li > span { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.ops-step-grid h3 { margin: 10px 0 14px; font-size: 24px; font-weight: 780; letter-spacing: -.03em; }
.ops-step-grid p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.ops-step-grid p.was { margin-bottom: 10px; color: var(--soft); text-decoration: line-through; text-decoration-color: #ffffff30; }
.ops-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 90px; padding: 48px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(60% 120% at 100% 50%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 70%), radial-gradient(50% 100% at 0% 0%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%), var(--panel); }
.ops-cta h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.ops-cta p { max-width: 520px; margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.ops-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ops-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 70px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.ops-footer p { max-width: 560px; margin: 0; color: var(--soft); font-size: 13px; line-height: 1.6; }
.ops-noscript { position: fixed; inset: auto 16px 16px; padding: 14px; border-radius: 12px; background: var(--warn); color: #1d1206; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .ops-board { grid-template-columns: minmax(0, 1fr); }
  .ops-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ops-log { position: static; }
  .ops-client { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  main, .ops-top, .ops-footer { width: calc(100% - 32px); }
  .ops-hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 22px 28px; border-radius: 26px; }
  .ops-float-pay { left: 8px; top: 8px; }
  .ops-float-stock { right: 8px; top: auto; bottom: 34%; }
  .ops-float-chat { left: 8px; bottom: 34px; max-width: 72%; }
  .ops-live { margin-top: 70px; }
  .ops-live-head { flex-direction: column; align-items: flex-start; }
  .ops-rail { display: flex; overflow-x: auto; gap: 0; padding: 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ops-rail::-webkit-scrollbar { display: none; }
  .ops-rail li { flex: 0 0 112px; padding: 0 6px; scroll-snap-align: center; }
  .ops-rail::before, .ops-rail::after { display: none; }
  .ops-side { grid-template-columns: 1fr; }
  .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid2, .ops-docs, .ops-client { grid-template-columns: minmax(0, 1fr); }
  .ops-phone { width: min(100%, 340px); justify-self: center; }
  .ops-step-grid { grid-template-columns: 1fr; }
  .ops-cta { flex-direction: column; align-items: flex-start; padding: 32px 22px; }
  .ops-cta-actions { justify-content: flex-start; }
  .ops-steps { margin-top: 80px; }
}
@media (max-width: 560px) {
  .ops-top { grid-template-columns: 1fr auto; }
  .ops-top .ops-mark { display: none; }
  .ops-strip { font-size: 12px; }
  .ops-hero-actions .ops-btn { width: 100%; }
  .ops-live-tools { width: 100%; }
  .ops-live-tools .ops-btn { flex: 1; }
  .ops-card { padding: 18px 16px; }
  .ops-row2 { grid-template-columns: 1fr; gap: 0; }
  .ops-order-row { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "img main" "img pill" "img act"; gap: 8px 12px; align-items: center; }
  .ops-order-row .ops-pill, .ops-order-row .ops-next, .ops-order-row .ops-done { justify-self: start; }
  .ops-order-row img { grid-area: img; align-self: start; width: 40px; height: 40px; }
  .ops-order-main { grid-area: main; }
  .ops-order-row .ops-pill { grid-area: pill; }
  .ops-order-row .ops-next, .ops-order-row .ops-done { grid-area: act; }
  .ops-strip-extra { display: none; }
  .ops-float-stock { display: none; }
  .ops-float-chat { max-width: 78%; }
  .ops-doc-top { flex-direction: column; }
  .ops-doc-meta { text-align: left; }
  .ops-views button { font-size: 13px; gap: 6px; padding: 0 6px; }
  .ops-views svg { display: none; }
  .ops-kpi { padding: 14px; }
  .ops-footer { flex-direction: column; align-items: flex-start; }
  .ops-phone-screen { height: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
