/* Pandemic Acquisition · landing, onboarding y deck público.
   Sin fuentes externas (la CSP no las deja): la pila del sistema da SF Pro en Apple, que es
   justo el registro buscado. Un solo acento; lo ESTIMADO se distingue de lo observado con un
   color propio (ámbar) y la etiqueta «Estimado», nunca solo con color. */

:root {
  --bg: #f5f5f7; --surface: #ffffff; --raised: #fbfbfd; --ink: #1d1d1f; --ink-2: #515154; --ink-3: #86868b;
  --line: rgba(0, 0, 0, .08); --accent: #0a5cff; --accent-ink: #ffffff; --accent-soft: rgba(10, 92, 255, .08);
  --est: #b25e00; --est-soft: rgba(255, 159, 10, .14); --ok: #1f8a3b; --warn: #b3261e;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 40px -24px rgba(0,0,0,.18);
  --r: 20px; --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #111113; --raised: #1c1c1e; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, .1); --accent: #4d8dff; --accent-ink: #00122e; --accent-soft: rgba(77, 141, 255, .14);
    --est: #ffb340; --est-soft: rgba(255, 179, 64, .14); --ok: #30d158; --warn: #ff6961;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -28px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100svh; font-size: 17px; line-height: 1.47; letter-spacing: -.01em; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.app { min-height: 100svh; }
.boot { width: 22px; height: 22px; margin: 40vh auto; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── marca ───────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; letter-spacing: .18em; font-size: 12px; }
.top .muted { font-size: 13px; }
.muted { color: var(--ink-3); }

/* ── landing ─────────────────────────────────────────────────── */
.hero { max-width: 880px; margin: 0 auto; padding: 8vh 20px 64px; text-align: left; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.hero p.sub { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-2); max-width: 36ch; margin: 0 0 34px; }
.promise { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 44ch; font-size: 17px; }

/* la única floritura: lo producido frente a lo distribuido, en dos barras */
.gapviz { margin-top: 48px; display: grid; gap: 10px; max-width: 520px; }
.gapviz .row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.gapviz .gtrack { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gapviz .fill { height: 100%; border-radius: 99px; background: var(--ink); transform-origin: left; animation: grow 1.4s cubic-bezier(.2,.7,.2,1) .3s both; }
.gapviz .fill.small { background: var(--accent); }
@keyframes grow { from { transform: scaleX(0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 17px; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 14px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ── onboarding ──────────────────────────────────────────────── */
.flow { max-width: 620px; margin: 0 auto; padding: 8px 20px 140px; }
.progress { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 36px; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.flow h2 { font-size: clamp(28px, 4.6vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 8px; text-wrap: balance; }
.flow .lead { color: var(--ink-2); margin: 0 0 28px; }
.field { margin: 0 0 18px; }
.field label, .q > .qlabel { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.input { width: 100%; min-height: 54px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 17px; }
textarea.input { padding: 14px 16px; min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.err { color: var(--warn); font-size: 14px; margin-top: 6px; }
.q { margin: 0 0 30px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px;
  transition: background-color .15s, border-color .15s, color .15s; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.net { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; margin: 0 0 10px; }
.net .pl { font-weight: 600; font-size: 15px; }
.net .x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 20px; }
@media (max-width: 520px) { .net { grid-template-columns: 1fr 40px; } .net .pl { grid-column: 1 / -1; margin-bottom: -4px; } }
.addnet { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin: 10px 0 8px; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); }
.bar .btn.primary { flex: 1; max-width: 360px; margin-left: auto; }

/* ── progreso ────────────────────────────────────────────────── */
.wait { max-width: 560px; margin: 0 auto; padding: 12vh 20px 60px; }
.wait h2 { font-size: clamp(28px, 4.6vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px; background: var(--surface); font-size: 17px; }
.steps li:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; } .steps li:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.steps .st { margin-left: auto; font-size: 14px; color: var(--ink-3); }
.dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--line); display: grid; place-items: center; }
.dot.run { border-color: var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.dot.done { background: var(--ok); border-color: var(--ok); }
.dot.done::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.dot.off { border-style: dashed; }
.linkbox { margin-top: 26px; padding: 16px; border-radius: var(--r-sm); background: var(--surface); font-size: 14px; color: var(--ink-2); word-break: break-all; }

/* ── deck ────────────────────────────────────────────────────── */
.deck { position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100vw; width: 100vw; height: 100svh; scroll-snap-align: start; overflow-y: auto; display: flex; align-items: center; }
.slide .in { width: 100%; max-width: 1040px; margin: 0 auto; padding: 88px 28px 110px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 18px; }
.slide h2 { font-size: clamp(32px, 5.2vw, 60px); letter-spacing: -.035em; line-height: 1.04; margin: 0 0 28px; font-weight: 700; text-wrap: balance; }
.slide h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -.045em; line-height: .98; margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.cover .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; background: var(--raised); }
.cover .sub { font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-2); max-width: 30ch; line-height: 1.35; }
.cover .date { margin-top: 44px; color: var(--ink-3); font-size: 15px; }
.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { font-size: clamp(21px, 2.8vw, 32px); line-height: 1.28; letter-spacing: -.02em; max-width: 30ch; padding-left: 22px; border-left: 3px solid var(--line); }
.points li.conclusion { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
.flowrow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.chip { flex: 1 1 150px; background: var(--surface); border-radius: var(--r); padding: 22px 20px; box-shadow: var(--shadow); }
.chip .v { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.chip .l { color: var(--ink-3); margin-top: 8px; font-size: 15px; }
.arrow { align-self: center; color: var(--ink-3); font-size: 22px; }
@media (max-width: 640px) { .arrow { display: none; } }
.score { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .score { grid-template-columns: 1fr; gap: 24px; } }
.ring { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--line); stroke-width: 10; }
.ring .val { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font-size: clamp(56px, 8vw, 84px); letter-spacing: -.05em; line-height: 1; }
.ring .c span { color: var(--ink-3); font-size: 15px; }
.comps { display: grid; gap: 16px; }
.comp .h { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.comp .track2 { height: 6px; border-radius: 99px; background: var(--line); margin: 8px 0 6px; overflow: hidden; }
.comp .track2 i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.comp p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.plats { display: grid; gap: 10px; }
.plat { display: grid; grid-template-columns: 140px 1fr 110px; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; }
.plat .nm { font-weight: 600; }
.plat .bars { display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.plat .b { height: 8px; border-radius: 99px; background: var(--ink); min-width: 3px; }
.plat .b.s { background: var(--accent); }
.plat .side { text-align: right; font-size: 14px; color: var(--ink-3); }
.plat.off { opacity: .6; }
@media (max-width: 640px) { .plat { grid-template-columns: 1fr; } .plat .side { text-align: left; } }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; } }
.vs .side { background: var(--surface); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--shadow); }
.vs .side .lbl { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.vs .side .big { font-size: clamp(56px, 9vw, 112px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 18px 0 8px; }
.vs .side.dist .big { color: var(--accent); }
.range { font-size: clamp(64px, 11vw, 144px); font-weight: 700; letter-spacing: -.05em; line-height: .95; color: var(--est); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px; background: var(--est-soft); color: var(--est); }
.tag.obs { background: var(--accent-soft); color: var(--accent); }
.method { color: var(--ink-3); font-size: 15px; max-width: 60ch; margin-top: 22px; }
.finds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.find { background: var(--surface); border-radius: var(--r); padding: 24px; }
.find h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.find p { margin: 0; color: var(--ink-2); font-size: 16px; }
.find.pos h3::before { content: "✓ "; color: var(--ok); }
.change { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .change { grid-template-columns: 1fr; } }
.change .col { background: var(--surface); border-radius: var(--r); padding: 28px 26px; }
.change .col.model { background: var(--ink); color: var(--bg); }
.change .col.model .muted { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.change .from { font-size: 20px; } .change .to { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: s; }
.sys div { background: var(--surface); border-radius: var(--r-sm); padding: 20px 18px; }
.sys b { display: block; font-size: 18px; margin-bottom: 6px; }
.sys p { margin: 0; font-size: 14px; color: var(--ink-3); }
.cta h2 { max-width: 20ch; }
.cta .body { font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-2); margin: -10px 0 34px; }
.cta .done { font-size: 20px; color: var(--ok); margin-top: 18px; }
.unav { color: var(--ink-3); font-size: 14px; margin-top: 20px; }

/* navegación del deck */
.dnav { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow); z-index: 5; }
.dnav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.dots { display: flex; gap: 6px; padding: 0 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: width .25s, background-color .25s; }
.dots i.on { width: 18px; border-radius: 99px; background: var(--ink); }
.dtop { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; z-index: 5; pointer-events: none; }
.dtop > * { pointer-events: auto; }
.dtop .tools { display: flex; gap: 4px; }
body.presenter .dtop, body.presenter .dnav { opacity: 0; transition: opacity .3s; }
body.presenter:hover .dtop, body.presenter:hover .dnav { opacity: 1; }

@media print {
  .dtop, .dnav { display: none !important; }
  .deck { position: static; display: block; overflow: visible; }
  .slide { width: 100%; height: auto; min-height: 0; page-break-after: always; break-after: page; overflow: visible; }
  body { background: #fff; color: #000; }
}
.tsbox { display: flex; justify-content: center; padding: 12px 16px 24px; }
