/* ==========================================================================
   MIND MIAMI — /start · Client brief (estilo Typeform, multi-paso)
   Tokens v2, esquinas redondeadas, texturas, transiciones suaves.
   ========================================================================== */
body.brief-v2 {
  --navy: #000c1f;
  --navy-soft: #07172b;
  --cyan: #08cdd9;
  --cyan-bright: #10d9df;
  --paper: #f6f1ea;
  --ink: #080b0f;
  --gray: #6b7280;
  --border: rgba(0, 38, 54, 0.16);
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  background-image: url("/assets/textures/navy-paper-texture.webp");
  background-size: 640px; background-blend-mode: overlay;
  color: #fff; font-family: var(--font-body);
  overflow-x: hidden; overflow-y: auto;
}

/* site.css pinta main con fondo papel; aquí el stage debe dejar ver el navy */
body.brief-v2 main { background: none; background-image: none; min-height: 100vh; }

/* Barra superior: logo + progreso + salir */
.bf-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 18px clamp(20px, 4vw, 54px);
}
.bf-top .brand { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 18px; letter-spacing: .16em; }
.bf-top .brand .bolt-svg { width: 15px; height: 22px; }
.bf-progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; max-width: 520px; margin: 0 auto; width: 100%; }
.bf-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--cyan); transition: width .5s cubic-bezier(.22,.61,.36,1); }
.bf-exit { color: #9fb2bd; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.bf-exit:hover { color: #fff; }

/* Contenedor de pasos */
.bf-stage { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 96px clamp(22px, 6vw, 90px) 120px; overflow-x: clip; }
.bf-step {
  position: absolute; inset: 96px clamp(22px, 6vw, 90px) 120px; margin: auto;
  max-width: 720px; width: min(720px, 100%);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,.61,.36,1);
}
.bf-step.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; inset: auto; }
.bf-step.leaving-up { opacity: 0; transform: translateY(-26px); }
@media (prefers-reduced-motion: reduce) { .bf-step { transition: none; } }

.bf-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; color: var(--cyan); margin-bottom: 16px; }
.bf-kicker .n { background: var(--cyan); color: var(--navy); border-radius: 6px; padding: 2px 9px; font-size: 15px; }
.bf-step h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 56px); line-height: .98; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 10px; }
.bf-step .accent { color: var(--cyan); }
.bf-step .hint { color: #aebcc6; font-size: 15px; line-height: 1.55; margin: 0 0 30px; max-width: 540px; }

/* Inputs */
.bf-field { width: 100%; }
.bf-input, .bf-textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.25);
  color: #fff; font-size: clamp(20px, 2.6vw, 30px); font-family: var(--font-body); font-weight: 500;
  padding: 10px 2px; transition: border-color .25s;
}
.bf-input::placeholder, .bf-textarea::placeholder { color: rgba(255,255,255,.35); }
.bf-input:focus, .bf-textarea:focus { outline: none; border-bottom-color: var(--cyan); }
.bf-textarea { resize: none; min-height: 120px; font-size: clamp(17px, 2vw, 22px); }

/* Opciones (chips / cards seleccionables) */
.bf-options { display: grid; gap: 12px; }
.bf-options.cols-2 { grid-template-columns: 1fr 1fr; }
.bf-opt {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 14px;
  padding: 16px 18px; cursor: pointer; background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s, transform .12s;
  font-size: 16px; font-weight: 600; color: #eaf3f6; text-align: left; width: 100%;
}
.bf-opt:hover { border-color: var(--cyan); background: rgba(8,205,217,.08); }
.bf-opt:active { transform: scale(.99); }
.bf-opt .key { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; font-family: var(--font-display); font-size: 15px; color: #cfe0e6; }
.bf-opt.selected { border-color: var(--cyan); background: rgba(8,205,217,.16); color: #fff; }
.bf-opt.selected .key { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.bf-opt .check { margin-left: auto; opacity: 0; color: var(--cyan); }
.bf-opt.selected .check { opacity: 1; }

/* Botones */
.bf-actions { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.bf-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 10px; border: 2px solid var(--cyan); background: var(--cyan); color: var(--navy);
  transition: transform .18s, box-shadow .18s, opacity .2s;
}
.bf-btn:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(0,0,0,.3); }
.bf-btn[disabled] { opacity: .4; pointer-events: none; }
.bf-btn svg { width: 15px; height: 15px; }
.bf-enter-hint { font-size: 12px; color: #8fa2ad; letter-spacing: .04em; }
.bf-enter-hint b { color: #cfe0e6; }
.bf-back { position: fixed; left: clamp(20px,4vw,54px); bottom: 26px; z-index: 20; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2); color: #cfe0e6; border-radius: 10px; width: 46px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.bf-back:hover { background: rgba(255,255,255,.14); }
.bf-back[hidden] { display: none; }
.bf-err { color: #ff8a7a; font-size: 13px; font-weight: 600; margin-top: 12px; min-height: 16px; }

/* Welcome + success */
.bf-center { text-align: center; align-items: center; }
.bf-center .bf-actions { justify-content: center; }
.bf-welcome-bolt { width: 66px; height: 94px; color: var(--cyan); margin: 0 auto 22px; display: block; }
.bf-success-ic { width: 74px; height: 74px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: var(--navy); }
.bf-success-ic svg { width: 40px; height: 40px; }
.bf-meta { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: #aebcc6; font-size: 13px; }
.bf-meta b { color: var(--cyan); }

/* Sending overlay */
.bf-sending { position: fixed; inset: 0; z-index: 40; background: rgba(0,12,31,.75); display: none; place-items: center; }
.bf-sending.on { display: grid; }
.bf-spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--cyan); border-radius: 50%; animation: bf-spin .8s linear infinite; }
@keyframes bf-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .bf-options.cols-2 { grid-template-columns: 1fr; }
  .bf-top { grid-template-columns: auto 1fr; }
  .bf-top .bf-exit { display: none; }
  .bf-stage { padding: 84px 20px 110px; align-items: start; }
  .bf-step { justify-content: flex-start; }
  .bf-step.is-active { min-height: calc(100vh - 194px); justify-content: center; }
  .bf-actions { gap: 12px; }
  .bf-btn { flex: 1; justify-content: center; }
  .bf-back { width: 42px; height: 40px; bottom: 20px; }
}
