/* 51 · EMPRENDÉ — pasos, "qué tener a mano" y quiz (/emprendiendo/) · prefijos .stp- .stl- .stq- */
.stp { padding-block: var(--space-l) var(--space-l); }
.stp--quiz { padding-bottom: var(--space-xl); }
.stp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stp-rail { display: none; }
.stp-main { min-width: 0; }
@media (min-width: 900px) {
  .stp-layout { grid-template-columns: minmax(0, 1fr) clamp(220px, 27%, 400px); }
  .stp-rail { display: block; align-self: stretch; }
}

.stp-head { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); margin-bottom: clamp(2rem, 5vw, 4rem); }
.stp-title { font-size: clamp(2.5rem, 1.2rem + 4.8vw, 6.2rem); max-width: 11ch; text-wrap: balance; }
.stp-title--m { font-size: clamp(2.3rem, 1.2rem + 4vw, 5.2rem); max-width: 12ch; }
.stp-lead { max-width: 44ch; }

/* ---------- pasos ---------- */
.stp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.stp-step { --tone: var(--accent); position: relative; display: grid; gap: clamp(1rem, 2vw, 1.5rem); padding: clamp(1.2rem, 2.4vw, 2rem); border-radius: var(--radius-l); background: rgba(21, 21, 26, .74); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; isolation: isolate; transition: box-shadow .6s var(--ease-out), background .6s var(--ease-out); }
.stp-step::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--tone) 22%, transparent), transparent 62%); opacity: 0; transition: opacity .8s var(--ease-out); }
.stp-step.is-done { box-shadow: inset 0 0 0 1px var(--tone); }
.stp-step.is-done::before { opacity: 1; }
.stp-step__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(.9rem, 2vw, 1.8rem); align-items: start; }
.stp-step__n { font-size: clamp(3.4rem, 2rem + 5vw, 7rem); line-height: .82; color: transparent; -webkit-text-stroke: 1.5px var(--tone); transition: color .6s var(--ease-out); font-variant-numeric: tabular-nums; }
.stp-step.is-done .stp-step__n { color: var(--tone); }
.stp-step__wk { color: var(--tone); margin-bottom: .5rem; }
.stp-step__t { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); line-height: .95; letter-spacing: -.035em; }
.stp-step__d { color: var(--paper-2); margin-top: .7rem; max-width: 44ch; }
.stp-step__count { font-size: 1.1rem; color: var(--muted); padding-top: .4rem; white-space: nowrap; }
.stp-step__count b { color: var(--tone); font-weight: 400; }
.stp-step.is-done .stp-step__count::after { content: ' ✓'; color: var(--tone); }

.stp-tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.stp-task { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: .95rem 1.1rem; min-height: 56px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out), transform .5s var(--ease-out); }
.stp-task:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); background: rgba(241, 238, 230, .03); }
.stp-task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stp-task__box { position: relative; flex: none; width: 22px; height: 22px; margin-top: .08em; background: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background .3s steps(3), box-shadow .3s steps(3); }
.stp-task__box::after { content: ''; position: absolute; inset: 3px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform .35s steps(3); }
.stp-task input:checked ~ .stp-task__box { background: var(--tone); box-shadow: none; }
.stp-task input:checked ~ .stp-task__box::after { transform: scale(1); }
.stp-task input:focus-visible ~ .stp-task__box { outline: 2px solid var(--lime); outline-offset: 3px; }
.stp-task:has(input:checked) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 70%, transparent); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.stp-task:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--lime); }
.stp-task__t { line-height: 1.35; transition: color .4s; }
.stp-task__t em { font-style: normal; color: var(--muted); }
.stp-task input:checked ~ .stp-task__t { color: var(--paper-2); }

