/* choque — brief de proyecto */
.brief-main { padding-top: clamp(104px, 14vh, 140px); }
.brief-wrap { max-width: 920px; }
#brief-app { min-height: 60vh; padding-bottom: clamp(48px, 8vw, 96px); }

/* Progreso */
.bq-progress { position: fixed; z-index: 49; left: 0; right: 0; top: 0; height: 3px; background: transparent; }
.bq-progress span { display: block; height: 100%; background: var(--ink); transition: width 400ms var(--ease-out); }

/* Cabecera de cada paso */
.bq-step-head { margin-bottom: clamp(28px, 4vw, 44px); }
.bq-step-head .bq-hero { font-size: clamp(44px, 8vw, 104px); line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; }
.bq-step-head h2 { font-size: clamp(36px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.05em; }
.bq-step-head h2:focus, .bq-done h2:focus { outline: none; }
.bq-part { font-size: 0.4em; letter-spacing: 0; color: var(--ink-2); vertical-align: 0.6em; }
.bq-lead { margin-top: 18px; max-width: 46ch; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--ink-2); }
.bq-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bq-facts li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }

/* Pregunta */
.bq { padding-block: clamp(24px, 3.5vw, 36px); border-top: 1px solid var(--line); transition: opacity 200ms ease; }
.bq-head { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin-bottom: 18px; }
.bq-n { padding-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bq h3, .bq .bq-q { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -0.025em; }
.bq-help { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.bq-body { padding-left: 52px; display: grid; gap: 14px; justify-items: start; }
@media (max-width: 600px) { .bq-head { grid-template-columns: 1fr; gap: 4px; } .bq-body { padding-left: 0; } }
.bq.is-off .bq-body > :not(.bq-nose) { opacity: 0.35; pointer-events: none; }

.bq-input {
  width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 14px;
  background: #fff; color: var(--ink); font: 400 17px/1.45 var(--sans);
  box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.16); transition: box-shadow 150ms ease;
}
textarea.bq-input { padding: 14px 16px; resize: vertical; min-height: 104px; }
.bq-input::placeholder { color: #9A9993; }
.bq-input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.bq-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B4291C; }
.bq-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
@media (max-width: 600px) { .bq-words { grid-template-columns: 1fr; } }

/* "No sé" */
.bq-nose {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 500 14px var(--sans); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.bq-nose::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.bq-nose[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.bq-nose[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 3px var(--ink); }
.bq-nose:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .bq-nose:not([aria-pressed="true"]):hover { background: var(--surface); } }

/* Opciones en píldora */
.bq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bq-chip { position: relative; }
.bq-chip input, .bq-card input, .bq-type input, .bq-dots input { position: absolute; opacity: 0; pointer-events: none; }
.bq-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.16);
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.bq-chip span:active { transform: scale(0.96); }
.bq-chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.bq-chip input:focus-visible + span, .bq-card input:focus-visible + .bq-card-in, .bq-type input:focus-visible + .bq-type-in { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .bq-chip input:not(:checked) + span:hover { background: var(--surface); } }

/* Tarjetas con pictograma (tipo de logo, envase, estilo, tipo de brief) */
.bq-cards, .bq-types { display: grid; gap: 10px; width: 100%; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bq-types { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .bq-cards { grid-template-columns: repeat(2, 1fr); } .bq-types { grid-template-columns: 1fr; } }
.bq-card, .bq-type { position: relative; display: block; }
.bq-card-in, .bq-type-in {
  display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px; border-radius: 20px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.12);
  transition: box-shadow 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.bq-card-in:active, .bq-type-in:active { transform: scale(0.98); }
.bq-card b, .bq-type b { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.bq-d { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.bq-ex { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink); opacity: 0.7; }
.bq-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); color: var(--ink); transition: background-color 150ms ease, color 150ms ease; }
.bq-ico svg { width: 36px; height: 36px; overflow: visible; }
.bq-card input:checked + .bq-card-in, .bq-type input:checked + .bq-type-in { box-shadow: inset 0 0 0 2px var(--ink); }
.bq-card input:checked + .bq-card-in .bq-ico, .bq-type input:checked + .bq-type-in .bq-ico { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .bq-card-in:hover, .bq-type-in:hover { background: #FAFAF8; } }
.bq-type-in { padding: 22px; }
.bq-type b { font-size: 22px; letter-spacing: -0.02em; }
.bq-limit { min-height: 1.2em; font-size: 14px; color: #B4291C; }

/* Escalas de personalidad */
.bq-scales { display: grid; gap: 6px; width: 100%; max-width: 640px; }
.bq-scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); }
.bq-scale .bq-end { font-size: 15.5px; font-weight: 500; }
.bq-scale .bq-end:last-child { text-align: right; }
.bq-dots { display: flex; gap: 6px; }
.bq-dots label { position: relative; display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.bq-dots span[aria-hidden] { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(17 17 16 / 0.35); transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.bq-dots label:nth-child(1) span[aria-hidden], .bq-dots label:nth-child(5) span[aria-hidden] { width: 20px; height: 20px; }
.bq-dots label:nth-child(2) span[aria-hidden], .bq-dots label:nth-child(4) span[aria-hidden] { width: 16px; height: 16px; }
.bq-dots input:checked + span { background: var(--ink); box-shadow: none; transform: scale(1.15); }
.bq-dots input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .bq-dots label:hover input:not(:checked) + span { background: var(--surface); } }
@media (max-width: 600px) {
  .bq-scale { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .bq-dots { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .bq-dots label { width: 44px; height: 44px; }
}

/* "¿Qué debe ver primero?": tocar en orden */
.bq-order { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; width: 100%; }
@media (max-width: 600px) { .bq-order { grid-template-columns: 1fr; } }
.bq-otile {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px; border: 0; border-radius: 18px; text-align: left;
  background: #fff; color: var(--ink); font: 500 16.5px/1.3 var(--sans); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.14); transition: box-shadow 150ms ease, transform 160ms var(--ease-out);
}
.bq-otile:active { transform: scale(0.98); }
.bq-onum { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgb(17 17 16 / 0.25); transition: background-color 150ms ease, color 150ms ease; }
.bq-otile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.bq-otile[aria-pressed="true"] .bq-onum { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .bq-otile:not([aria-pressed="true"]):hover { background: #FAFAF8; } }

/* Subir imagen */
.bq-upload { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.bq-drop {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; width: 200px; min-height: 150px; padding: 16px;
  border-radius: 18px; text-align: center; cursor: pointer; color: var(--ink); background: #fff;
  border: 1.5px dashed rgb(17 17 16 / 0.3); outline-offset: 3px; transition: background-color 150ms ease;
}
.bq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bq-drop svg { width: 28px; height: 28px; margin-bottom: 4px; }
.bq-drop b { font-size: 15.5px; font-weight: 500; }
.bq-drop span { font-size: 13px; color: var(--ink-2); }
.bq-drop:focus-within { outline: 2px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .bq-drop:hover { background: #FAFAF8; } }
.bq-thumb { position: relative; margin: 0; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.08); }
.bq-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bq-thumb-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(17 17 16 / 0.75); color: #fff; cursor: pointer; }
.bq-thumb-x svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .bq-drop { width: 100%; min-height: 120px; } .bq-thumb { width: calc(33.33% - 7px); height: auto; aspect-ratio: 1; } }

/* Datos de contacto */
.bq-contact { display: grid; gap: 14px; max-width: 560px; }
.bq-contact .field > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Navegación entre pasos */
.bq-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: clamp(28px, 4vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); }
.bq-nav .btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* Resumen */
.bq-summary {
  margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--surface);
  font: 400 15px/1.6 var(--sans); white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto;
}
.bq-summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bq-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bq-msg { min-height: 1.4em; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.bq-msg.err { color: #B4291C; }
.bq-legal { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 60ch; }

/* Enviado */
.bq-done { display: grid; justify-items: start; gap: 6px; padding-block: clamp(24px, 6vw, 64px); }
.bq-done h2 { font-size: clamp(40px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; }
.bq-check { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.bq-check svg { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) { .bq-progress span, .bq-chip span, .bq-card-in, .bq-dots span[aria-hidden] { transition: none; } }

/* Tarjetas con foto (tipo de logo) */
.bq-pcards { display: grid; gap: 14px; width: 100%; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 600px) { .bq-pcards { grid-template-columns: 1fr 1fr; gap: 10px; } }
.bq-pcard { position: relative; display: block; }
.bq-pcard input { position: absolute; opacity: 0; pointer-events: none; }
.bq-pcard-in {
  display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 26px; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 1px rgb(17 17 16 / 0.06), 0 10px 30px -14px rgb(17 17 16 / 0.22);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.bq-pcard-in:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .bq-pcard-in:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(17 17 16 / 0.08), 0 16px 36px -14px rgb(17 17 16 / 0.28); } }
.bq-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: var(--surface); }
.bq-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(17 17 16 / 0.06); pointer-events: none; }
.bq-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bq-pcard-in:hover .bq-photo img { transform: scale(1.03); } }
.bq-photo-empty { display: grid; place-items: center; height: 100%; color: var(--ink-2); }
.bq-photo-empty svg { width: 56px; height: 56px; }
.bq-by { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink); background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bq-pbody { display: grid; gap: 4px; padding: 16px 12px 12px; }
.bq-pbody b { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.bq-pbody .bq-d { color: #6B6A65; }
.bq-tick { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; opacity: 0; transform: scale(0.6); transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.bq-tick svg { width: 17px; height: 17px; }
.bq-pcard input:checked + .bq-pcard-in { box-shadow: 0 0 0 2px var(--ink), 0 14px 34px -14px rgb(17 17 16 / 0.3); }
.bq-pcard input:checked + .bq-pcard-in .bq-tick { opacity: 1; transform: none; }
.bq-pcard input:focus-visible + .bq-pcard-in { outline: 2px solid var(--ink); outline-offset: 4px; }
.bq-pcard input:disabled + .bq-pcard-in { cursor: default; }
@media (max-width: 600px) { .bq-pbody { padding: 12px 6px 8px; } .bq-pbody b { font-size: 16px; } .bq-pbody .bq-d { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .bq-pcard-in, .bq-photo img, .bq-tick { transition: none; } }

/* Primera pantalla: las tres opciones son las protagonistas, el título acompaña */
.brief-main:has(.bq-picks) { padding-top: clamp(96px, 12vh, 124px); }
.bq-intro-head { margin-bottom: clamp(24px, 3vw, 36px); }
.bq-intro-head .bq-hero { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.bq-intro-head .bq-lead { margin-top: 10px; max-width: 52ch; font-size: clamp(16px, 1.4vw, 18px); }
.bq-pick-q { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bq-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.bq-pick {
  display: flex; flex-direction: column; gap: 8px; min-height: clamp(280px, 30vw, 360px); padding: clamp(20px, 2.2vw, 28px); border: 0; border-radius: 28px; text-align: left; cursor: pointer;
  background: #fff; color: var(--ink); font: inherit;
  box-shadow: 0 0 0 1px rgb(17 17 16 / 0.08), 0 14px 40px -18px rgb(17 17 16 / 0.24);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), background-color 200ms ease;
}
.bq-pick:active { transform: scale(0.98); }
.bq-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.bq-pick-ico { display: grid; place-items: center; width: clamp(72px, 7vw, 96px); height: clamp(72px, 7vw, 96px); margin-bottom: auto; border-radius: 24px; background: var(--surface); transition: background-color 200ms ease, color 200ms ease; }
.bq-pick-ico svg { width: 60%; height: 60%; overflow: visible; }
.bq-pick-body { display: grid; gap: 8px; margin-top: 28px; }
.bq-pick-body b { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.bq-pick-body .bq-d { font-size: 16px; color: #6B6A65; }
.bq-pick-go { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.bq-pick-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform 260ms var(--ease-out); }
.bq-pick-arrow svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .bq-pick:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(17 17 16 / 0.1), 0 24px 48px -18px rgb(17 17 16 / 0.32); }
  .bq-pick:hover .bq-pick-ico { background: var(--ink); color: #fff; }
  .bq-pick:hover .bq-pick-arrow { transform: translateX(3px); }
}
.bq-picks ~ .bq-facts { margin-top: clamp(20px, 3vw, 28px); }
.bq-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; padding: 12px 16px; border-radius: 16px; background: var(--surface); font-size: 15px; }
.bq-link { padding: 0; border: 0; background: none; font: 600 15px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 32px; }
@media (max-width: 760px) {
  .bq-picks { grid-template-columns: 1fr; }
  .bq-pick { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; }
  .bq-pick-ico { width: 64px; height: 64px; margin: 0; border-radius: 18px; }
  .bq-pick-body { flex: 1; min-width: 0; margin: 0; gap: 4px; }
  .bq-pick-body b { font-size: 28px; }
  .bq-pick-body .bq-d { font-size: 14.5px; }
  .bq-pick-go { margin-top: 6px; }
  .bq-pick-arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bq-pick, .bq-pick-ico, .bq-pick-arrow { transition: none; } }
