/* Service pages: the live screens over the engineer's desk in "Services we provide".
   Every screen is one of fourteen kinds (flow, checks, log, chart, code, board, deploy, chat, bars, design,
   device, funnel, tests, gantt); the page's generator fills each with its own service's data. They are drawn at
   520 × 360 and scaled to the stage by ../../../industrias/comun/js/industria.js (the frame lives in industria.css).
   Every figure, name and status in them is illustrative interface, not a claim. Animated by ../js/pantallas.js. */

.scr-in { display: flex; flex-direction: column; gap: 12px; }
.scr .sv-mono { font-family: var(--f-code); font-size: 11.5px; }
.sv-dim { color: var(--mute-d); }
.sv-ok { color: #5fd6a0; }
.sv-warn { color: #ffb68b; }
.sv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sv-head small { font-size: 12px; color: var(--mute-d); }
.sv-head b { font-size: 26px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(43,182,115,.16); color: #8ce0b7; box-shadow: inset 0 0 0 1px rgba(95,214,160,.35); white-space: nowrap; }
.sv-pill.is-blue { background: rgba(1,96,231,.2); color: #a9c6ff; box-shadow: inset 0 0 0 1px rgba(126,168,255,.4); }
.sv-pill.is-warn { background: var(--orange-soft); color: #ffb68b; box-shadow: inset 0 0 0 1px rgba(255,158,104,.5); }
.sv-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--mute-d); }
.sv-kv { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.sv-kv span { padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sv-kv em { display: block; font-size: 11px; color: var(--mute-d); }
.sv-kv b { display: block; margin-top: 3px; font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- flow: a pipeline whose stages light up as a packet passes ---------- */
.sv-flow { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 22px 0 8px; }
.sv-flow::before { content: ""; position: absolute; left: 24px; right: 24px; top: calc(50% + 7px); border-top: 1.4px dashed rgba(255,255,255,.22); }
.sv-node {
  position: relative; z-index: 1; flex: 1; min-width: 0; padding: 10px 6px; border-radius: 12px; text-align: center;
  font-size: 12px; font-weight: 500; line-height: 1.2; background: rgba(28,29,34,.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.sv-node small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--mute-d); font-weight: 400; }
.sv-node.is-on { background: rgba(1,96,231,.3); box-shadow: inset 0 0 0 1px rgba(126,168,255,.6); }
.sv-node.is-on:last-child { background: rgba(43,182,115,.24); box-shadow: inset 0 0 0 1px rgba(95,214,160,.6); }
.sv-pkt { position: absolute; z-index: 2; left: 0; top: calc(50% + 2px); width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(236,98,25,.22); opacity: 0; }
.sv-tag { align-self: flex-start; }

/* ---------- checks: rows that pass one by one, then a result ---------- */
.sv-list { display: grid; }
.sv-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sv-row b { font-family: var(--f-code); font-size: 12px; color: rgba(255,255,255,.8); transition: color .3s; }
.sv-row.is-on b { color: #8ce0b7; }
.sv-result { align-self: flex-start; }

/* ---------- log: requests or events arriving ---------- */
.sv-log { display: grid; font-family: var(--f-code); font-size: 12px; }
.sv-log li { display: grid; grid-template-columns: 54px minmax(0, 1fr) 40px 54px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.sv-log li > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-log li b { font-weight: 500; color: #a9c6ff; }
.sv-log li em { color: #8ce0b7; }
.sv-log li em.is-warn { color: #ffb68b; }
.sv-log li small { color: var(--mute-d); text-align: right; }

/* ---------- chart: a metric line drawing itself ---------- */
.sv-chart { position: relative; flex: 1; min-height: 120px; }
.sv-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sv-chart .sv-grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sv-line { fill: none; stroke: #7ea8ff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sv-line.is-b { stroke: rgba(255,255,255,.3); stroke-dasharray: 4 4; }
.sv-area { fill: url(#sv-fade); }
.sv-mark { position: absolute; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 8px; font-size: 11.5px; white-space: nowrap; background: #fff; color: var(--ink); box-shadow: 0 10px 20px -10px #000; }
.sv-mark::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: #fff; }

/* ---------- code: an editor, a suggestion accepted with Tab, then the tests ---------- */
.sv-ed { margin: 0; padding: 4px 0; font-family: var(--f-code); font-size: 12.5px; line-height: 1.75; white-space: pre; color: rgba(255,255,255,.86); counter-reset: ln; overflow: hidden; }
.sv-ed span { display: block; }
.sv-ed span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 26px; color: rgba(255,255,255,.25); }
.sv-ed .k { color: #c39bff; font-weight: 400; }
.sv-ed .f { color: #7ea8ff; font-weight: 400; }
.sv-ed .s { color: #8ce0b7; font-weight: 400; }
.sv-ed .c { color: rgba(255,255,255,.38); font-weight: 400; }
.sv-ed .sv-ghost { color: rgba(255,255,255,.34); }
.sv-ed .sv-ghost.is-in { color: rgba(255,255,255,.86); }
.sv-key { position: absolute; right: 20px; top: 58px; padding: 4px 10px; border-radius: 6px; font: 500 12px var(--f-code); background: #fff; color: var(--ink); box-shadow: 0 3px 0 #9aa0a8; opacity: 0; }

/* ---------- board: cards moving across a sprint ---------- */
.sv-board { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.sv-col { display: flex; flex-direction: column; gap: 7px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.04); }
.sv-col > small { font-size: 11px; color: var(--mute-d); }
.sv-card { padding: 8px 9px; border-radius: 9px; font-size: 11.5px; line-height: 1.3; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.sv-card i { display: block; width: 26px; height: 3px; margin-bottom: 6px; border-radius: 2px; background: var(--c, #7ea8ff); }
.sv-col:last-child .sv-card { color: rgba(255,255,255,.75); }

/* ---------- deploy: instances scaling out with a rolling update ---------- */
.sv-pods { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.sv-pod { aspect-ratio: 1.25; border-radius: 9px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background-color .35s, box-shadow .35s; position: relative; }
.sv-pod.is-on { background: rgba(43,182,115,.22); box-shadow: inset 0 0 0 1px rgba(95,214,160,.55); }
.sv-pod.is-new { background: rgba(1,96,231,.3); box-shadow: inset 0 0 0 1px rgba(126,168,255,.65); }
.sv-pod::after { content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.sv-pod.is-on::after { background: #5fd6a0; }
.sv-prog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.sv-prog i { display: block; height: 100%; background: #7ea8ff; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }

/* ---------- chat: a question, an answer streaming in, its sources ---------- */
.sv-chat { display: flex; flex-direction: column; gap: 10px; }
.sv-q { align-self: flex-end; max-width: 78%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: 13px; background: var(--blue); }
.sv-a { max-width: 92%; padding: 11px 13px; border-radius: 14px 14px 14px 4px; font-size: 13px; line-height: 1.45; background: rgba(255,255,255,.08); min-height: 3.2em; }
.sv-src { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-src i { font-style: normal; padding: 4px 9px; border-radius: 7px; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.sv-src i::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 1px; background: #ffb68b; vertical-align: 1px; }

/* ---------- bars: before and after, per metric ---------- */
.sv-bars { display: grid; gap: 14px; }
.sv-bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 66px; align-items: center; gap: 12px; font-size: 12.5px; }
.sv-bar > span:first-child { color: rgba(255,255,255,.82); }
.sv-track { position: relative; display: grid; gap: 4px; }
.sv-track i { display: block; height: 9px; border-radius: 5px; transform-origin: 0 50%; }
.sv-track .is-before { width: calc(var(--a) * 100%); background: rgba(255,255,255,.18); }
.sv-track .is-after { width: calc(var(--b) * 100%); background: linear-gradient(90deg, #4f8bff, #7ea8ff); }
.sv-bar b { font-family: var(--f-code); font-size: 12px; text-align: right; color: #8ce0b7; }
.sv-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--mute-d); }
.sv-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: rgba(255,255,255,.18); }
.sv-legend i.is-after { background: #7ea8ff; }

/* ---------- design: a wireframe filling into the finished interface ---------- */
.sv-art { position: relative; flex: 1; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; min-height: 0; }
.sv-art > div { display: grid; gap: 8px; align-content: start; }
.sv-blk { position: relative; height: var(--h, 22px); border-radius: 8px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; }
.sv-blk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fill, #fff); opacity: 0; transition: opacity .5s; }
.sv-art.is-done .sv-blk::after { opacity: 1; }
.sv-blk em { position: absolute; z-index: 1; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: rgba(255,255,255,.5); transition: color .5s; }
.sv-art.is-done .sv-blk em { color: var(--ink-on, var(--ink)); }
.sv-tok { display: flex; gap: 6px; }
.sv-tok i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.sv-cur { position: absolute; z-index: 3; left: 0; top: 0; width: 18px; height: 18px; opacity: 0; }
.sv-cur svg { width: 100%; height: 100%; fill: #fff; stroke: #000; stroke-width: 1; }

/* ---------- device: an app on a phone, checked on a row of devices ---------- */
.sv-dev { flex: 1; display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 22px; min-height: 0; }
.sv-phone { position: relative; height: 296px; border-radius: 26px; padding: 30px 12px 12px; background: #f6f7f9; color: var(--ink); box-shadow: 0 0 0 5px #24262c, 0 24px 40px -18px #000; overflow: hidden; display: flex; flex-direction: column; gap: 7px; font-size: 11px; }
.sv-phone::before { content: ""; position: absolute; left: 50%; top: 9px; width: 46px; height: 12px; margin-left: -23px; border-radius: 8px; background: #24262c; }
.sv-phone b { font-weight: 600; }
.sv-phone > b { font-size: 16px; letter-spacing: -.02em; }
.sv-ph-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sv-ph-row em { font-style: normal; color: #6b7280; }
.sv-ph-btn { margin-top: auto; padding: 8px; border-radius: 999px; text-align: center; font-weight: 600; background: var(--ink); color: #fff; }
.sv-toast { position: absolute; left: 10px; right: 10px; top: 28px; padding: 8px 10px; border-radius: 10px; font-size: 10.5px; background: rgba(26,26,26,.94); color: #fff; opacity: 0; }

/* ---------- funnel: a journey with its drop-offs ---------- */
.sv-funnel { display: grid; gap: 9px; }
.sv-step { display: grid; grid-template-columns: 112px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 12.5px; }
.sv-step i { display: block; height: 22px; border-radius: 6px; background: linear-gradient(90deg, rgba(1,96,231,.75), rgba(126,168,255,.55)); width: calc(var(--v) * 100%); transform-origin: 0 50%; }
.sv-step.is-drop i { background: linear-gradient(90deg, rgba(236,98,25,.8), rgba(255,158,104,.55)); }
.sv-step b { font-family: var(--f-code); font-size: 12px; text-align: right; }

/* ---------- tests: suites running with counters ---------- */
.sv-suites { display: grid; }
.sv-suite { display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sv-suite b { font-family: var(--f-code); font-size: 12px; text-align: right; color: var(--mute-d); }
.sv-suite.is-on b { color: #8ce0b7; }
.sv-spin { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }

/* ---------- gantt: a roadmap whose phases ship ---------- */
.sv-gantt { position: relative; display: grid; gap: 10px; padding-top: 22px; }
.sv-months { position: absolute; left: 132px; right: 0; top: 0; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mute-d); }
.sv-g { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 12.5px; }
.sv-g > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.86); }
.sv-lane { position: relative; height: 24px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16.66%); }
.sv-lane i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); width: calc(var(--l) * 100%); border-radius: 6px; background: rgba(1,96,231,.55); box-shadow: inset 0 0 0 1px rgba(126,168,255,.6); transform-origin: 0 50%; display: flex; align-items: center; padding-left: 8px; font-style: normal; font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.sv-lane i.is-done { background: rgba(43,182,115,.4); box-shadow: inset 0 0 0 1px rgba(95,214,160,.6); }
