/* Tema oscuro "dashboard técnico" sobre reveal.js */

:root {
  --bg: #0a0f1f;
  --panel: #111a33;
  --panel-2: #0e1630;
  --line: #24304f;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #38bdf8;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --orange: #fb923c;
  --purple: #a78bfa;
  --pink: #f472b6;
  --teal: #2dd4bf;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --r-background-color: var(--bg);
  --r-main-font: var(--sans);
  --r-main-font-size: 24px;
  --r-main-color: var(--text);
  --r-heading-font: var(--sans);
  --r-heading-color: #f8fafc;
  --r-heading-font-weight: 800;
  --r-heading-text-transform: none;
  --r-heading-letter-spacing: -0.02em;
  --r-link-color: var(--cyan);
  --r-selection-background-color: rgba(56, 189, 248, .35);
}

html, body { background: var(--bg); }

.reveal-viewport {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(167, 139, 250, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, .10), transparent 60%),
    var(--bg);
}

.reveal { font-family: var(--sans); font-size: var(--r-main-font-size); color: var(--text); }
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; box-sizing: border-box; padding: 6px 4px 0; }
.reveal .controls { color: var(--cyan); }
.reveal .progress { color: var(--cyan); height: 4px; }
.reveal .slide-number { background: transparent; color: var(--dim); font: 13px var(--mono); }

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--sans); color: #f8fafc; font-weight: 800; letter-spacing: -0.02em;
  text-transform: none; line-height: 1.1; margin: 0;
}
.reveal h2 { font-size: 38px; margin-bottom: 14px; }
.reveal p { margin: 0; line-height: 1.4; }
.reveal code { font-family: var(--mono); font-size: .9em; color: var(--cyan); background: rgba(56, 189, 248, .1); padding: 1px 6px; border-radius: 5px; }
.reveal strong, .reveal b { color: #fff; }

.kicker {
  font: 600 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.kicker.red { color: var(--red); }
.kicker.green { color: var(--green); }
.kicker.purple { color: var(--purple); }

/* ---------- layout demo: escenario + panel ---------- */

.demo { display: grid; grid-template-columns: 1fr 350px; gap: 18px; height: 566px; }
.stage {
  position: relative; overflow: hidden; border-radius: 18px;
  background:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0f1731, #0b1226);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .hint {
  position: absolute; left: 16px; bottom: 12px; font: 13px var(--mono); color: var(--muted);
  background: rgba(10, 15, 31, .7); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
}
.stage .legend {
  position: absolute; right: 14px; bottom: 12px; display: flex; gap: 14px; font: 12px var(--mono); color: var(--muted);
  background: rgba(10, 15, 31, .7); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
}
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.panel { display: flex; flex-direction: column; gap: 12px; min-height: 0; font-size: 17px; }
.panel .lead { font-size: 18px; color: #cbd5e1; line-height: 1.45; }
.panel .lead b { color: #fff; }
.panel .points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.panel .points li { font-size: 16px; line-height: 1.35; color: #cbd5e1; padding-left: 4px; }
.panel .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.panel .label { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.panel .spacer { flex: 1; }

/* ---------- controles ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn {
  font: 600 15px var(--sans); color: var(--text); cursor: pointer;
  background: #1a2547; border: 1px solid #2f3d68; border-radius: 10px; padding: 8px 14px;
  transition: transform .1s, background .15s, border-color .15s;
}
.btn:hover { background: #22305c; border-color: #4458a0; }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(180deg, #0ea5e9, #0284c7); border-color: #38bdf8; color: #fff; }
.btn.danger { background: linear-gradient(180deg, #dc2626, #b91c1c); border-color: #f87171; color: #fff; }
.btn.success { background: linear-gradient(180deg, #16a34a, #15803d); border-color: #4ade80; color: #fff; }
.btn.ghost { background: transparent; }
.btn.icon { width: 40px; padding: 8px 0; font-size: 18px; }

.seg { display: inline-flex; background: #0d1530; border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button {
  font: 600 14px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 8px;
  padding: 7px 12px; cursor: pointer;
}
.seg button.active { background: #22305c; color: #fff; box-shadow: 0 0 0 1px #4458a0 inset; }

.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--cyan); height: 6px; }
.rate-out { font: 700 16px var(--mono); color: var(--cyan); min-width: 86px; text-align: right; }
.util-out { font: 700 14px var(--mono); padding: 2px 8px; border-radius: 6px; }
.util-out.ok { color: var(--green); background: rgba(74, 222, 128, .1); }
.util-out.warn { color: var(--yellow); background: rgba(250, 204, 21, .1); }
.util-out.bad { color: var(--red); background: rgba(248, 113, 113, .12); }
.srv-out { font: 14px var(--mono); color: var(--muted); }
.cap-out { font: 13px var(--mono); color: var(--muted); margin-top: 6px; }
.cap-out b { color: var(--cyan); }
.cap-out b.neck { color: var(--red); }
.panel .mode-text { font-size: 15px; line-height: 1.4; color: #cbd5e1; }
.srv-out b { color: var(--cyan); }

.field { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; color: #cbd5e1; }
.field select {
  font: 600 14px var(--sans); color: var(--text); background: #1a2547; border: 1px solid #2f3d68;
  border-radius: 8px; padding: 6px 8px;
}
.field input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cyan); }

/* ---------- widgets ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats[data-fields] { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.stat b { display: block; font: 700 19px var(--mono); color: #fff; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat.s-ok b { color: var(--green); }
.stat.s-slow b { color: var(--yellow); }
.stat.s-err b, .stat.s-errPct b { color: var(--red); }
.stat.s-p95 b { color: var(--yellow); }

.chart-box { position: relative; height: 165px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.chart-box.tall { height: 270px; }


/* ---------- SVG de simulación ---------- */

.netsim text { font-family: var(--sans); }
.netsim .link { fill: none; stroke: #2a3a66; stroke-width: 2.5; transition: stroke .3s, opacity .3s; }
.netsim .link.off { stroke: #6b2a3a; stroke-dasharray: 6 6; opacity: .55; }
.netsim .link.redis-link { stroke: #4a2238; stroke-dasharray: 3 5; }
.netsim .link.hb { stroke: #4c3a7a; stroke-dasharray: 2 6; }
.netsim .node-box { fill: #131c3a; stroke: #3b4b7a; stroke-width: 2; transition: fill .3s, stroke .3s; }

.netsim .client .node-box { stroke: var(--c); fill: color-mix(in srgb, var(--c) 12%, #0f1731); }
.netsim .lb .node-box { fill: #1c1641; stroke: var(--purple); }
.netsim .lb.passive .node-box { fill: #15132b; stroke: #5b4b8f; stroke-dasharray: 5 4; }
.netsim .lb.down .node-box { fill: #3a1018; stroke: var(--red); stroke-dasharray: none; }
.netsim .redis .node-box { fill: #2a1020; stroke: var(--redis, #fb7185); }
.netsim .srv .node-box { fill: #0e2338; stroke: var(--cyan); }
.netsim .srv.v2 .node-box { stroke: var(--teal); fill: #0c2a2c; }
.netsim .srv.draining .node-box { stroke: var(--yellow); stroke-dasharray: 6 4; }
.netsim .srv.unhealthy .node-box { stroke: var(--orange); }
.netsim .srv.deploying .node-box { fill: #33280a; stroke: var(--yellow); }
.netsim .srv.down .node-box { fill: #3a1018; stroke: var(--red); }
.netsim .srv.data .node-box { fill: #0c2a2a; stroke: var(--teal); }
.netsim .srv.data.cache .node-box { fill: #2a1020; stroke: #fb7185; }
.netsim .link.db-link { stroke: #1d4a4a; stroke-width: 1.5; stroke-dasharray: 3 5; }
.netsim .srv.clickable { cursor: pointer; }
.netsim .srv.clickable:hover .node-box { stroke-width: 3.5; filter: brightness(1.25); }

.netsim .t-title { fill: #f1f5f9; font-weight: 700; font-size: 16px; }
.netsim .t-title.small { font-size: 14px; }
.netsim .compact .t-title { font-size: 13px; }
.netsim .t-info { fill: #cbd5e1; font: 600 13px var(--mono); }
.netsim .t-sub { fill: var(--muted); font-size: 12.5px; }
.netsim .t-lb { fill: #c4b5fd; font: 700 13px var(--mono); }
.netsim .t-hb { fill: #c4b5fd; font: 600 13px var(--mono); }
.netsim .t-heart { fill: #c084fc; font-size: 15px; }
.netsim .t-emoji { font-size: 20px; }
.netsim .srv.down .t-sub { fill: var(--red); font-weight: 700; }
.netsim .srv.deploying .t-sub { fill: var(--yellow); font-weight: 700; }
.netsim .srv.draining .t-sub, .netsim .srv.unhealthy .t-sub { fill: var(--orange); }
.netsim .bar-bg { fill: #1e293b; }
.netsim .prog { fill: var(--yellow); }
.netsim .qsq { fill: var(--orange); }
.netsim .chip { stroke: #0a0f1f; stroke-width: 2; }

.netsim .pk { stroke: rgba(255, 255, 255, .28); stroke-width: 2.5; }
.netsim .pk.hc { stroke: none; }
.netsim .pop {
  font: 800 15px var(--mono); paint-order: stroke; stroke: #0a0f1f; stroke-width: 5px; pointer-events: none;
}
.netsim .banner rect { fill: rgba(10, 15, 31, .88); stroke-width: 1.5; }
.netsim .banner text { font: 700 18px var(--sans); }

.netsim .vip rect { fill: #3b2a07; stroke: var(--yellow); stroke-width: 1.5; }
.netsim .vip text { fill: var(--yellow); font: 700 13px var(--mono); }

.netsim .ceil { stroke: var(--red); stroke-width: 2; stroke-dasharray: 10 6; opacity: .6; }
.netsim .ceil.hit { opacity: 1; stroke-width: 4; }
.netsim .ceil-zone { fill: rgba(248, 113, 113, .05); }
.netsim .floor { stroke: #334155; stroke-width: 2; }

/* ---------- tienda (shopsim.js) ---------- */
.netsim .srv.hot .node-box { stroke: var(--orange); }
.netsim .srv.hung .node-box { fill: #33280a; stroke: var(--yellow); stroke-dasharray: 6 4; }
.netsim .srv.hung .t-sub { fill: var(--yellow); font-weight: 700; }
.netsim .srv.data.hot .node-box { stroke: var(--red); fill: #2a1118; }
.netsim .srv.data.hot .t-sub { fill: var(--red); }
.netsim .slot { fill: #0c2a2a; stroke: var(--teal); stroke-width: 1; }
.netsim .slot.on { fill: var(--teal); }
.netsim .pk.pick { cursor: pointer; }
.netsim .pk.picked { stroke: #fff; stroke-width: 3; }

/* ---------- portada ---------- */

.title-slide .bg { position: absolute; top: 40px; left: 40%; width: 64%; height: 92%; opacity: .42; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.title-slide .hero { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-left: 40px; }
.title-slide h1 { font-size: 92px; line-height: 1; letter-spacing: -0.04em; }
.title-slide h1 .grad { background: linear-gradient(90deg, var(--cyan), var(--purple) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-slide .sub { font-size: 28px; color: #cbd5e1; margin-top: 22px; max-width: 760px; }
.title-slide .keys { margin-top: 48px; font: 14px var(--mono); color: var(--dim); }
.keys kbd { font: 600 13px var(--mono); color: var(--text); background: #1a2547; border: 1px solid #2f3d68; border-bottom-width: 3px; border-radius: 6px; padding: 2px 7px; margin: 0 2px; }

/* ---------- L4 vs L7 ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; height: 566px; }
.layer-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.layer-card h3 { font-size: 28px; display: flex; align-items: baseline; gap: 12px; }
.layer-card h3 small { font: 600 14px var(--mono); color: var(--muted); }
.layer-card.l4 { border-top: 4px solid var(--cyan); }
.layer-card.l7 { border-top: 4px solid var(--purple); }
.packet {
  font: 16px/1.7 var(--mono); background: #0a1124; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: #cbd5e1;
}
.packet .seen { color: #fff; background: rgba(56, 189, 248, .14); border-radius: 4px; padding: 0 4px; }
.l7 .packet .seen { background: rgba(167, 139, 250, .2); }
.packet .blur { filter: blur(3.5px); opacity: .55; user-select: none; }
.packet .tag { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.rules { font: 16px/1.8 var(--mono); color: #cbd5e1; }
.rules span { color: var(--purple); }
.layer-card ul { margin: 0; padding-left: 22px; font-size: 20px; line-height: 1.6; color: #cbd5e1; }
.layer-card .ex { margin-top: auto; font: 13px var(--mono); color: var(--muted); }

/* ---------- resumen ---------- */

/* 3 columnas; las filas crecen con la cantidad de tarjetas (hasta 9 entran en el alto de la slide) */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; max-height: 560px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.card .ico { font-size: 30px; }
.card h4 { margin: 0; font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.card p { font-size: 17px; color: #cbd5e1; line-height: 1.45; }
.card.bad { border-top: 3px solid var(--red); }
.card.good { border-top: 3px solid var(--green); }

/* ---------- control de velocidad ---------- */

.speed-ctl {
  position: fixed; left: 14px; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 4px;
  background: rgba(17, 26, 51, .85); border: 1px solid var(--line); border-radius: 10px; padding: 3px;
  font: 600 13px var(--mono); color: var(--muted); opacity: .55; transition: opacity .2s;
}
.speed-ctl:hover { opacity: 1; }
.speed-ctl button { background: transparent; border: 0; cursor: pointer; font-size: 15px; padding: 3px 6px; border-radius: 7px; }
.speed-ctl button:hover { background: #22305c; }
.speed-ctl span { min-width: 40px; text-align: center; }

.keys-mobile { display: none; }

/* ---------- widgets del dashboard: métricas (violeta), logs (gris) y trazas (naranja) ---------- */
.sstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.sstat { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--purple); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.sstat b { display: block; font: 700 19px var(--mono); color: #fff; white-space: nowrap; }
.sstat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sstat.s-errPct b { color: var(--red); }
.sstat.s-sat b { color: var(--yellow); }
.sstats-title { font-size: 12px; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
canvas.svc-chart { display: block; width: 100%; }

.logs { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.log-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.log-btn { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: #cbd5e1; font: 600 12px var(--mono); padding: 4px 9px; cursor: pointer; }
.log-btn.active { background: #cbd5e1; color: #0a0f1f; border-color: #cbd5e1; }
.log-btn.lv-warn.active { background: #facc15; border-color: #facc15; }
.log-btn.lv-error.active { background: #f87171; border-color: #f87171; }
.log-search { flex: 1 1 120px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: #e2e8f0; font: 12px var(--mono); padding: 5px 8px; }
.log-lines { height: 230px; overflow-y: auto; overflow-x: hidden; font: 11.5px/1.45 var(--mono); }
.log-line { white-space: pre-wrap; overflow-wrap: anywhere; color: #cbd5e1; }
.log-line.lv-warn { color: #facc15; }
.log-line.lv-error { color: #f87171; }
.log-line .l-t, .log-line .l-ord, .log-line .l-trace { color: var(--dim); }
.log-empty { color: var(--dim); font: 12px var(--mono); padding: 6px 0; }

.trace { background: var(--panel-2); border: 1px solid var(--orange); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tr-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; color: #cbd5e1; }
.tr-head b { color: var(--orange); font-size: 16px; }
.tr-dur { font: 700 15px var(--mono); color: #fff; }
.tr-id { font: 12px var(--mono); color: var(--dim); }
.tr-st { font: 700 11px var(--mono); border-radius: 6px; padding: 1px 7px; }
.tr-st.ok { background: rgba(74,222,128,.15); color: var(--green); }
.tr-st.err { background: rgba(248,113,113,.15); color: var(--red); }
.t-row { display: grid; grid-template-columns: 62px 1fr 62px; gap: 8px; align-items: center; font: 12px var(--mono); color: #cbd5e1; }
.t-ms { text-align: right; white-space: nowrap; }
.t-track { position: relative; height: 18px; background: rgba(148,163,184,.08); border-radius: 4px; }
.t-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; min-width: 3px; }
.t-bar.fail { box-shadow: inset 0 0 0 2px var(--red); }
.t-row.longest .t-bar { top: 0; bottom: 0; outline: 2px solid var(--orange); outline-offset: 1px; }
.t-row.longest .t-ms, .t-row.longest .t-name { color: var(--orange); font-weight: 700; }
.tr-note { font-size: 13px; color: var(--muted); }
.tr-note b { color: var(--orange); }
.tr-empty { color: var(--dim); font-size: 14px; }

/* ---------- celular (html.mobile): documento vertical con scroll nativo, sin reveal.js ---------- */

html.mobile, html.mobile body { height: auto; overflow: visible; }
html.mobile body {
  margin: 0; color: var(--text); font-family: var(--sans); -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(600px 400px at 100% 0, rgba(167, 139, 250, .14), transparent 60%),
    var(--bg);
}
html.mobile .reveal { position: static; width: auto; height: auto; overflow: visible; touch-action: auto; font-size: 16px; }
html.mobile .reveal .slides {
  position: static; inset: auto; width: auto; height: auto; margin: 0;
  pointer-events: auto; perspective: none; transform: none; text-align: left;
}
html.mobile .reveal .slides > section {
  display: block; position: relative; inset: auto; width: auto; height: auto; min-height: 0;
  padding: 30px 16px 36px; transform: none; opacity: 1; visibility: visible;
  border-bottom: 1px solid var(--line);
  /* reveal.css apaga los eventos de las secciones sin .present, y sin reveal ninguna la tiene */
  pointer-events: auto;
}
html.mobile .reveal .slides section .fragment { opacity: 1; visibility: visible; transform: none; }
html.mobile .reveal aside.notes { display: none; }
html.mobile .reveal h2 { font-size: 25px; margin-bottom: 14px; }
html.mobile .kicker { font-size: 12px; }

html.mobile .m-num { position: absolute; top: 12px; right: 16px; font: 600 11px var(--mono); color: var(--dim); }
html.mobile .m-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cyan); z-index: 40; }

html.mobile .demo { display: flex; flex-direction: column; height: auto; gap: 14px; }
html.mobile .stage { display: flex; flex-direction: column; }
html.mobile .stage svg { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 400 / 440; }
html.mobile .stage .hint,
html.mobile .stage .legend { position: static; align-self: flex-start; margin: 0 10px 10px; }
html.mobile .stage .legend { flex-wrap: wrap; gap: 10px; }
html.mobile .panel { font-size: 15px; gap: 12px; }
html.mobile .panel .lead { font-size: 16px; }
html.mobile .panel .spacer { display: none; }
html.mobile .chart-box { height: 190px !important; }
html.mobile .seg { flex-wrap: wrap; }
html.mobile .btn { padding: 10px 14px; }
html.mobile .log-line .l-trace { display: none; }
html.mobile .log-btn { padding: 8px 12px; }
html.mobile .log-lines { height: 200px; }
html.mobile .t-row { grid-template-columns: 54px 1fr 56px; gap: 6px; }
html.mobile .netsim .banner text { font-size: 14px; }

html.mobile .title-slide { min-height: 82vh; display: flex !important; flex-direction: column; justify-content: center; }
html.mobile .title-slide .bg { display: none; }
html.mobile .title-slide .hero { height: auto; padding-left: 0; }
html.mobile .title-slide h1 { font-size: 54px; }
html.mobile .title-slide .sub { font-size: 20px; }
html.mobile .title-slide .keys { display: none; }
html.mobile .keys-mobile { display: block; margin-top: 32px; font: 14px/1.5 var(--mono); color: var(--muted); }

html.mobile .compare { grid-template-columns: 1fr; height: auto; gap: 16px; }
html.mobile .layer-card { padding: 16px; }
html.mobile .layer-card h3 { font-size: 24px; }
html.mobile .layer-card ul { font-size: 16px; }
html.mobile .packet { font-size: 13px; overflow-wrap: anywhere; }
html.mobile .rules { font-size: 14px; }

html.mobile .summary { grid-template-columns: 1fr; grid-auto-rows: auto; height: auto; max-height: none; gap: 12px; }
html.mobile .card { padding: 16px; }
html.mobile .card h4 { font-size: 20px; }
html.mobile .card p { font-size: 15px; }

html.mobile .speed-ctl { left: auto; right: 10px; bottom: 10px; opacity: .7; font-size: 12px; padding: 2px; gap: 0; }
html.mobile .speed-ctl button { font-size: 16px; padding: 5px 7px; }
html.mobile .speed-ctl span { min-width: 34px; }


/* ---------- slides 1–5: el problema y las métricas ---------- */

/* 1. queja de un usuario: globo genérico sobre Usuarios */
.complaint {
  position: absolute; left: 14px; top: 96px; width: 270px; z-index: 2;
  background: #f8fafc; color: #0f172a; border-radius: 16px; padding: 10px 14px 12px;
  font-size: 16px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  animation: bubble-in .45s cubic-bezier(.2, 1.4, .4, 1);
  transform-origin: 40px 100%;
}
.complaint::after { content: ''; position: absolute; left: 44px; bottom: -12px; border: 7px solid transparent; border-top: 7px solid #f8fafc; border-left: 9px solid #f8fafc; }
.complaint .who { display: block; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: 3px; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.box.blind p { font-size: 15px; color: var(--muted); }
.box.blind .found-out { margin-top: 6px; color: #cbd5e1; }
.box.blind .found-out.late { color: var(--red); }
.box.blind .found-out.late b { color: var(--red); }

/* 2. tres señales: cada una con su color fijo (métricas violeta, logs gris claro, trazas naranja) */
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.sig { --sc: var(--purple); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--sc); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 410px; box-sizing: border-box; }
.sig.l { --sc: #cbd5e1; }
.sig.t { --sc: #fb923c; }
.sig h3 { font-size: 30px; margin: 0; color: var(--sc); }
.sig h3 small { display: block; font: 800 27px var(--sans); color: #fff; margin-bottom: 6px; letter-spacing: -.01em; }
.sig p { font-size: 19px; color: #cbd5e1; line-height: 1.45; }
.sig .ex { margin-top: auto; background: #0b1228; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 128px; box-sizing: border-box; justify-content: center; }
.sig .ex-row { font: 14px var(--mono); color: var(--muted); }
.sig .ex-row b { color: #fff; }
.sig .spark { width: 100%; height: 50px; }
.sig .spark polyline { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sig .ex.mono { font: 13px/1.5 var(--mono); color: #cbd5e1; gap: 4px; }
.sig .ex.mono .w { color: var(--yellow); }
.sig .ex.mono .e { color: var(--red); }
.sig .wf { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; font: 13px var(--mono); color: #cbd5e1; }
.sig .wf i { display: block; height: 18px; border-radius: 3px; background: rgba(251, 146, 60, .45); grid-column: 2; box-sizing: border-box; }
.sig .wf span { grid-column: 1; }
.sig .wf i { grid-row: 1; }
.sig .wf.hot i { background: var(--orange); outline: 2px solid var(--orange); outline-offset: 1px; }
.sig .wf.hot span { color: var(--orange); font-weight: 700; }
.signals-foot { margin-top: 24px !important; font-size: 22px; color: #cbd5e1; text-align: center; }

/* 3. mini dashboard por servicio y un ejemplo vivo de cada tipo de métrica */
.dash { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; }
.dash .label { margin-bottom: 0; }
.dash-row { display: grid; grid-template-columns: 92px 1fr; gap: 6px; align-items: center; }
.dash-svc { font-size: 14px; font-weight: 700; color: #e2e8f0; white-space: nowrap; }
.sstats.mini { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sstats.mini .sstat { padding: 3px 6px; border-radius: 8px; }
.sstats.mini .sstat b { font-size: 14px; }
.sstats.mini .sstat span { font-size: 9.5px; }
.types { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #cbd5e1; }
.types li { line-height: 1.35; }
.types b { color: var(--purple); }
.types code { color: #fff; background: rgba(167, 139, 250, .15); white-space: nowrap; }
.histo-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.histo-mini .hb { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 40px auto; column-gap: 6px; align-items: end; }
.histo-mini .hb i { display: block; height: 0; min-height: 2px; background: var(--purple); border-radius: 3px 3px 0 0; transition: height .25s; align-self: end; }
.histo-mini .hb.bad i { background: var(--red); }
.histo-mini .hb b { font: 700 13px var(--mono); color: #fff; align-self: end; }
.histo-mini .hb span { grid-column: 1 / -1; font: 11px var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 2px; }

/* 4. percentiles grandes */
.sstats.big { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.sstats.big .sstat { padding: 6px 6px; }
.sstats.big .sstat b { font-size: 16px; }
.sstat.s-avg { border-top-color: #cbd5e1; }
.sstat.s-p99 b { color: var(--pink); }
.sstat.s-p95 b { color: var(--purple); }

/* 5. dos sliders en una caja */
.box .slider-row + .slider-row { margin-top: 8px; }
.sl-name { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); width: 62px; }
.sstats.four { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.sstats.four .sstat { padding: 6px 6px; }
.sstats.four .sstat b { font-size: 17px; }
.sstats.four .sstat span, .sstats.big .sstat span { font-size: 10px; letter-spacing: .03em; }
.box.two .rate-out { min-width: 122px; }

html.mobile .complaint { position: relative; top: auto; left: auto; order: 1; width: auto; margin: 4px 10px 12px; font-size: 15px; transform-origin: 40px 0; }
html.mobile .complaint::after { left: 44px; top: -12px; bottom: auto; border: 7px solid transparent; border-bottom: 7px solid #f8fafc; border-left: 9px solid #f8fafc; }
html.mobile .stage .legend { order: 2; }
html.mobile .signals { grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
html.mobile .sig { min-height: 0; padding: 14px; }
html.mobile .sig h3 { font-size: 22px; }
html.mobile .sig h3 small { font-size: 19px; }
html.mobile .sig p { font-size: 15px; }
html.mobile .sig .ex.mono { font-size: 11px; overflow-wrap: anywhere; }
html.mobile .signals-foot { font-size: 16px; text-align: left; }
html.mobile .types { font-size: 15px; }
html.mobile .box.two .rate-out { min-width: 104px; font-size: 14px; }
html.mobile .sstats.four { grid-template-columns: repeat(2, 1fr); }
html.mobile .sig .ex { min-height: 0; }

/* ---------- slides 6–9: logs, trazas y las tres juntas ---------- */

.kicker.gray { color: #cbd5e1; }
.kicker.orange { color: var(--orange); }

/* 7. logs por réplica / centralizados */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .seg button { padding: 6px 10px; font-size: 13.5px; }
.search-row { flex-wrap: nowrap; gap: 6px; }
.search-row .order-search { flex: 1 1 auto; min-width: 0; font-size: 13px; padding: 8px 9px; }
.search-row .btn { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
.search-row .btn.icon { width: 36px; padding: 7px 0; font-size: 16px; }
.rep-logs { display: flex; flex-direction: column; gap: 6px; }
.rep-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; min-width: 0; }
.rep-name { font: 600 11px var(--mono); color: var(--dim); letter-spacing: .04em; margin-bottom: 2px; }
.rep-box .log-lines { height: 74px; overflow-y: auto; overflow-x: hidden; font: 10.5px/1.4 var(--mono); }
.logs.nobar .log-bar { display: none; }
.logs.nobar .log-lines { height: 262px; }

/* 8. trazas: puntos clickeables */
.netsim .pk.pick { stroke-width: 6; }
.pick-note { font-size: 14px !important; color: var(--muted); min-height: 20px; }

/* 9. las tres juntas: métrica → trazas → traza → logs */
.stage.drill { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px; box-sizing: border-box; }
.crumbs { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.crumbs .sep { color: var(--dim); }
.crumb { font: 600 14px var(--sans); color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.crumb.on { color: #fff; background: #1a2547; }
.crumb.c-m.on { border-color: var(--purple); }
.crumb.c-t.on { border-color: var(--orange); }
.crumb.c-l.on { border-color: #cbd5e1; }
.crumb.cur { box-shadow: 0 0 0 2px rgba(56, 189, 248, .55); }
.cell { background: rgba(10, 15, 31, .72); border: 1px solid var(--line); border-top: 3px solid var(--sc, var(--line)); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; overflow: hidden; }
.cell .label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sc); }
.c-metric { --sc: var(--purple); }
.c-traces, .c-trace { --sc: var(--orange); }
.c-logs { --sc: #cbd5e1; }
.tj-chart { flex: 1 1 auto; height: auto; min-height: 0; padding: 6px; }
.tj-chart canvas { cursor: crosshair; }
.moment { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); pointer-events: none; }
.tj-hint, .tj-empty { font-size: 13px; color: var(--muted); }
.tj-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.tj-row { display: grid; grid-template-columns: 1fr auto 52px; gap: 10px; align-items: center; text-align: left; font: 13px var(--mono); color: #cbd5e1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.tj-row:hover { border-color: #4458a0; }
.tj-row b { color: var(--orange); }
.tj-row .st { text-align: right; font-weight: 700; }
.tj-row.ok .st { color: var(--green); }
.tj-row.slow .d { color: var(--yellow); }
.tj-row.err .st { color: var(--red); }
.tj-row.sel { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.cell .trace { border: 0; padding: 0; background: none; gap: 6px; }
.cell .trace .tr-head { font-size: 13px; }
.cell .trace .tr-note { font-size: 12px; }
.drill .t-row { cursor: pointer; border-radius: 6px; }
.drill .t-row:hover { background: rgba(251, 146, 60, .1); }
.drill .t-row[data-service="pagos"] .t-name { text-decoration: underline dotted; text-underline-offset: 3px; }
.tj-logs { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.tj-filter { font: 11px var(--mono); color: var(--dim); }
.tj-filter b { color: #cbd5e1; }
.tj-logs .log-lines { flex: 1 1 auto; height: auto; min-height: 0; font-size: 11px; }
.log-line.hit { background: rgba(203, 213, 225, .09); border-radius: 3px; }
.tj-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.35; color: #cbd5e1; }
.tj-steps b.m { color: var(--purple); }
.tj-steps b.t { color: var(--orange); }
.tj-steps b.l { color: #cbd5e1; }
.tj-steps code { font-size: 12px; color: var(--red); background: rgba(248, 113, 113, .1); }

html.mobile .search-row .btn { padding: 10px 10px; }
html.mobile .rep-box .log-lines { height: 96px; }
html.mobile .logs.nobar .log-lines { height: 260px; }
html.mobile .stage.drill { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
html.mobile .crumbs { flex-wrap: wrap; }
html.mobile .crumb { padding: 8px 12px; }
html.mobile .tj-list { overflow: visible; }
html.mobile .tj-row { padding: 9px 10px; }
html.mobile .tj-logs .log-lines { height: 220px; flex: none; }

/* ---------- slides 10–12: alertas y SLO (escenas manuales, svg.alertc) ---------- */

:root { --amber: #fbbf24; }
@keyframes alert-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.legend i.sq { border-radius: 3px; }
.legend i.sq.hit { background: var(--red); }
.legend i.sq.fp { background: var(--amber); }
.legend i.sq.miss { background: transparent; border: 2px dashed var(--red); width: 8px; height: 8px; }
.legend i.sq.broken { background: rgba(248, 113, 113, .3); }
.alertc .grid { stroke: #1e2a4a; stroke-width: 1; }
.alertc .grid.zero { stroke: #64748b; stroke-dasharray: 4 4; }
.alertc .ax { fill: var(--dim); font: 12px var(--mono); }
.alertc .ax-title { fill: var(--purple); font: 600 13px var(--mono); letter-spacing: .04em; }
.alertc .series { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linejoin: round; }
.alertc .series.dim { stroke: #4c4380; stroke-width: 1.5; opacity: .6; }
.alertc .dot { fill: var(--purple); }
.alertc .dot.bad { fill: #fff; stroke: var(--red); stroke-width: 2; }
.alertc .inc-band { fill: rgba(248, 113, 113, .13); }
.alertc .inc-label { fill: #fca5a5; font: 600 12px var(--mono); }
.alertc .thr-line { stroke: var(--red); stroke-width: 2; stroke-dasharray: 8 5; }
.alertc .thr-line.small { stroke-width: 1.3; stroke-dasharray: 5 4; opacity: .7; }
.alertc .thr-hit { stroke: transparent; stroke-width: 22; cursor: ns-resize; touch-action: none; }
.alertc .thr-tag { cursor: ns-resize; touch-action: none; }
.alertc .thr-tag rect { fill: #3a1018; stroke: var(--red); stroke-width: 1.5; }
.alertc .thr-tag text { fill: #fecaca; font: 700 13px var(--mono); }
.alertc .cursor { stroke: #cbd5e1; stroke-width: 1.5; opacity: .55; }
.alertc .live.firing .cursor { stroke: var(--red); opacity: 1; stroke-width: 2.5; }
.alertc .pill rect { fill: #0d1530; stroke: var(--line); stroke-width: 1.5; }
.alertc .pill text { fill: var(--muted); font: 700 13px var(--mono); }
.alertc .live.pending .pill rect { stroke: var(--yellow); }
.alertc .live.pending .pill text { fill: var(--yellow); }
.alertc .live.ok .pill text, .alertc .pill.ok text { fill: var(--green); }
.alertc .live.firing .pill rect, .alertc .pill.firing rect { fill: #3a1018; stroke: var(--red); }
.alertc .live.firing .pill, .alertc .pill.firing { animation: alert-pulse .9s ease-in-out infinite; }
.alertc .live.firing .pill text, .alertc .pill.firing text { fill: #fecaca; }
.alertc .hit-mark { fill: var(--red); }
.alertc .fp-mark { fill: var(--amber); }
.alertc .miss-mark { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 7 5; }
.alertc .mk-label { font: 700 11.5px var(--mono); }
.alertc .hit-mark-t, .alertc .miss-mark-t { fill: var(--red); }
.alertc .fp-mark-t { fill: var(--amber); }
/* 11. carriles de la noche */
.alertc .lane-bg { fill: rgba(17, 26, 51, .6); stroke: var(--line); }
.alertc .l-sym .lane-bg { stroke: var(--cyan); stroke-width: 1.5; }
.alertc .lane-name { fill: #f1f5f9; font: 700 15px var(--sans); }
.alertc .lane-rule { fill: var(--muted); font: 12.5px var(--mono); }
.alertc .lane-kind { fill: var(--dim); font: 12px var(--sans); font-style: italic; }
.alertc .l-sym .lane-kind { fill: var(--cyan); }
.alertc .lane { transition: opacity .3s; }
.alertc .lane.off { opacity: .35; }
.alertc .page { opacity: 0; }
.alertc .page.shown { opacity: 1; }
.alertc .fire-band { fill: rgba(248, 113, 113, .22); stroke: var(--red); stroke-width: 1; }
.alertc .lane.off .fire-band { fill: rgba(148, 163, 184, .12); stroke: #475569; }
.alertc .page.firing .fire-band { animation: alert-pulse .9s ease-in-out infinite; fill: rgba(248, 113, 113, .4); }
.alertc .pg-icon { font-size: 14px; }
.alertc .night-clock rect { fill: #0a0f1f; stroke: #cbd5e1; stroke-width: 1; }
.alertc .night-clock text { fill: #f1f5f9; font: 700 13px var(--mono); }
/* 12. presupuesto */
.alertc .slo-day { fill: #f1f5f9; font: 700 17px var(--sans); }
.alertc .slo-obj { fill: var(--muted); font: 600 13px var(--mono); }
.alertc .bud-bg { fill: #1e293b; stroke: var(--line); }
.alertc .bud-fill { transition: fill .3s; }
.alertc .bud-fill.ok { fill: #166534; }
.alertc .bud-fill.warn { fill: #854d0e; }
.alertc .bud-fill.out { fill: #7f1d1d; }
.alertc .bud-txt { fill: #fff; font: 700 17px var(--sans); }
.alertc .neg-zone { fill: rgba(248, 113, 113, .06); }
.alertc .neg-label { fill: #fca5a5; font: 600 12px var(--mono); opacity: .8; }
.alertc .series.budget { stroke: var(--green); stroke-width: 2.5; }
.alertc .alerting .series.budget { stroke: var(--red); }
.alertc .broken-band { fill: rgba(248, 113, 113, .16); }
.alertc .burn-txt { fill: #f1f5f9; font: 700 16px var(--sans); }
.alertc .lasts-txt { fill: var(--muted); font: 14px var(--sans); }
.alertc .alerting .lasts-txt { fill: #fca5a5; }

.panel .rule-out { font: 14px var(--mono); color: #cbd5e1; background: var(--panel-2); border: 1px dashed #4b2a36; border-radius: 10px; padding: 7px 10px; }
.panel .rule-out b { color: #fecaca; }
.stat.s-caught b { color: var(--green); }
.stat.s-missed b { color: var(--red); }
.stat.s-falsePos b { color: var(--amber); }
.stat.s-total b, .stat.s-cause b { color: var(--amber); }
.stat.s-sym b { color: var(--cyan); }
.stat.s-burn b { color: var(--yellow); }
.box.alerts { display: flex; flex-direction: column; gap: 5px; padding: 8px 12px; }
.box.alerts .field { font-size: 14.5px; cursor: pointer; }
.box.alerts .field small { color: var(--dim); font: 11.5px var(--mono); margin-left: 4px; }
.box.alerts .field.sym span { color: var(--cyan); font-weight: 600; }
.pager { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 30px; }
.pager .face { font-size: 26px; }
.pager .pages { line-height: 1.3; }

html.mobile .alertc .pill text, html.mobile .alertc .thr-tag text { font-size: 12px; }
html.mobile .alertc .lane-name { font-size: 12.5px; }
html.mobile .alertc .ax { font-size: 11px; }
html.mobile .alertc .bud-txt { font-size: 14px; }
html.mobile .alertc .slo-day { font-size: 14px; }
html.mobile .alertc .slo-obj { font-size: 11px; }
html.mobile .alertc .burn-txt { font-size: 13px; }
html.mobile .alertc .lasts-txt { font-size: 12px; }
html.mobile .box.alerts .field { padding: 6px 0; }
html.mobile .box.alerts .field input[type=checkbox] { width: 22px; height: 22px; }

[hidden] { display: none !important; }

/* Link al repo en la diapositiva final (icono de GitHub) */
.repo-link {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: inline-flex; color: var(--muted); opacity: .75; transition: opacity .2s, color .2s;
}
.repo-link:hover { opacity: 1; color: var(--text); }
.repo-link svg { width: 34px; height: 34px; fill: currentColor; }
html.mobile .repo-link { position: static; transform: none; display: flex; width: max-content; margin: 20px auto 0; }
.title-slide .repo-link { position: static; transform: none; align-self: flex-start; margin-top: 28px; }
html.mobile .title-slide .repo-link { margin: 24px 0 0; }

/* Diapositiva final: QR a la presentación publicada, playground y repo */
.repo-link.with-text { gap: 10px; align-items: center; font: 15px var(--mono); text-decoration: none; }
html.mobile .repo-link.with-text { width: auto; max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.repo-link.with-text svg { width: 26px; height: 26px; }
.outro-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; margin-top: 28px; }
.outro .qr { margin: 0; text-align: center; }
.outro .qr img { width: 280px; height: 280px; display: block; background: #fff; border-radius: 16px; padding: 10px; box-sizing: border-box; }
.outro .qr figcaption { margin-top: 12px; font: 14px/1.5 var(--mono); color: var(--muted); }
.outro .cta h3 { font-size: 34px; margin: 0 0 14px; }
.outro .cta p { font-size: 20px; line-height: 1.5; color: #cbd5e1; margin: 0 0 10px; }
.outro .cta .btn { display: inline-block; margin-top: 14px; font-size: 18px; text-decoration: none; }
.outro .cta .repo-link { position: static; transform: none; margin-top: 30px; }
html.mobile .outro-grid { grid-template-columns: 1fr; gap: 28px; }
html.mobile .outro .qr img { width: 220px; height: 220px; margin: 0 auto; }
html.mobile .outro .cta h3 { font-size: 24px; }
html.mobile .outro .cta p { font-size: 16px; }
html.mobile .outro .cta .repo-link { margin: 24px 0 0; }
.outro .cta p.lab { font-size: 17px; color: var(--muted); margin-top: 12px; }
.outro .cta p.lab a { color: inherit; }
html.mobile .outro .cta p.lab { font-size: 14px; }

/* ---------- slides 13–17: reaccionar solo ---------- */

:root { --react: #60a5fa; }
.netsim .breaker rect { fill: #0a0f1f; stroke-width: 2; }
.netsim .breaker.br-open rect { fill: #3a1018; }
.netsim .breaker.br-half rect { fill: #33280a; }
.kicker.blue { color: var(--react); }
/* 13. lo que contestaría cada réplica */
.netsim .probe-badge { font: 700 12.5px var(--mono); }
.netsim .probe-badge .ok { fill: var(--green); }
.netsim .probe-badge .no { fill: var(--red); }
.netsim .probe-badge .p-sep { fill: var(--dim); }
/* 14. línea de tiempo de reinicios */
.tl-box { padding: 8px 12px; }
.tl { display: flex; flex-direction: column; gap: 3px; min-height: 112px; }
.tl-row { display: grid; grid-template-columns: 70px 1fr 84px; gap: 8px; align-items: center; font: 12.5px var(--mono); color: #cbd5e1; }
.tl-n { color: var(--react); font-weight: 700; white-space: nowrap; }
.tl-bar { height: 12px; background: rgba(148, 163, 184, .08); border-radius: 3px; overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--react); border-radius: 3px; }
.tl-bar i.wait { background: repeating-linear-gradient(45deg, rgba(248, 113, 113, .65) 0 5px, rgba(248, 113, 113, .3) 5px 10px); }
.tl-d { text-align: right; white-space: nowrap; }
.tl-row.wait .tl-n, .tl-row.dead .tl-n { color: var(--red); }
.tl-row.wait .tl-d, .tl-row.dead .tl-msg { color: var(--red); font-weight: 700; }
.tl-row.boot .tl-msg { color: var(--yellow); }
.tl-msg { grid-column: 2 / -1; }
.tl-empty { font-size: 13px; color: var(--dim); }
/* 15. autoscaling */
.box.three { padding: 8px 12px; }
.box.three .slider-row + .slider-row { margin-top: 6px; }
.box.three .rate-out { min-width: 122px; }
.as-box { height: 150px; }
.as-row { flex-wrap: nowrap; justify-content: space-between; }
.panel .as-out { font: 14px var(--mono); color: #cbd5e1; }
.as-out b { color: var(--react); }
.as-out b.bad { color: var(--red); }
/* 17. lo que empeora */
.stat.bad { border-color: var(--red); background: rgba(248, 113, 113, .1); }
.stat.bad b { color: var(--red) !important; }
.panel .lim-out { font: 14px var(--mono); color: #cbd5e1; min-height: 20px; }
.lim-out b { color: var(--red); }
.panel .hstats .stat b { font-size: 17px; }
.panel .hstats .stat span { font-size: 10px; letter-spacing: .03em; }

html.mobile .netsim .probe-badge { font-size: 11px; }
html.mobile .tl-row { grid-template-columns: 66px 1fr 84px; font-size: 12px; }
html.mobile .box.three .rate-out { min-width: 104px; font-size: 14px; }
html.mobile .panel .hstats { grid-template-columns: repeat(2, 1fr) !important; }
.actions.tight { flex-wrap: nowrap; gap: 6px; }
.actions.tight .btn { padding: 8px 11px; font-size: 14.5px; white-space: nowrap; }
.actions.tight .btn.icon { width: 38px; padding: 8px 0; }
.sstats.three { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sstats.three .sstat b { font-size: 17px; }
.sstats.three .sstat span { font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
html.mobile .actions.tight { flex-wrap: wrap; }
.actions.tight .btn.icon { flex: none; }