/* ---------- rail ---------- */
.stp-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.stp-stage { position: relative; height: min(46vh, 440px); }
.stp--listo .stp-stage, .stp--quiz .stp-stage { height: min(52vh, 480px); }
.stp-stage__c { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line-strong); }
.stp-stage__c--tl { top: 0; left: 0; border-width: 1px 0 0 1px; } .stp-stage__c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.stp-stage__c--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; } .stp-stage__c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.stp-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 14px 16px 16px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(21, 21, 26, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.stp-panel__fig { display: none; }
.stp-panel__count { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.4rem); line-height: 1; color: var(--lime); display: flex; align-items: baseline; gap: .12em; }
.stp-panel__of { font-size: .38em; color: var(--muted); }
.stp-panel__stage { color: var(--muted); font-size: .66rem; }
.stp-panel__msg { font-size: var(--step--1); line-height: 1.4; color: var(--paper); margin-top: 2px; min-height: 2.8em; }
.stp-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; height: 8px; }
.stp-bar i { background: var(--ink-3); transition: background .3s steps(3), transform .4s var(--ease-out); }
.stp-bar i.on { background: var(--tone, var(--accent)); transform: scaleY(1.6); }
.stp-panel__act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; }
.stp-reset { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: .7em 0; min-height: 36px; transition: color .3s; }
.stp-reset:hover { color: var(--paper); }
.stp-help { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--paper-2); padding: .7em 0; margin-left: auto; }
.stp-help:hover { color: var(--paper); }

/* ---------- qué tener a mano ---------- */
.stl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.stl-item { --tone: var(--accent); position: relative; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; align-items: start; width: 100%; height: 100%; text-align: left; padding: clamp(1rem, 1.8vw, 1.5rem); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); background: rgba(21, 21, 26, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease-out), box-shadow .4s var(--ease-out); }
.stl-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 24%, transparent), transparent 70%); transform: translateY(101%); transition: transform .7s var(--ease-out); }
.stl-item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.stl-item[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--tone); }
.stl-item[aria-pressed="true"]::before { transform: translateY(0); }
.stl-item__box { grid-row: span 2; width: 24px; height: 24px; margin-top: .1em; box-shadow: inset 0 0 0 2px var(--line-strong); position: relative; transition: background .3s steps(3), box-shadow .3s steps(3); }
.stl-item__box::after { content: ''; position: absolute; inset: 4px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform .35s steps(3); }
.stl-item[aria-pressed="true"] .stl-item__box { background: var(--tone); box-shadow: none; }
.stl-item[aria-pressed="true"] .stl-item__box::after { transform: scale(1); }
.stl-item__t { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.025em; line-height: 1.08; }
.stl-item__d { grid-column: 2; color: var(--paper-2); font-size: var(--step--1); }
.stl-sum { margin-top: 1.2rem; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--paper-2); min-height: 1.6em; }

/* ---------- quiz ---------- */
.stq-card { position: relative; padding: clamp(1.2rem, 2.6vw, 2.2rem); border-radius: var(--radius-l); background: rgba(21, 21, 26, .82); box-shadow: inset 0 0 0 1px var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-height: 22rem; display: grid; grid-template-rows: auto 1fr; gap: 1.4rem; }
.stq-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stq-prog { color: var(--paper-2); }
.stq-dots { display: flex; gap: 5px; }
.stq-dots i { width: 22px; height: 8px; background: var(--ink-3); transition: background .4s steps(3); }
.stq-dots i.on { background: var(--accent); }
.stq-body { display: grid; align-content: start; gap: 1.4rem; }
.stq-field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.2rem; }
.stq-q { font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; padding: 0 0 .15em; margin-bottom: 1.2rem; max-width: 20ch; text-wrap: balance; float: none; }
.stq-opts { display: grid; gap: .6rem; }
.stq-opt { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 60px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out), transform .5s var(--ease-out); }
.stq-opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateX(6px); background: rgba(241, 238, 230, .03); }
.stq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stq-opt__box { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); position: relative; transition: box-shadow .3s; }
.stq-opt__box::after { content: ''; position: absolute; inset: 4px; background: var(--ink); border-radius: 0; transform: scale(0); transition: transform .3s steps(3); }
.stq-opt input:checked ~ .stq-opt__box { background: var(--accent); box-shadow: none; }
.stq-opt input:checked ~ .stq-opt__box::after { transform: scale(1); }
.stq-opt:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(255, 79, 31, .09); }
.stq-opt:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--lime); }
.stq-opt__t { font-size: var(--step-1); line-height: 1.25; }
.stq-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.stq-back { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--paper-2); padding: .9em 0; min-height: 44px; transition: color .3s; }
.stq-back:hover { color: var(--paper); }
.stq-next:disabled { opacity: .55; pointer-events: none; transition: none; }
.stq-ns { color: var(--paper-2); }

