/* =========================================================
   Lanza — formulario de brief (brief.html)
   Usa los tokens y botones de styles.css
   ========================================================= */

.brief-page { min-height: 100vh; background: radial-gradient(640px 420px at 92% 0%, rgba(240, 185, 11, .14), transparent 70%), var(--cream); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Encabezado */
.bnav { border-bottom: 1px solid var(--line); }
.bnav__inner { width: min(1160px, 100% - 32px); margin-inline: auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.blogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.blogo__mark { width: 40px; height: 34px; transition: transform .5s var(--ease); }
.blogo:hover .blogo__mark { transform: translateY(-2px) rotate(-4deg); }
.bnav__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.bnav__back .ico { transition: transform .3s var(--ease); }
.bnav__back:hover .ico { transform: translateX(-3px); }

/* Composición */
.brief { display: grid; gap: 32px; padding: clamp(32px, 7vw, 80px) 0 80px; align-items: start; }
@media (min-width: 900px) { .brief { grid-template-columns: 5fr 6fr; gap: 64px; } .brief__intro { padding-top: 24px; position: sticky; top: 40px; } }
.brief__intro { display: grid; gap: 18px; align-content: start; }
.brief__title { font-size: clamp(36px, 5.4vw, 58px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; max-width: 11ch; }
.brief__lead { color: var(--mute); max-width: 46ch; }

.rail { display: grid; gap: 18px; margin-top: 18px; }
.rail li { display: flex; align-items: center; gap: 12px; color: var(--mute); font-weight: 500; transition: color .3s; }
.rail span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(36, 25, 23, .2); font-size: 12px; font-weight: 600;
  transition: background .35s var(--ease), border-color .35s, color .35s, transform .35s var(--ease);
}
.rail li.is-done span { background: var(--coffee); border-color: var(--coffee); color: var(--cream); }
.rail li.is-current { color: var(--ink); }
.rail li.is-current span { background: var(--yellow); border-color: var(--yellow); color: var(--coffee); transform: scale(1.06); }
@media (max-width: 899px) { .rail { display: none; } .brief__lead { font-size: 15px; } }

/* Tarjeta */
.card {
  background: var(--paper); border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(36, 25, 23, .04), 0 40px 70px -40px rgba(36, 25, 23, .4);
  padding: clamp(22px, 4vw, 34px);
}
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.progress__bar { flex: 1; height: 6px; border-radius: 6px; background: #EDE4D6; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--yellow); border-radius: inherit; transition: width .6s var(--ease); }
.progress span { font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }

.step-panel { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.step-panel[hidden] { display: none; }
.step-panel.is-active { animation: panelIn .5s var(--ease) both; }
.step-panel.is-back { animation-name: panelBack; }
@keyframes panelIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes panelBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.step-panel h2 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; }
.step-panel .hint { color: var(--mute); font-size: 15px; margin-top: -12px; }

.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: 15px; }
.field em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--mute); }
.field-row { display: grid; gap: 20px; align-items: start; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(36, 25, 23, .18); background: #fff; color: var(--ink);
  font: 400 16px/1.5 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #9A8F88; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coffee); box-shadow: 0 0 0 4px rgba(240, 185, 11, .3); }

.err { display: none; color: #B4372B; font-size: 13px; font-weight: 500; }
.is-invalid .err, .err--consent.is-shown { display: block; }
.is-invalid input, .is-invalid textarea { border-color: #B4372B; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(36, 25, 23, .18); background: #fff; color: var(--ink);
  font: 500 15px/1.2 var(--font);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { border-color: rgba(36, 25, 23, .4); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }

.consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #F3ECE1; font-size: 14.5px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coffee); flex: none; }
.err--consent { margin-top: -12px; }

.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; }
.actions .btn { padding: 14px 26px; font-size: 16px; }
.btn-ghost {
  margin-right: auto; padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(36, 25, 23, .2); background: transparent; color: var(--ink);
  font: 600 16px/1.2 var(--font); transition: background .25s;
}
.btn-ghost:hover { background: rgba(36, 25, 23, .05); }
.btn--wa { background: #22A852; color: #fff; box-shadow: 0 12px 26px -12px rgba(34, 168, 82, .8); }
.btn--wa:hover { background: #1E9549; box-shadow: 0 16px 30px -12px rgba(34, 168, 82, .9); }
.btn[hidden], .btn-ghost[hidden], .actions[hidden] { display: none; }

.done { justify-items: start; padding: 10px 0; }
.done .hint { margin-top: 0; }
.done a:not(.btn) { color: var(--brown); font-weight: 600; }
.done__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--coffee); animation: pop .6s var(--ease) both; }
.done__ico .ico { width: 30px; height: 30px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 480px) {
  .bnav__back { font-size: 14px; }
  .actions .btn, .btn-ghost { padding: 13px 18px; font-size: 15px; }
  .chip { padding: 10px 15px; font-size: 14px; }
}
