/* ═══════════════════════════════════════════════════════════
   TEST DE LAS 4 PALANCAS · northriseadvisory.io
   Mismos tokens que el cajón de recursos (web-recursos).
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, fieldset, legend { margin: 0; padding: 0; border: 0; }
button, input { font: inherit; color: inherit; }

:root {
  --f-display: "Neue Machina", "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif:   "Instrument Serif", Georgia, serif;

  --bg:        #FBFBF9;
  --bg-alt:    #F3F3EF;
  --surface:   #FFFFFF;
  --ink:       #0A0A0A;
  --ink-2:     #3D3D3A;
  --muted:     #8A8A83;
  --line:      #E6E6E0;
  --line-2:    #D2D2CA;
  --accent:    #0F6738;
  --accent-suave: #EAF3ED;
  --inv-bg:    #0A0A0A;
  --inv-ink:   #FBFBF9;
  --alerta:    #A6402F;

  --wrap: 620px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ── cabecera y progreso ─────────────────────────────────── */
.top { padding: 22px 0 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo__mark { display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--ink); color: var(--bg); }
.logo__text { font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.logo__text span { opacity: .45; font-weight: 500; }
.paso-n { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }

.barra { height: 3px; background: var(--line); border-radius: 999px; margin-top: 18px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--accent);
  border-radius: 999px; transition: width .45s var(--ease); }

/* ── escenario ───────────────────────────────────────────── */
main { flex: 1; display: flex; align-items: center; padding: clamp(28px, 6vw, 56px) 0; }
.paso { display: none; animation: entra .38s var(--ease) both; }
.paso.on { display: block; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

h1 { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 5.6vw, 46px); line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance; }
h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: .12em; }
h2 { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(21px, 3.4vw, 27px); line-height: 1.2; letter-spacing: -.028em;
  text-wrap: balance; }
.sub { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

/* ── opciones ────────────────────────────────────────────── */
.ops { display: flex; flex-direction: column; gap: 9px; margin-top: 28px; }
.op {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 17px 19px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r); cursor: pointer; font-size: 15.5px; line-height: 1.4;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.op:hover { border-color: var(--line-2); transform: translateX(2px); }
.op:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.op.sel { border-color: var(--accent); background: var(--accent-suave); }
.op__k { flex: none; width: 25px; height: 25px; border-radius: 7px;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  transition: all .18s var(--ease); }
.op.sel .op__k { background: var(--accent); border-color: var(--accent); color: #fff; }
.ops--multi .op__k { border-radius: 6px; }

/* ── formulario final ────────────────────────────────────── */
.campos { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.campo label { display: block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.campo input {
  width: 100%; padding: 15px 17px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: 16px; outline: none; transition: border-color .18s var(--ease);
}
.campo input:focus { border-color: var(--accent); }
.campo input::placeholder { color: var(--muted); }
.campo.mal input { border-color: var(--alerta); }
.campo .err { font-size: 12.5px; color: var(--alerta); margin-top: 5px; display: none; }
.campo.mal .err { display: block; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px;
  font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 22px; padding: 17px 26px;
  background: var(--inv-bg); color: var(--inv-ink); border: 0; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover:not(:disabled) svg { transform: translateX(3px); }

.atras { margin-top: 18px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.atras:hover { color: var(--ink); }

/* ── resultado ───────────────────────────────────────────── */
.res-cab { border: 1.5px solid var(--accent); background: var(--accent-suave);
  border-radius: 18px; padding: clamp(26px, 5vw, 38px); text-align: center; }
.res-cab .eyebrow { color: var(--accent); }
.res-cab h2 { color: var(--accent); }
.res-cab.alerta { border-color: var(--alerta); background: #FBF0EE; }
.res-cab.alerta .eyebrow, .res-cab.alerta h2 { color: var(--alerta); }

.bloque { margin-top: 26px; }
.bloque h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.bloque p { color: var(--ink-2); font-size: 15.5px; }
.bloque ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.bloque li { margin: 7px 0; }
.no-tocar { border-left: 2.5px solid var(--alerta); padding: 4px 0 4px 16px; }
.no-tocar h3 { color: var(--alerta); }

.gancho { margin-top: 26px; padding: 20px 22px; background: var(--bg-alt);
  border-radius: var(--r); font-size: 15px; color: var(--ink-2); }
.gancho b { color: var(--ink); }

footer { padding: 26px 0 30px; }
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── cierre: el empujón al DM ────────────────────────────── */
.cierre { margin-top: 30px; padding: clamp(24px, 5vw, 32px);
  background: var(--inv-bg); color: var(--inv-ink); border-radius: 18px; }
.cierre .eyebrow { color: rgba(251,251,249,.5); }
.cierre h3 { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(19px, 3.2vw, 24px); line-height: 1.22; letter-spacing: -.025em;
  text-transform: none; margin-bottom: 12px; color: var(--inv-ink); }
.cierre h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.cierre p { font-size: 15.5px; line-height: 1.55; color: rgba(251,251,249,.72); }
.cierre p b { color: var(--inv-ink); font-family: var(--f-mono); font-size: 14px;
  letter-spacing: .06em; }
.cierre .btn { background: var(--inv-ink); color: var(--inv-bg); text-decoration: none;
  margin-top: 20px; }
.cierre__pie { margin-top: 14px; font-size: 12.5px !important;
  color: rgba(251,251,249,.42) !important; text-align: center; }

/* ── lo que no se enseña aquí ─────────────────────────────
   Se ve que hay algo y se ve qué es, pero no se lee. Ese es
   el motivo para abrir el DM. El texto borroso es el de verdad. */
.candado { margin-top: 28px; border: 1.5px dashed var(--line-2);
  border-radius: 16px; padding: 22px; background: var(--bg-alt); }
.candado > .eyebrow { margin-bottom: 16px; }
.candado__fila { display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-top: 1px solid var(--line); }
.candado__fila:first-of-type { border-top: 0; padding-top: 0; }
.candado__ico { flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--line); color: var(--muted); margin-top: 1px; }
.candado__txt { min-width: 0; }
.candado__txt h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.borroso { font-size: 14.5px; line-height: 1.45; color: var(--muted);
  filter: blur(4.5px); user-select: none; pointer-events: none;
  max-height: 2.9em; overflow: hidden; }

@supports not (filter: blur(1px)) {
  .borroso { color: transparent; background: var(--line);
    border-radius: 4px; height: 2.9em; }
}

/* ── los pasos del arreglo ────────────────────────────────
   Numerados y con título propio: el que lo abre en el móvil
   tiene que poder saltar al paso 3 sin releer los dos de antes. */
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; }
.pasos__it { counter-increment: paso; position: relative;
  padding: 0 0 0 42px; margin: 0 0 22px; }
.pasos__it::before { content: counter(paso); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--f-mono); font-size: 12px; }
.pasos__it h4 { font-family: var(--f-display); font-weight: 700; font-size: 16px;
  line-height: 1.25; letter-spacing: -.015em; margin-bottom: 5px; }
.pasos__it p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.bloque__pie { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.res-cab.alerta ~ .bloque .pasos__it::before { background: var(--alerta); }