.stq-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem clamp(1rem, 3vw, 2.2rem); align-items: start; outline: none; }
.stq-res__ico { display: block; width: clamp(84px, 11vw, 140px); }
.stq-res__ico svg { width: 100%; height: auto; animation: stq-pop .6s steps(6); }
@keyframes stq-pop { from { transform: scale(.4); opacity: 0; } }
.stq-res[data-k="landing"] { --tone: var(--accent); } .stq-res[data-k="sitio"] { --tone: var(--cobalt); } .stq-res[data-k="tienda"] { --tone: var(--sun); }
.q-a { fill: var(--paper); } .q-b { fill: var(--tone); } .q-c { fill: var(--muted); } .q-d { fill: rgba(241, 238, 230, .2); } .q-e { fill: var(--tone); opacity: .7; } .q-f { fill: var(--lime); } .q-g { fill: #8b8a93; }
.stq-res__k { color: var(--muted); margin-bottom: .5rem; }
.stq-res__name { font-size: clamp(2rem, 1.2rem + 3.2vw, 4.2rem); line-height: .95; letter-spacing: -.04em; color: var(--tone); max-width: 12ch; text-wrap: balance; }
.stq-res__why { color: var(--paper-2); font-size: var(--step-1); line-height: 1.4; margin-top: 1rem; max-width: 40ch; }
.stq-res__inc { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.stq-res__inc li { display: flex; gap: .8em; align-items: baseline; font-size: var(--step-0); }
.stq-res__inc li::before { content: ''; flex: none; width: .55em; height: .55em; background: var(--tone); transform: translateY(-.05em); }
.stq-nav--res { grid-column: 1 / -1; }

/* ---------- mobile: la miniatura vive en el dock del progreso ---------- */
@media (max-width: 899px) {
  #emprende-pasos .stp-rail { display: block; position: sticky; bottom: 0; z-index: 4; margin-inline: calc(var(--gutter) * -1); order: 2; }
  #emprende-pasos .stp-sticky { position: static; top: auto; gap: 0; }
  #emprende-pasos .stp-stage { display: none; }
  #emprende-pasos .stp-panel { grid-template-columns: 72px auto minmax(0, 1fr); border-radius: 0; box-shadow: 0 -1px 0 var(--line-strong); background: rgba(13, 13, 16, .92); padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); align-items: center; }
  .stp-panel__fig { display: block; width: 96px; height: 96px; grid-row: span 1; }
  .stp-panel__fig svg { width: 100%; height: 100%; animation: stq-pop .5s steps(5); }
  .stp-panel__info { grid-column: 3; grid-row: 1; }
  .stp-panel__count { grid-column: 2; font-size: 1.9rem; }
  .stp-panel__msg { display: none; }
  .stp-panel__stage { font-size: .6rem; }
  .stp-panel__act { grid-column: 1 / -1; }
  .stp-help { display: none; }
}
@media (max-width: 760px) {
  .stp-tasks { grid-template-columns: minmax(0, 1fr); }
  .stp-step__head { grid-template-columns: auto minmax(0, 1fr); }
  .stp-step__count { grid-column: 2; grid-row: 1; justify-self: end; margin-top: -.2rem; }
  .stp-step__n { font-size: 3rem; }
  .stp-step__t { font-size: 1.7rem; }
  .stl-list { grid-template-columns: minmax(0, 1fr); }
  .stq-res { grid-template-columns: minmax(0, 1fr); }
  .stq-res__ico { display: block; width: 84px; }
  .stp-title { font-size: clamp(2.3rem, 1.4rem + 4vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .stq-res__ico svg, .stp-panel__fig svg { animation: none; } }

/* mobile: con el canvas en overlay se oculta la miniatura 2D del dock */
#emprende-pasos.is-ovl .stp-panel__fig svg { opacity: 0; }
.stq-res__price { margin: 1.1rem 0 0; font-size: var(--step--1); color: var(--paper-2); }
.stq-res__price strong { color: var(--paper); font-weight: 600; }
