/* FANTIME · Onboarding del cliente (página pública) */
.cgm-onb {
  --ink: #12182d; --muted: #79829a; --line: #e6e9f2;
  min-height: 100vh; background: #f2f4f9; padding: 40px 20px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.cgm-onb__shell { max-width: 940px; margin: 0 auto; }
.cgm-onb__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cgm-onb__logo { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
/* Los logos de empresa se suben claros a propósito (van sobre el menú lateral
   oscuro). Sobre un recuadro blanco desaparecen, así que llevan fondo oscuro. */
.cgm-onb__logo--dark { background: var(--ft-side-1, #101d34); padding: 8px; }
.cgm-onb__logo--light { background: #fff; box-shadow: inset 0 0 0 1px #e9ebf1; padding: 7px; }
.cgm-onb__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ft-accent, #2f63ff); }
.cgm-onb__head h1 { margin: 2px 0 0; font-size: 26px; letter-spacing: -.5px; }
.cgm-onb__msg { margin: 0 0 16px; padding: 11px 15px; border-radius: 11px; font-size: 13.5px; font-weight: 600; }
.cgm-onb__msg--ok { background: #e6f6ee; color: #0f7a52; }
.cgm-onb__msg--err { background: #fff0f1; color: #c0243b; }
.cgm-onb__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: 0 1px 3px rgba(20,28,46,.06); }
.cgm-onb__card--narrow { max-width: 440px; margin: 0 auto; }
.cgm-onb__card h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.3px; }
.cgm-onb__lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cgm-onb__form { display: flex; flex-direction: column; gap: 15px; }
.cgm-onb__f { display: flex; flex-direction: column; gap: 6px; }
.cgm-onb__f > span { font-size: 13px; font-weight: 700; color: #3d4a68; }
.cgm-onb__f i { font-style: normal; font-size: 12px; color: #9aa2b6; }
.cgm-onb__f input[type="text"], .cgm-onb__f input[type="email"], .cgm-onb__f input[type="url"],
.cgm-onb__f input[type="password"], .cgm-onb__f textarea, .cgm-onb__f select {
  width: 100%; padding: 11px 13px; border: 1px solid #dfe3ec; border-radius: 11px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff; box-sizing: border-box;
}
.cgm-onb__f textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.cgm-onb__f input:focus, .cgm-onb__f textarea:focus, .cgm-onb__f select:focus {
  outline: none; border-color: var(--ft-accent, #2f63ff); box-shadow: 0 0 0 3px rgba(var(--ft-accent-rgb,47,99,255), .14);
}
.cgm-onb__f input[type="file"] { font-size: 13px; }
.cgm-onb__logoPrev { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f8fafd; margin-bottom: 4px; }
.cgm-onb__logoPrev img { max-width: 78px; max-height: 78px; object-fit: contain; }
.cgm-onb__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid #dfe3ec; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.cgm-onb__btn:hover { border-color: var(--ft-accent, #2f63ff); color: var(--ft-accent, #2f63ff); }
.cgm-onb__btn--primary { background: var(--ft-grad, linear-gradient(135deg,#2f63ff,#5b8cff)); border-color: transparent; color: #fff; }
.cgm-onb__btn--primary:hover { filter: brightness(1.06); color: #fff; }
.cgm-onb__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cgm-onb__foot { margin: 16px 0 0; font-size: 12.5px; color: #9aa2b6; line-height: 1.5; }
.cgm-onb__cols { display: grid; grid-template-columns: 268px 1fr; gap: 20px; align-items: start; }
.cgm-onb__steps { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: sticky; top: 20px; }
.cgm-onb__step { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.cgm-onb__step:hover { background: #f6f8fd; }
.cgm-onb__step.is-cur { background: rgba(var(--ft-accent-rgb,47,99,255), .09); }
.cgm-onb__stepNum {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #eef1f7; color: #79829a;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.cgm-onb__step.is-cur .cgm-onb__stepNum { background: var(--ft-accent, #2f63ff); color: #fff; }
.cgm-onb__step.is-done .cgm-onb__stepNum { background: #16a06b; color: #fff; }
.cgm-onb__stepTx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cgm-onb__stepTx b { font-size: 13.5px; }
.cgm-onb__stepTx i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cgm-onb__progress { margin: 10px 12px 4px; font-size: 12px; font-weight: 700; color: #9aa2b6; }
.cgm-onb__done { max-width: 500px; margin: 0 auto; text-align: center; }
.cgm-onb__check {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border-radius: 50%; background: #e6f6ee; color: #16a06b; margin-bottom: 16px;
}
.cgm-onb__check svg { width: 30px; height: 30px; }
.cgm-onb__done .cgm-onb__lead { margin-bottom: 22px; }
@media (max-width: 780px) {
  .cgm-onb { padding: 24px 14px; }
  .cgm-onb__cols { grid-template-columns: 1fr; }
  .cgm-onb__steps { position: static; }
  .cgm-onb__card { padding: 20px 18px; }
}
