/* Resonans — checkout autoatendido. Complementa styles.css */

.checkout-body { background: var(--bg); }
.nav-back { color: var(--text-2); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-back:hover { color: var(--text); }

.checkout-wrap { padding-top: 44px; padding-bottom: 90px; max-width: 1000px; }

/* ── Barra de progreso ──────────────────────────────────────────────── */

.steps-bar {
  display: flex; align-items: center; gap: 10px;
  list-style: none; padding: 0; margin: 0 0 46px;
}
.sb { display: flex; align-items: center; gap: 10px; flex: 1; }
.sb:not(:last-child)::after {
  content: ''; flex: 1; height: 2px; border-radius: 2px;
  background: var(--border); transition: background .4s var(--ease);
}
.sb.done:not(:last-child)::after { background: var(--brand-500); }

.sb-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: .85rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3);
  transition: all .35s var(--ease);
}
.sb.active .sb-dot {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent; color: #fff;
  box-shadow: 0 0 0 4px rgb(99 102 241 / .16);
}
.sb.done .sb-dot { background: var(--brand-600); border-color: transparent; color: #fff; }
.sb-txt { font-size: .88rem; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.sb.active .sb-txt, .sb.done .sb-txt { color: var(--text); }
@media (max-width: 620px) { .sb-txt { display: none; } }

/* ── Paneles ────────────────────────────────────────────────────────── */

.pane { display: none; }
.pane.on { display: block; animation: fade-up .5s var(--ease-out); }

.pane h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.lead { color: var(--text-2); font-size: 1.05rem; max-width: 52ch; margin-bottom: 32px; }

.pane-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .pane-grid { grid-template-columns: 1fr; gap: 32px; } }

.pane-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 32px; }
@media (max-width: 520px) { .pane-actions { flex-direction: column-reverse; } .pane-actions .btn { width: 100%; } }

.fine { font-size: .8rem; color: var(--text-3); margin-top: 16px; line-height: 1.55; }

/* ── Medidor de contraseña ──────────────────────────────────────────── */

.meter { height: 4px; border-radius: 999px; background: var(--surface-2); margin-top: 9px; overflow: hidden; }
.meter-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: #ef4444;
  transition: width .3s var(--ease), background .3s;
}

/* ── Panel lateral ──────────────────────────────────────────────────── */

.aside {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 92px;
}
.aside h3 { font-size: 1rem; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: .89rem; color: var(--text-2); line-height: 1.5;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgb(99 102 241 / .18);
  border: 1px solid rgb(99 102 241 / .35);
}
.ticks li::after {
  content: ''; position: absolute; left: 5px; top: 10px;
  width: 5px; height: 8px; border: solid var(--brand-300);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.aside-note {
  padding: 16px; border-radius: var(--radius);
  background: rgb(245 158 11 / .08); border: 1px solid rgb(245 158 11 / .22);
}
.aside-note strong { display: block; font-size: .89rem; color: var(--accent-400); margin-bottom: 6px; }
.aside-note p { font-size: .84rem; color: var(--text-2); line-height: 1.5; }

/* ── Selección de plan ──────────────────────────────────────────────── */

.plan.pick { cursor: pointer; }
.plan.pick:hover { border-color: var(--border-lit); }
.plan.chosen {
  border-color: var(--brand-500);
  background: linear-gradient(160deg, rgb(99 102 241 / .15), var(--surface));
  box-shadow: var(--glow);
}
.plan .pick-mark {
  position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-lit);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.plan.chosen .pick-mark { border-color: var(--brand-500); background: var(--brand-500); }
.plan .pick-mark svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .2s; }
.plan.chosen .pick-mark svg { opacity: 1; }

/* ── Paso final ─────────────────────────────────────────────────────── */

.done-mark {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgb(52 211 153 / .2), rgb(52 211 153 / .08));
  border: 1px solid rgb(52 211 153 / .35);
  color: var(--ok-400);
  animation: pop .5s var(--ease-out);
}
.done-mark svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.key-box {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-lg);
  padding: 26px; margin: 32px 0 40px;
  box-shadow: var(--glow);
}
.key-label { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.key-row { display: flex; gap: 12px; align-items: stretch; }
@media (max-width: 620px) { .key-row { flex-direction: column; } }
.key-row code {
  flex: 1; padding: 14px 16px;
  background: #06060a; border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: .88rem; color: var(--brand-300);
  word-break: break-all; line-height: 1.5;
}
.key-warn {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; font-size: .83rem; color: var(--warn-400);
}
.key-warn svg { width: 15px; height: 15px; flex-shrink: 0; }

.try-title { font-size: 1.1rem; margin-bottom: 16px; }

.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 780px) { .next-grid { grid-template-columns: 1fr; } }
.next-card { display: block; }
.next-card h4 { font-size: .98rem; margin-bottom: 7px; }
.next-card p { font-size: .85rem; color: var(--text-2); line-height: 1.55; }
