/* … (/brief/). Usa los tokens de site.css. */

/* ---------- Cabecera de la página ---------- */
main .page-head.page-head--brief { padding-top: clamp(28px, 4vw, 56px); }
main .page-head.page-head--brief > .wrap { display: block; }
.page-head--brief .page-title { max-width: none; margin-bottom: 14px; }
.brief-who { display: flex; align-items: center; gap: 12px; max-width: 70ch; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.brief-who img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
main .page-head--brief + .brief-sec { padding-top: 24px; }

.brief { --b-line: rgba(31, 31, 31, .14); --b-ok: #2e9e5b; --b-warn: #d98a00; position: relative; }
.brief [hidden] { display: none !important; }

/* ---------- Barra de pasos y avance (queda pegada bajo la cabecera) ---------- */
.brief__bar { position: sticky; top: 104px; z-index: 20; display: flex; align-items: center; gap: 20px; margin: 0 -8px 14px; padding: 8px; border-radius: 999px; background: rgba(247, 247, 244, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brief__steps { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.brief__steps::-webkit-scrollbar { display: none; }
.brief__steps button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 0; border-radius: 999px; background: none; font: 700 13px var(--display); color: var(--ink-muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.brief__steps button i { font: 500 11px var(--body); font-style: normal; opacity: .7; }
.brief__steps button:hover { background: rgba(31, 31, 31, .06); color: var(--ink); }
.brief__steps button.is-done { color: var(--ink); }
.brief__steps button.is-done i::after { content: " ✓"; color: var(--yellow); }
.brief__steps button.is-on { background: var(--black); color: #fff; }
.brief__xp { flex: none; display: grid; gap: 5px; min-width: 150px; margin: 0; padding-right: 12px; font-size: 13px; color: var(--ink-muted); }
.brief__xp b { display: inline-block; font: 800 14px var(--display); color: var(--ink); }
.brief__xp i { font-style: normal; }
.brief__xp-bar { height: 5px; border-radius: 5px; background: var(--b-line); overflow: hidden; }
.brief__xp-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--yellow); transition: width .5s cubic-bezier(.3, 1.4, .5, 1); }
.brief__xp.is-pop b { animation: b-pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes b-pop { 50% { transform: scale(1.45); } }

/* ---------- Tarjeta del paso ---------- */
.brief__card { position: relative; padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line-light); border-radius: 28px; background: var(--white); box-shadow: 0 30px 60px -48px rgba(17, 17, 17, .4); }
.b-stage { animation: b-in .35s ease both; }
@keyframes b-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.b-kicker, .brief__kicker { margin: 0 0 8px; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.b-stage h2 { margin: 0 0 8px; font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--display); letter-spacing: -.02em; }
.b-stage h2 em { font-style: normal; color: var(--yellow); }
.b-stage__lead { max-width: 74ch; margin: 0 0 26px; font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); }
.brief__nav { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.brief__hint { flex: 1; text-align: center; font-size: 13px; color: var(--ink-muted); }
.brief__nav .btn[disabled] { opacity: .5; pointer-events: none; }
.brief__foot { margin: 16px 4px 0; font-size: 13px; color: var(--ink-muted); }
.brief__link, .b-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.brief__link:hover, .b-link:hover { color: var(--yellow); }

/* ---------- Preguntas ---------- */
.b-q { margin: 0 0 26px; }
.b-q__label { display: block; margin: 0 0 8px; font: 700 clamp(1rem, 1.3vw, 1.12rem)/1.3 var(--display); color: var(--ink); }
.b-q > p.b-q__label, p.b-q.b-q__label { margin-top: 34px; }
.b-q__hint { display: block; margin: -4px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.b-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.b-q input[type=text], .b-q input[type=email], .b-q input[type=tel], .b-q textarea, .b-sel__btn { width: 100%; padding: 6px 2px 9px; border: 0; border-radius: 0; outline: 0; font: 500 17px/1.5 var(--body); color: var(--ink); caret-color: var(--yellow); background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 2px no-repeat, linear-gradient(rgba(31, 31, 31, .26), rgba(31, 31, 31, .26)) left bottom / 100% 1.5px no-repeat; transition: background-size .35s ease; }
.b-q textarea { display: block; min-height: 2.7em; resize: none; overflow: hidden; font-weight: 400; }
.b-q input:focus, .b-q textarea:focus, .b-sel__btn:focus-visible, .b-sel.is-open .b-sel__btn { background-size: 100% 2px, 100% 1.5px; }
.b-q ::placeholder { color: rgba(31, 31, 31, .34); font-weight: 400; opacity: 1; }
.b-big textarea { min-height: 5.4em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* Opciones en cápsula */
.b-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.b-chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.b-chip input { position: absolute; opacity: 0; pointer-events: none; }
.b-chip span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 1.5px solid rgba(31, 31, 31, .2); border-radius: 999px; background: var(--white); font: 700 15px var(--display); color: var(--ink); user-select: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.b-chip span b { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(31, 31, 31, .2); }
.b-chip:hover span { border-color: var(--black); }
.b-chip:active span { transform: scale(.95); }
.b-chip input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.b-chip input:checked + span b { border-color: rgba(255, 255, 255, .55); }
.b-chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.b-chips.is-max, .b-fonts.is-max { animation: b-shake .35s ease; }
@keyframes b-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Lista desplegable */
.b-sel { position: relative; }
.b-sel__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-weight: 400; color: rgba(31, 31, 31, .34); cursor: pointer; }
.b-sel__btn.has-value { font-weight: 500; color: var(--ink); }
.b-sel__btn i { flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.b-sel.is-open .b-sel__btn i { transform: rotate(225deg) translateY(-3px); }
.b-sel__list { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; width: min(640px, calc(100vw - 48px)); margin: 0; padding: 12px; list-style: none; border: 1px solid var(--line-light); border-radius: 20px; background: var(--white); box-shadow: 0 30px 60px -28px rgba(17, 17, 17, .5); animation: b-drop .2s ease both; }
@keyframes b-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.b-sel__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px; font: 600 14.5px var(--body); cursor: pointer; outline: 0; transition: background .15s ease; }
.b-sel__list li:hover, .b-sel__list li:focus { background: var(--paper); }
.b-sel__list li[aria-selected="true"] { background: var(--black); color: #fff; }
.b-sel__list li[aria-selected="true"]::after { content: "✓"; }
.b-q:has(.b-gprev) .b-sel__list { grid-template-columns: repeat(3, minmax(0, 1fr)); left: 0; right: 0; top: auto; bottom: calc(100% + 8px); width: auto; }
.b-gprev { margin: 14px 0 0; padding: 18px 22px; border: 1px solid var(--line-light); border-radius: 18px; background: var(--paper); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15; overflow-wrap: anywhere; }

/* Carácter: deslizadores con personajes */
.b-pairs { display: grid; gap: 4px; max-width: 900px; }
.b-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; font: 700 15px var(--display); }
.b-pair span { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink-muted); transition: color .2s ease; }
.b-pair span:last-child { justify-content: flex-end; text-align: right; }
.b-pair img { flex: none; width: 64px; height: 64px; object-fit: contain; filter: grayscale(.9); opacity: .55; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), filter .25s ease, opacity .25s ease; }
.b-pair[data-side^="l"] span:first-child, .b-pair[data-side^="r"] span:last-child { color: var(--ink); }
.b-pair[data-side="l2"] span:first-child, .b-pair[data-side="r2"] span:last-child { color: var(--yellow); }
.b-pair[data-side^="l"] span:first-child img, .b-pair[data-side^="r"] span:last-child img { filter: none; opacity: 1; transform: scale(1.1); }
.b-pair[data-side="l2"] span:first-child img, .b-pair[data-side="r2"] span:last-child img { transform: scale(1.3); }
.b-pair input[type=range] { width: 100%; height: 30px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.b-pair input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(31, 31, 31, .32), rgba(31, 31, 31, .1) 50%, rgba(31, 31, 31, .32)); }
.b-pair input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(31, 31, 31, .2); }
.b-pair input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 0; border-radius: 50%; background: var(--black); box-shadow: 0 4px 10px -4px rgba(17, 17, 17, .6); transition: transform .15s ease, background .2s ease; }
.b-pair input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--black); }
.b-pair input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); background: var(--yellow); }
.b-pair.is-untouched input[type=range]::-webkit-slider-thumb { background: var(--white); box-shadow: inset 0 0 0 2px rgba(31, 31, 31, .4); }
.b-pair.is-untouched input[type=range]::-moz-range-thumb { background: var(--white); box-shadow: inset 0 0 0 2px rgba(31, 31, 31, .4); }
.b-pair input[type=range]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }

/* Formas, líneas y tipos: tarjetas con tres respuestas */
.b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.b-tri { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; border: 1.5px solid var(--line-light); border-radius: 20px; background: var(--white); transition: border-color .2s ease, opacity .2s ease; }
.b-tri__ico { margin: 0 -2px 6px; border-radius: 12px; background: var(--paper); overflow: hidden; }
.b-tri__ico img { display: block; width: 100%; height: auto; transition: filter .2s ease; }
.b-tri > b { font: 800 16px var(--display); }
.b-tri > small { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.b-tri__badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--body); color: var(--ink-muted); }
.b-tri__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b-ok); }
.b-tri[data-rec="possibly"] .b-tri__badge::before { background: #fab900; }
.b-tri__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.b-tri__seg label { position: relative; cursor: pointer; }
.b-tri__seg input { position: absolute; opacity: 0; }
.b-tri__seg span { display: block; padding: 8px 2px; border-radius: 10px; background: var(--paper); font: 700 13px var(--display); text-align: center; transition: background .2s ease, color .2s ease, transform .15s ease; }
.b-tri__seg label:hover span { background: rgba(31, 31, 31, .1); }
.b-tri__seg label:active span { transform: scale(.94); }
.b-tri__seg input:checked + span { background: var(--black); color: #fff; }
.b-tri__seg input[value="No"]:checked + span { background: rgba(31, 31, 31, .5); }
.b-tri__seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.b-tri[data-v="Sí"] { border-color: var(--black); }
.b-tri[data-v="No"] > b, .b-tri[data-v="No"] > small, .b-tri[data-v="No"] .b-tri__badge { opacity: .5; }
.b-tri[data-v="No"] .b-tri__ico img { filter: grayscale(1) opacity(.55); }

/* Recomendación: una línea discreta que se abre si se quiere leer */
.b-reco { margin-top: 4px; font-size: 13px; }
.b-reco summary { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; list-style: none; cursor: pointer; color: var(--ink-muted); }
.b-reco summary::-webkit-details-marker { display: none; }
.b-reco summary i { flex: none; display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 10px/1 var(--body); font-style: normal; }
.b-reco summary b { font: 600 13px/1.3 var(--body); color: var(--ink); }
.b-reco summary em { margin-left: auto; font-style: normal; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.b-reco summary:hover em { color: var(--ink); }
.b-reco[open] summary em { font-size: 0; }
.b-reco[open] summary em::after { content: "cerrar"; font-size: 13px; }
.b-reco[data-state="warn"] summary i { color: var(--b-warn); }
.b-reco p { margin: 6px 0 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper); line-height: 1.5; color: var(--ink); }
.b-recotip { margin: -10px 0 22px; font-size: 14px; color: var(--ink-muted); }

/* Aviso al llegar a un límite: claro y con cierre */
.b-tip { display: flex; align-items: flex-start; gap: 10px; max-height: 0; margin: 0; padding: 0 10px 0 16px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: var(--paper); box-shadow: inset 3px 0 0 #fab900; font-size: 14px; line-height: 1.45; color: var(--ink); opacity: 0; transition: max-height .3s ease, padding .3s ease, margin .3s ease, opacity .3s ease; }
.b-tip.is-on { max-height: 160px; margin-top: 12px; padding: 11px 10px 11px 16px; opacity: 1; }
.b-tip span { flex: 1; }
.b-tip button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; font-size: 19px; line-height: 1; color: var(--ink-muted); cursor: pointer; }
.b-tip button:hover { background: rgba(31, 31, 31, .08); color: var(--ink); }

/* Color */
.b-colorpick { display: flex; align-items: center; gap: 14px; }
.b-cwheel { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#e0382d, #fab900, #2e9e5b, #1d9bd1, #7a4fd6, #e0382d); box-shadow: 0 8px 18px -10px rgba(17, 17, 17, .6); cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.b-cwheel:hover { transform: scale(1.1) rotate(20deg); }
.b-cwheel:active { transform: scale(.94); }
.b-cwheel input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.b-cwheel span { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font: 800 20px/1 var(--display); color: var(--ink); pointer-events: none; }
.b-cpicked { margin-top: 12px; }
.b-cpicked:empty { display: none; }
.b-cchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1.5px solid rgba(31, 31, 31, .2); border-radius: 999px; background: var(--white); font: 700 13px var(--body); letter-spacing: .02em; color: var(--ink); cursor: pointer; animation: b-in .3s ease both; }
.b-cchip b { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(31, 31, 31, .15); }
.b-cchip i { font-style: normal; font-size: 16px; line-height: 1; color: var(--ink-muted); }
.b-cchip:hover { border-color: var(--black); }
.b-cchip:hover i { color: var(--yellow); }

/* Tipografía */
.b-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.b-font { position: relative; cursor: pointer; }
.b-font input { position: absolute; opacity: 0; }
.b-font > span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line-light); border-radius: 18px; background: var(--white); transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease; }
.b-font:hover > span { border-color: var(--black); }
.b-font:active > span { transform: scale(.98); }
.b-font em { font-style: normal; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; overflow-wrap: anywhere; font-variation-settings: normal; }
.b-font b { margin-top: 4px; font: 700 13.5px var(--display); }
.b-font small { font-size: 12.5px; color: var(--ink-muted); }
.b-font input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.b-font input:checked + span small { color: rgba(255, 255, 255, .65); }
.b-font input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Último paso */
.b-summary { max-height: 280px; overflow: auto; margin: 0 0 26px; padding: 16px 18px; border: 1px dashed var(--b-line); border-radius: 16px; background: var(--paper); font: 400 14px/1.6 var(--body); white-space: pre-wrap; }
.b-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-muted); cursor: pointer; }
.b-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.b-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.b-consent a:hover { color: var(--yellow); }
.b-err { margin: 10px 0 0; font: 600 14px var(--body); color: var(--yellow); }
.brief__estimate { margin: 0 0 26px; padding: 16px 18px; border-radius: 16px; background: var(--paper); }
.brief__estimate b { font: 800 14px var(--display); }
.brief__estimate pre { margin: 8px 0; font: 400 14px/1.55 var(--body); white-space: pre-wrap; }
.brief__estimate small { color: var(--ink-muted); }

/* Gracias */
.brief__thanks { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--black); color: #fff; outline: 0; animation: b-in .5s ease both; }
.brief__thanks-wira img { width: 100%; height: auto; animation: wira-float 5.5s ease-in-out infinite; }
.brief__thanks-copy { display: grid; gap: 16px; justify-items: start; }
.brief__thanks .brief__kicker { margin: 0; color: rgba(237, 237, 237, .6); }
.brief__thanks .h2 { margin: 0; color: #fff; }
.brief__thanks .h2 .hl { color: var(--yellow); }
.brief__thanks .lede { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: rgba(237, 237, 237, .72); }
.brief__thanks .btn--outline { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.brief__thanks .btn--outline:hover { background: #fff; border-color: #fff; color: var(--black); }

/* Mensaje de ánimo */
.brief__toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 22px; border-radius: 999px; background: var(--black); color: #fff; font: 700 15px var(--display); box-shadow: 0 20px 40px -18px rgba(17, 17, 17, .7); transform: translate(-50%, 160%); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease; pointer-events: none; }
.brief__toast[hidden] { display: none; }
.brief__toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.brief__toast strong { padding: 5px 12px; border-radius: 999px; background: var(--yellow); font: 800 14px var(--display); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .brief__bar { top: 84px; flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border-radius: 18px; }
  .brief__xp { order: -1; min-width: 0; padding: 0 4px; }
  .b-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .b-grid2 { grid-template-columns: minmax(0, 1fr); }
  .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .b-tri { padding: 10px; }
  .b-tri__seg span { font-size: 12px; padding: 8px 0; }
  .b-pair { grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 10px; font-size: 14px; }
  .b-pair input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .b-pair img { width: 52px; height: 52px; }
  .b-pair span { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13.5px; line-height: 1.25; }
  .b-pair span:last-child { flex-direction: column-reverse; align-items: flex-end; }
  .b-pair { padding-bottom: 8px; border-bottom: 1px solid var(--line-light); }
  .b-pair:last-child { border-bottom: 0; }
  .b-sel__list, .b-q:has(.b-gprev) .b-sel__list { grid-template-columns: minmax(0, 1fr); left: 0; right: 0; width: auto; max-height: 320px; overflow: auto; }
  .b-q:has(.b-gprev) .b-sel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-chip span { padding: 9px 15px; font-size: 14px; }
  .brief__hint { display: none; }
  .brief__nav { justify-content: space-between; }
  .brief__thanks { grid-template-columns: minmax(0, 1fr); }
  .brief__thanks-wira { max-width: 170px; }
  .brief__toast { left: 12px; right: 12px; justify-content: space-between; transform: translateY(160%); }
  .brief__toast.is-on { transform: none; }
  .brief-who { align-items: flex-start; font-size: 15px; }
}
@media (max-width: 420px) { .b-cards { grid-template-columns: minmax(0, 1fr); } .b-fonts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .brief *, .brief__toast { animation: none !important; transition: none !important; } }

/* La barra de pasos sigue a la cabecera: sube cuando la cabecera se esconde */
.brief__bar { top: 104px; transition: top .35s ease, box-shadow .3s ease; }
body:has(.site-header.is-hidden) .brief__bar { top: 12px; }
.brief__bar.is-stuck { box-shadow: 0 14px 30px -20px rgba(17, 17, 17, .35); background: rgba(255, 255, 255, .96); }
@media (max-width: 900px) { .brief__bar { top: 84px; } body:has(.site-header.is-hidden) .brief__bar { top: 8px; } }
.brief__nav { border-top: 0; padding-top: 8px; }

/* ---------- … : tarjetas con ilustración y rango de edad ---------- */
.b-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.b-acards--small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-width: 760px; }
.b-acard { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.b-acard input { position: absolute; opacity: 0; pointer-events: none; }
.b-acard > span { position: relative; display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px 16px 18px; border: 1.5px solid var(--line-light); border-radius: 20px; background: var(--white); transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.b-acard:hover > span { border-color: var(--black); box-shadow: 0 14px 28px -22px rgba(17, 17, 17, .5); }
.b-acard:active > span { transform: scale(.97); }
.b-acard__art { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 18px; background: var(--paper); color: var(--ink); transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.b-acard__art svg { width: 44px; height: 44px; }
.b-acard b { font: 800 16px/1.25 var(--display); }
.b-acard small { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.b-acard > span::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(31, 31, 31, .22); background: var(--white) center / 12px no-repeat; transition: background-color .2s ease, border-color .2s ease; }
.b-acard input:checked + span { border-color: var(--black); background: var(--black); color: #fff; }
.b-acard input:checked + span small { color: rgba(255, 255, 255, .7); }
.b-acard input:checked + span .b-acard__art { background: rgba(255, 255, 255, .1); color: #fff; transform: scale(1.06); }
.b-acard input:checked + span::after { border-color: var(--yellow); background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.b-acard input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.b-acards--small .b-acard > span { justify-items: center; padding: 14px 10px 14px; text-align: center; }
.b-acards--small .b-acard__art { width: 56px; height: 56px; margin-bottom: 4px; }
.b-acards--small .b-acard__art svg { width: 38px; height: 38px; }
.b-acards--small .b-acard > span::after { right: 10px; top: 10px; width: 18px; height: 18px; background-size: 10px; }
.b-acards.is-max { animation: b-shake .35s ease; }

.b-age { max-width: 760px; padding: 4px 0 0; }
.b-age__val { display: inline-block; margin-bottom: 6px; font: 800 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--display); color: var(--ink); }
.b-age.is-untouched .b-age__val { font: 400 15px var(--body); color: var(--ink-muted); }
.b-age__track { position: relative; height: 34px; }
.b-age__track::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 4px; background: rgba(31, 31, 31, .14); }
.b-age__track i { position: absolute; top: 15px; height: 4px; border-radius: 4px; background: var(--yellow); }
.b-age.is-untouched .b-age__track i { background: rgba(31, 31, 31, .3); }
.b-age__track input { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.b-age__track input::-webkit-slider-runnable-track { background: none; }
.b-age__track input::-moz-range-track { background: none; }
.b-age__track input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; border: 3px solid var(--white); border-radius: 50%; background: var(--black); box-shadow: 0 4px 12px -4px rgba(17, 17, 17, .6); cursor: grab; transition: transform .15s ease; }
.b-age__track input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 3px solid var(--white); border-radius: 50%; background: var(--black); cursor: grab; }
.b-age__track input:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.b-age__track input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--yellow); outline-offset: 2px; }
.b-age__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
@media (max-width: 720px) {
  .b-acards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .b-acards--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-acard > span { padding: 12px 12px 14px; }
  .b-acard__art { width: 52px; height: 52px; }
  .b-acard__art svg { width: 36px; height: 36px; }
}

/* ---------- Selección clásica: casilla cuadrada = varias, círculo = una ---------- */
.brief__bar { margin-inline: 0; }
.b-chip span { gap: 10px; padding-left: 14px; }
.b-chip span::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(31, 31, 31, .4); border-radius: 5px; background: var(--white) center / 12px no-repeat; transition: background-color .15s ease, border-color .15s ease; }
.b-chip input[type=radio] + span::before { border-radius: 50%; }
.b-chip input:checked + span { background: var(--paper); border-color: var(--black); color: var(--ink); }
.b-chip input[type=checkbox]:checked + span::before { border-color: var(--black); background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.b-chip input[type=radio]:checked + span::before { border-color: var(--black); background: radial-gradient(circle, var(--black) 0 4.5px, var(--white) 5px); }
.b-chip input:checked + span b { border-color: rgba(31, 31, 31, .2); }
.b-chip input:focus-visible + span { outline: 2px solid rgba(31, 31, 31, .45); outline-offset: 2px; }

/* Tarjetas: misma lógica en la esquina, sin volverse negras */
.b-acard input:checked + span { background: var(--paper); border-color: var(--black); color: var(--ink); }
.b-acard input:checked + span small { color: var(--ink-muted); }
.b-acard input:checked + span .b-acard__art { background: var(--white); color: var(--ink); }
.b-acard > span::after { border-radius: 6px; }
.b-acard input[type=radio] + span::after { border-radius: 50%; }
.b-acard input[type=checkbox]:checked + span::after { border-color: var(--black); background-color: var(--black); }
.b-acard input[type=radio]:checked + span::after { border-color: var(--black); background: radial-gradient(circle, var(--black) 0 5px, var(--white) 5.5px); }
.b-acard input:focus-visible + span { outline: 2px solid rgba(31, 31, 31, .45); outline-offset: 2px; }

/* Tipografía (varias): casilla en la esquina */
.b-font > span { position: relative; }
.b-font > span::after { content: ""; position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; border: 1.5px solid rgba(31, 31, 31, .3); border-radius: 6px; background: var(--white) center / 12px no-repeat; }
.b-font input:checked + span { background: var(--paper); border-color: var(--black); color: var(--ink); }
.b-font input:checked + span small { color: var(--ink-muted); }
.b-font input:checked + span::after { border-color: var(--black); background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.b-font input:focus-visible + span { outline: 2px solid rgba(31, 31, 31, .45); outline-offset: 2px; }

/* ---------- Introducción: imagen + instrucciones ---------- */
.brief-intro { padding: clamp(20px, 3vw, 40px) 0 0; }
.brief-intro__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: 16px; padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: #ecebe6; }
.brief-intro__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.brief-intro__art::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: var(--white); }
.brief-intro__art img { position: relative; width: 74%; height: auto; animation: wira-float 5.5s ease-in-out infinite; }
.brief-intro__copy { display: grid; justify-items: start; gap: 0; }
.brief-intro__title { margin: 0 0 14px; font: 800 clamp(2rem, 3.6vw, 3.1rem)/1.08 var(--display); letter-spacing: -.02em; }
.brief-intro__lede { max-width: 52ch; margin: 0 0 26px; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; color: var(--ink-muted); }
.brief-intro__start { min-width: min(320px, 100%); justify-content: center; margin-bottom: clamp(28px, 3.4vw, 44px); }
.brief-intro__tips { display: grid; gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.brief-intro__tips li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.brief-intro__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--ink); }
.brief-intro__tips b { display: block; margin: 2px 0 4px; font: 800 17px/1.25 var(--display); }
.brief-intro__tips p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.brief-intro + .brief-sec { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) {
  .brief-intro__box { grid-template-columns: minmax(0, 1fr); }
  .brief-intro__art { max-width: 320px; justify-self: center; }
  .brief-intro__start { width: 100%; }
}

/* … : a la vista y obligatoria */
.b-q__label--need::after { content: " *"; color: var(--yellow); }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.b-tile { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.b-tile input { position: absolute; opacity: 0; pointer-events: none; }
.b-tile span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 11px 14px; border: 1.5px solid var(--line-light); border-radius: 14px; background: var(--white); font: 700 14.5px/1.3 var(--display); transition: border-color .15s ease, background .15s ease; }
.b-tile span::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(31, 31, 31, .4); border-radius: 50%; background: var(--white); transition: border-color .15s ease, background .15s ease; }
.b-tile:hover span { border-color: var(--black); }
.b-tile input:checked + span { border-color: var(--black); background: var(--paper); }
.b-tile input:checked + span::before { border-color: var(--black); background: radial-gradient(circle, var(--black) 0 4.5px, var(--white) 5px); }
.b-tile input:focus-visible + span { outline: 2px solid rgba(31, 31, 31, .45); outline-offset: 2px; }
.b-tiles.is-max { animation: b-shake .35s ease; }
@media (max-width: 720px) { .b-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-tile span { padding: 10px 11px; font-size: 13.5px; } }

/* … : 6 principales + lista */
.b-acards--sphere { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-sphere-more { display: flex; align-items: center; gap: 14px; max-width: 640px; margin-top: 14px; padding: 10px 16px; border: 1.5px solid var(--line-light); border-radius: 16px; background: var(--white); transition: border-color .2s ease, background .2s ease; }
.b-sphere-more.is-on { border-color: var(--black); background: var(--paper); }
.b-sphere-more__label { flex: none; font: 700 14.5px var(--display); }
.b-sphere-more .b-sel { flex: 1; min-width: 0; }
.b-sphere-more .b-sel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, calc(100vw - 48px)); }
@media (max-width: 720px) { .b-acards--sphere { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-sphere-more { flex-wrap: wrap; gap: 4px 10px; } .b-sphere-more__label { width: 100%; } }

/* Introducción: contenedor blanco; Wiracocha mira y señala hacia el texto */
.brief-intro__box { background: var(--white); border: 1px solid var(--line-light); }
.brief-intro__art::before { background: var(--paper); }
.brief-intro__art img { animation-name: wira-float-mirror; }
@keyframes wira-float-mirror { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(1deg); } 50% { transform: scaleX(-1) translateY(-22px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .brief-intro__art img { animation: none; transform: scaleX(-1); } }
.brief-intro__ico { background: var(--paper); }

/* Introducción más compacta: misma distancia que las demás páginas, menos aire dentro */
.brief-intro { padding-top: 0; }
.brief-intro__box { margin-top: 0; padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3.4vw, 48px); gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.brief-intro__art { max-width: 380px; }
.brief-intro__title { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 12px; }
.brief-intro__lede { margin-bottom: 20px; }
.brief-intro__start { margin-bottom: 26px; }
.brief-intro__tips { gap: 14px; margin-bottom: 20px; }
@media (max-width: 860px) { .brief-intro__box { grid-template-columns: minmax(0, 1fr); } .brief-intro__art { max-width: 240px; } }
.brief-intro__art::before { display: none; } .brief-intro__art { aspect-ratio: auto; } .brief-intro__art img { width: 86%; }
.brief-intro__art img { animation: none; transform: scaleX(-1); }

/* ---------- Barra lateral con los 10 pasos (como en el brief original) ---------- */
.brief { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.brief > .brief__card, .brief > .brief__thanks, .brief > .brief__foot, .brief > noscript { grid-column: 2; }
.brief__bar, body:has(.site-header.is-hidden) .brief__bar { position: sticky; top: 112px; z-index: 5; display: grid; gap: 18px; align-items: stretch; margin: 0; padding: 22px 18px 18px; border-radius: 24px; background: var(--black); color: #fff; backdrop-filter: none; box-shadow: none; transition: top .35s ease; }
body:has(.site-header.is-hidden) .brief__bar { top: 24px; }
.brief__bar.is-stuck { background: var(--black); box-shadow: none; }
.brief__xp { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 10px; min-width: 0; padding: 0 6px; color: rgba(255, 255, 255, .6); }
.brief__xp b { font: 800 34px/1 var(--display); color: #fff; }
.brief__xp > span:first-of-type { padding-bottom: 4px; font-size: 13px; }
.brief__xp-bar { grid-column: 1 / -1; height: 6px; margin-top: 8px; background: rgba(255, 255, 255, .14); }
.brief__steps { display: grid; gap: 2px; overflow: visible; }
.brief__steps button { display: flex; justify-content: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; color: rgba(255, 255, 255, .62); font-size: 14px; text-align: left; }
.brief__steps button i { width: 22px; font-size: 12px; opacity: .6; }
.brief__steps button::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.brief__steps button.is-done { color: #fff; }
.brief__steps button.is-done i::after { content: ""; }
.brief__steps button.is-done::after { border-color: var(--yellow); background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.brief__steps button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.brief__steps button.is-on { background: #fff; color: var(--black); }
.brief__steps button.is-on i { opacity: .5; }
.brief__steps button.is-on::after { border-color: var(--black); }
.brief__side-actions { display: grid; gap: 10px; justify-items: center; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
.brief__side-btn { width: 100%; margin-top: 10px; justify-content: center; background: #fff; color: var(--black); }
.brief__side-btn:hover { background: var(--yellow); color: #fff; }
.brief__bar .brief__link { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.brief__bar .brief__link:hover { color: #fff; }
@media (max-width: 1000px) {
  .brief { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .brief > .brief__card, .brief > .brief__thanks, .brief > .brief__foot { grid-column: 1; }
  .brief__bar, body:has(.site-header.is-hidden) .brief__bar { top: 8px; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 18px; }
  .brief__xp { grid-template-columns: auto 1fr; }
  .brief__xp b { font-size: 22px; }
  .brief__steps { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .brief__steps button { flex: none; width: auto; padding: 8px 12px; }
  .brief__steps button::after { display: none; }
  .brief__side-actions { display: none; }
}

/* Iconos 3D de la biblioteca Espinoza */
.b-acard__art img { display: block; width: 56px; height: 56px; object-fit: contain; }
.b-acard__art:has(img) { background: none; }
.b-acard input:checked + span .b-acard__art:has(img) { background: none; transform: scale(1.1); }
.b-acards--sphere { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.b-acards--sphere .b-acard > span { justify-items: center; gap: 6px; padding: 14px 10px 14px; text-align: center; }
.b-acards--sphere .b-acard__art { width: 64px; height: 64px; margin: 0; }
.b-acards--sphere .b-acard__art img { width: 60px; height: 60px; }
.b-acards--sphere .b-acard b { font-size: 13.5px; line-height: 1.25; }
.b-acards--sphere .b-acard > span::after { right: 10px; top: 10px; width: 18px; height: 18px; }
@media (max-width: 720px) { .b-acards--sphere { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b-other { max-width: 560px; margin-top: 16px; padding: 16px 18px; border: 1.5px solid var(--black); border-radius: 16px; background: var(--paper); animation: b-in .3s ease both; }
.b-other input { width: 100%; padding: 6px 2px 9px; border: 0; outline: 0; font: 500 17px/1.5 var(--body); color: var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 2px no-repeat, linear-gradient(rgba(31, 31, 31, .26), rgba(31, 31, 31, .26)) left bottom / 100% 1.5px no-repeat; transition: background-size .35s ease; }
.b-other input:focus { background-size: 100% 2px, 100% 1.5px; }
.b-other input::placeholder { color: rgba(31, 31, 31, .34); font-weight: 400; }
.brief__hint { flex: 1; text-align: right; padding-right: 6px; }

/* ---------- Campos clásicos (caja con borde), como en el brief original ---------- */
.b-q input[type=text], .b-q input[type=email], .b-q input[type=tel], .b-q textarea, .b-sel__btn, .b-other input {
  min-height: 48px; padding: 12px 14px; border: 1.5px solid rgba(31, 31, 31, .18); border-radius: 12px;
  background: var(--white); font: 400 16px/1.45 var(--body); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.b-q textarea { min-height: 96px; resize: vertical; overflow: auto; }
.b-big textarea { min-height: 160px; font-size: 16px; }
.b-q input:hover, .b-q textarea:hover, .b-sel__btn:hover, .b-other input:hover { border-color: rgba(31, 31, 31, .4); }
.b-q input:focus, .b-q textarea:focus, .b-sel__btn:focus-visible, .b-sel.is-open .b-sel__btn, .b-other input:focus {
  border-color: var(--black); box-shadow: 0 0 0 3px rgba(31, 31, 31, .08); background: var(--white);
}
.b-sel__btn { color: rgba(31, 31, 31, .45); }
.b-sel__btn.has-value { font-weight: 400; }
.b-sel__btn i { margin-right: 2px; }
.b-q__label { font-size: 15px; margin-bottom: 8px; }
.b-q { margin-bottom: 22px; }
.b-grid2 { gap: 0 20px; }
.b-other { border-width: 1px; border-color: var(--line-light); background: var(--paper); }

/* Proporciones de los campos (referencia Brand Hub) */
.b-q input[type=text], .b-q input[type=email], .b-q input[type=tel], .b-q textarea, .b-sel__btn, .b-other input { min-height: 54px; padding: 15px 16px; border: 1px solid rgba(31, 31, 31, .16); border-radius: 14px; font-size: 15px; }
.b-q textarea { min-height: 116px; }
.b-big textarea { min-height: 180px; }
.b-q input:focus, .b-q textarea:focus, .b-sel__btn:focus-visible, .b-sel.is-open .b-sel__btn, .b-other input:focus { border-color: var(--black); box-shadow: none; }
.b-q ::placeholder, .b-other input::placeholder { color: rgba(31, 31, 31, .32); }
.b-q__label { font-size: 17px; margin-bottom: 12px; }
.b-q__hint { margin-top: -6px; margin-bottom: 12px; }
.b-q { margin-bottom: 36px; }
.b-q__label--need::after { content: none; }
.b-q__label--need::before { content: "* "; color: var(--yellow); }
/* Ritmo: cada pregunta se agrupa con su campo; entre preguntas, aire claro */
.b-q { margin-bottom: 48px; }
.b-q__label { margin-bottom: 10px; }
.b-q__hint { margin-top: -4px; margin-bottom: 12px; }
.b-grid2 { gap: 0 32px; }
.b-stage__lead { margin-bottom: 40px; }
@media (max-width: 720px) { .b-q { margin-bottom: 36px; } }
/* Edad: los campos clásicos no deben tapar la pista del deslizador */
.b-q .b-age__track input[type=range], .b-q .b-age__track input[type=range]:hover, .b-q .b-age__track input[type=range]:focus { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; }
/* Ejemplos de formas y tipos: fondo blanco, sin tocar tamaño ni margen */
.b-tri__ico { background: var(--white); }

/* Recomendación: título corto + «… con tooltip */
.b-reco { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.b-reco b { font: 600 13px/1.4 var(--body); color: var(--ink); }
.b-reco[data-state="warn"] b { color: #9a6a12; }
.b-tipwrap { position: relative; display: inline-block; }
.b-more { padding: 0; border: 0; background: none; font: 500 13px var(--body); color: var(--ink-muted); text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }
.b-more:hover, .b-tipwrap.is-open .b-more { color: var(--ink); }
.b-pop { position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 10px); width: min(320px, 78vw); padding: 14px 34px 14px 16px; border-radius: 14px; background: var(--black); color: rgba(255, 255, 255, .9); font: 400 13.5px/1.5 var(--body); text-align: left; box-shadow: 0 18px 40px -16px rgba(17, 17, 17, .6); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.b-pop::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--black); }
.b-tipwrap:hover .b-pop, .b-tipwrap.is-open .b-pop, .b-more:focus-visible + .b-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.b-pop__x { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; font-size: 17px; line-height: 1; color: rgba(255, 255, 255, .6); cursor: pointer; }
.b-pop__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (hover: none) { .b-tipwrap:hover .b-pop { opacity: 0; visibility: hidden; } .b-tipwrap.is-open .b-pop { opacity: 1; visibility: visible; } }

/* … / … / … : grises; al elegir, colores pastel */
.b-tri__seg span { background: #efefec; color: var(--ink-muted); }
.b-tri__seg input[value="Sí"]:checked + span { background: #d6ecdc; color: #1f5c33; }
.b-tri__seg input[value="Quizás"]:checked + span { background: #f6e6c2; color: #7a5410; }
.b-tri__seg input[value="No"]:checked + span { background: #f4d9d6; color: #8a2f27; }
.b-tri[data-v="Sí"] { border-color: #8cc49c; }
.b-tri[data-v="Quizás"] { border-color: #e2c27a; }
.b-tri[data-v="No"] { border-color: #e3aaa4; }
/* Icono de información (tuyo), gris, junto a «… */
.b-more { display: inline-flex; align-items: center; gap: 5px; }
.b-more__ico { flex: none; width: 15px; height: 15px; background: #3c4449; opacity: .55; -webkit-mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; transition: opacity .15s ease; }
.b-more:hover .b-more__ico, .b-tipwrap.is-open .b-more__ico { opacity: 1; }

/* ===== Recomendación v3: una línea clara + tooltip legible ===== */
.b-reco { position: relative; display: block; margin-top: 10px; }
.b-reco .b-more { display: inline-flex; align-items: flex-start; gap: 8px; padding: 0; text-align: left; font: 600 13.5px/1.35 var(--body); color: var(--ink); text-decoration: none; cursor: help; }
.b-reco .b-more > span { text-decoration: underline dotted rgba(31, 31, 31, .5); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.b-reco .b-more:hover > span, .b-reco.is-open .b-more > span { text-decoration-color: var(--ink); }
.b-more__ico, .b-reco .b-more__ico { width: 20px; height: 20px; margin-top: -1px; opacity: 1; }
.b-reco[data-state="ok"] .b-more__ico { background: #3f9a5c; }
.b-reco[data-state="mid"] .b-more__ico { background: #d39a2a; }
.b-reco[data-state="warn"] .b-more__ico { background: #d9534a; }
.b-reco[data-state="warn"] b, .b-reco b { color: inherit; }
/* Tooltip: encima de la tarjeta, alineado a la izquierda, por encima de la barra lateral */
.brief__card { position: relative; z-index: 6; }
.b-reco .b-pop { left: -6px; right: auto; bottom: calc(100% + 12px); width: min(340px, 80vw); padding: 18px 40px 18px 20px; border-radius: 16px; transform: translateY(6px); font-size: 14px; line-height: 1.55; }
.b-reco:hover .b-pop, .b-reco.is-open .b-pop, .b-reco .b-more:focus-visible + .b-pop { opacity: 1; visibility: visible; transform: none; }
.b-reco .b-pop::after { left: 16px; margin-left: 0; }
.b-pop p { margin: 0 0 10px; color: rgba(255, 255, 255, .78); }
.b-pop p:last-child { margin-bottom: 0; }
.b-pop p b { color: #fff; font-weight: 700; }
.b-pop .b-pop__lead { margin-bottom: 12px; font: 700 15px/1.3 var(--display); color: #fff; }
@media (hover: none) { .b-reco:hover .b-pop { opacity: 0; visibility: hidden; } .b-reco.is-open .b-pop { opacity: 1; visibility: visible; } }

/* … / … / … : gris; negro el elegido. Sin colores */
.b-tri__seg span { background: #efefec; color: var(--ink-muted); }
.b-tri__seg input[value]:checked + span { background: var(--black); color: #fff; }
.b-tri[data-v="Sí"] { border-color: var(--black); }
.b-tri[data-v="Quizás"], .b-tri[data-v="No"] { border-color: var(--line-light); }
.b-reco .b-pop p { margin: 0 0 10px; padding: 0; border-radius: 0; background: none; color: rgba(255, 255, 255, .78); } .b-reco .b-pop p:last-child { margin-bottom: 0; } .b-reco .b-pop .b-pop__lead { margin-bottom: 12px; color: #fff; }
@media (hover: hover) { .b-reco:not(:hover) .b-pop { opacity: 0; visibility: hidden; transform: translateY(6px); } }

/* ===== Recomendación v4: clic → ventana explicativa ===== */
.b-reco .b-more { cursor: pointer; align-items: center; }
.b-reco .b-more > span { text-decoration: none; }
.b-reco .b-more:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.b-more__exp { flex: none; width: 18px; height: 18px; background: var(--ink-muted); -webkit-mask: url("/assets/brief/icon-expand.svg?v=2") center / contain no-repeat; mask: url("/assets/brief/icon-expand.svg?v=2") center / contain no-repeat; transform: rotate(45deg); transition: background .15s ease, transform .2s ease; }
.b-reco .b-more:hover .b-more__exp { background: var(--ink); transform: rotate(45deg) scale(1.15); }
.b-dlg { width: min(860px, calc(100vw - 32px)); max-height: min(90vh, 760px); padding: 0; border: 0; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(17, 17, 17, .6); overflow: auto; }
.b-dlg[open] { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); animation: b-in .3s ease both; }
.b-dlg::backdrop { background: rgba(17, 17, 17, .5); backdrop-filter: blur(3px); }
.b-dlg__x { position: absolute; right: 16px; top: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
.b-dlg__x:hover { background: var(--black); color: #fff; }
.b-dlg__media { display: grid; place-items: center; padding: 32px; background: var(--white); border-right: 1px solid var(--line-light); }
.b-dlg__media img { width: 100%; height: auto; }
.b-dlg__body { display: grid; align-content: start; justify-items: start; gap: 0; padding: 40px 40px 36px; }
.b-dlg__kicker { margin: 0 0 8px; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.b-dlg__title { margin: 0 0 8px; font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--display); }
.b-dlg__desc { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.b-dlg__verdict { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 17px/1.3 var(--display); }
.b-dlg__verdict i { flex: none; width: 22px; height: 22px; -webkit-mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; background: #3c4449; }
.b-dlg__verdict[data-state="ok"] i { background: #3f9a5c; }
.b-dlg__verdict[data-state="mid"] i { background: #d39a2a; }
.b-dlg__verdict[data-state="warn"] i { background: #d9534a; }
.b-dlg__choice { margin: 0 0 24px 32px; font-size: 13.5px; color: var(--ink-muted); }
.b-dlg__facts { display: grid; gap: 18px; width: 100%; margin: 0 0 24px; padding: 22px 0 0; border-top: 1px solid var(--line-light); }
.b-dlg__facts div { display: grid; gap: 4px; }
.b-dlg__facts dt { font: 700 13px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.b-dlg__facts dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.b-dlg__note { margin: 0 0 24px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
@media (max-width: 760px) { .b-dlg[open] { grid-template-columns: minmax(0, 1fr); } .b-dlg__media { padding: 20px 20px 0; border: 0; } .b-dlg__body { padding: 20px 22px 26px; } .b-dlg__choice { margin-left: 0; } }
/* Botones … /… /… siempre en la misma línea dentro de cada fila */
.b-tri { display: flex; flex-direction: column; }
.b-tri > small { flex: 1 1 auto; }
.b-tri .b-reco { min-height: 26px; }
.b-tri .b-reco[hidden] { display: block !important; visibility: hidden; }
.b-tri .b-reco .b-more > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tri .b-reco .b-more { max-width: 100%; }
.b-dlg__media { place-items: start center; align-content: start; padding-top: 40px; }
.b-dlg__media { padding-top: 64px; } @media (max-width: 760px) { .b-dlg__media { padding-top: 20px; } }
.b-dlg__x:focus:not(:focus-visible) { outline: none; }
.b-more__exp, .b-reco .b-more:hover .b-more__exp { transform: none; } .b-reco .b-more:hover .b-more__exp { transform: scale(1.12); }
/* Ventana más ancha y aireada; «… a la derecha */
.b-dlg { width: min(1120px, calc(100vw - 48px)); max-height: 90vh; }
.b-dlg[open] { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.b-dlg__media { padding: 64px 40px 40px; }
.b-dlg__body { padding: 40px 56px 40px 48px; }
.b-dlg__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-dlg__facts dd { font-size: 15px; }
.b-dlg__note { width: 100%; margin-bottom: 20px; }
.b-dlg__body > .btn { justify-self: end; min-width: 180px; justify-content: center; }
@media (max-width: 960px) { .b-dlg__facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .b-dlg__media { padding: 20px 20px 0; } .b-dlg__body { padding: 20px 22px 26px; } .b-dlg__body > .btn { justify-self: stretch; } }
.b-dlg__x:focus, .b-dlg__x:focus-visible { outline: none; box-shadow: none; }

/* ===== Paleta: predeterminados + propios ===== */
.b-pal { display: flex; flex-wrap: wrap; gap: 10px; }
.b-pal__own { display: contents; }
.b-pchip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.b-pchip > input { position: absolute; opacity: 0; pointer-events: none; }
.b-pchip > span { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 8px 8px 14px; border: 1.5px solid rgba(31, 31, 31, .18); border-radius: 16px; background: var(--white); font: 700 15px var(--display); color: var(--ink); user-select: none; transition: border-color .15s ease, background .15s ease, opacity .15s ease; }
.b-pchip:hover > span { border-color: var(--black); }
.b-pchip__box { flex: none; width: 20px; height: 20px; border: 1.5px solid rgba(31, 31, 31, .4); border-radius: 6px; background: var(--white) center / 12px no-repeat; transition: background-color .15s ease, border-color .15s ease; }
.b-pchip > input:checked + span, .b-pchip--own.is-on > span { border-color: var(--black); background: var(--paper); }
.b-pchip > input:checked + span .b-pchip__box, .b-pchip__chk input:checked + .b-pchip__box { border-color: var(--black); background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.b-pchip > input:focus-visible + span { outline: 2px solid rgba(31, 31, 31, .45); outline-offset: 2px; }
/* Muestra de color al final, como un selector */
.b-pchip__sw { position: relative; flex: none; width: 36px; height: 36px; margin-left: 4px; border-radius: 10px; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .14), 0 0 0 3px var(--white), 0 0 0 4px rgba(31, 31, 31, .14); }
.b-pchip > input:checked + span .b-pchip__sw, .b-pchip--own.is-on .b-pchip__sw { box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .14), 0 0 0 3px var(--paper), 0 0 0 4.5px var(--black); }
.b-pchip__sw--rainbow { background: conic-gradient(#e0382d, #fab900, #2e9e5b, #1d9bd1, #7a4fd6, #e0382d); }
.b-pchip__sw--pick { cursor: pointer; }
.b-pchip__sw--pick input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
/* Color propio */
.b-pchip--own { cursor: default; }
.b-pchip--own > span { gap: 10px; padding-right: 6px; }
.b-pchip__chk { position: relative; display: inline-flex; cursor: pointer; }
.b-pchip__chk input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.b-pchip__hex { width: 92px; height: 34px; padding: 0 8px; border: 1px solid rgba(31, 31, 31, .16); border-radius: 8px; background: var(--white); font: 600 14px var(--body); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); outline: 0; }
.b-pchip__hex:focus { border-color: var(--black); }
.b-pchip__hex.is-bad { border-color: var(--yellow); }
.b-pchip__x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 19px; line-height: 1; color: var(--ink-muted); cursor: pointer; }
.b-pchip__x:hover { background: rgba(31, 31, 31, .08); color: var(--ink); }
/* Botón «… */
.b-pchip--add > span { border-style: dashed; color: var(--ink); }
.b-pchip--add input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.b-pchip__plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--black); color: #fff; font: 800 15px/1 var(--display); font-style: normal; }
/* Desactivados al llegar al máximo */
.b-pchip.is-off { cursor: not-allowed; }
.b-pchip.is-off > span { opacity: .4; border-color: rgba(31, 31, 31, .12); }
.b-pchip.is-off:hover > span { border-color: rgba(31, 31, 31, .12); }
/* Aviso */
.b-pal__msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 3px 0 0 #fab900; font-size: 14px; line-height: 1.5; color: var(--ink); }
.b-pal__msg.is-max { box-shadow: inset 3px 0 0 var(--black); }
@media (max-width: 720px) { .b-pchip > span { font-size: 14px; min-height: 48px; } .b-pchip__sw { width: 30px; height: 30px; } }
.brief__xp { grid-template-columns: minmax(0, 1fr); } .brief__xp b { font-size: 30px; } .brief__xp > span:first-of-type { padding: 0; }
/* Avisos con tu icono de información a la izquierda */
.b-pal__msg, .b-tip { position: relative; display: block; padding-left: 46px; }
.b-tip.is-on { display: flex; padding-left: 46px; }
.b-pal__msg::before, .b-tip::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; background: #d39a2a; -webkit-mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; mask: url("/assets/brief/icon-info.svg") center / contain no-repeat; }
.b-pal__msg.is-max::before { background: var(--black); }
.b-pal__msg, .b-tip, .b-pal__msg.is-max { box-shadow: none; border: 1px solid var(--line-light); }
/* «+» en el centro del arcoíris: tapa el punto donde se juntan los colores */
.b-pchip__sw--rainbow { display: grid; place-items: center; border-radius: 50%; }
.b-pchip__sw--rainbow i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(17, 17, 17, .25); font: 800 16px/1 var(--display); font-style: normal; color: var(--black); transition: transform .2s ease; }
.b-pchip--add:hover .b-pchip__sw--rainbow i { transform: scale(1.12); }
.b-pchip--add > span { padding-left: 16px; }
.b-pchip--add > span { color: var(--ink-muted); font-weight: 600; } .b-pchip--add:hover > span { color: var(--ink); }
.b-reco .b-more > span, .b-reco .b-more:hover > span { text-decoration: underline dotted; text-decoration-color: rgba(31, 31, 31, .55); text-decoration-thickness: 1.5px; text-underline-offset: 4px; } .b-reco .b-more:hover > span { text-decoration-color: var(--ink); }

/* Misma curvatura para todo lo que se elige: 14 px, igual que los campos */
.b-chip span, .b-pchip > span, .b-acard > span, .b-font > span, .b-tile span, .b-tri, .b-sel__btn, .b-sel__list, .b-q input[type=text], .b-q input[type=email], .b-q input[type=tel], .b-q textarea, .b-other input { border-radius: 14px; }
.b-chip span { min-height: 48px; padding: 10px 18px 10px 14px; }
.b-tri__seg span { border-radius: 10px; }

/* Introducción: Denis «dice» la frase, como un bocadillo */
.brief-say { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; margin: 6px 0 22px; }
.brief-say__who { margin: 0; }
.brief-say__who img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.brief-say__body { display: grid; gap: 8px; }
.brief-say__quote { position: relative; margin: 0; padding: 14px 18px; border-radius: 4px 18px 18px 18px; background: var(--paper); font: 700 clamp(1rem, 1.3vw, 1.15rem)/1.4 var(--display); color: var(--ink); }
.brief-say__quote::before { content: ""; position: absolute; left: -9px; top: 0; border-top: 12px solid var(--paper); border-left: 10px solid transparent; }
.brief-say__cap { margin: 0 0 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.brief-say__cap a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.brief-say__cap a:hover { color: var(--yellow); }
.brief-say__cap .ico { vertical-align: -2px; }
.brief-intro__title { margin-bottom: 18px; }
.brief[hidden] { display: none !important; }
/* Texto a la izquierda, Wiracocha a la derecha señalando hacia el texto (sin reflejar) */
.brief-intro__box { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.brief-intro__art { order: 2; }
.brief-intro__art img { transform: none; }
.brief-say__quote p { margin: 0; font: 700 clamp(1rem, 1.3vw, 1.12rem)/1.45 var(--display); }
.brief-say__quote p + p { margin-top: 8px; font: 400 15px/1.55 var(--body); color: var(--ink-muted); }
.brief-say { margin-bottom: 26px; }
@media (max-width: 860px) { .brief-intro__box { grid-template-columns: minmax(0, 1fr); } .brief-intro__art { order: -1; } }
/* Más aire dentro; Wiracocha más grande y sentado en la base de la caja */
.brief-intro__box { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 5vw, 72px); padding: clamp(32px, 4vw, 56px) clamp(32px, 4.4vw, 64px) 0; align-items: stretch; overflow: hidden; }
.brief-intro__copy { padding-bottom: clamp(32px, 4vw, 56px); }
.brief-intro__art { align-self: end; display: flex; align-items: flex-end; justify-content: center; max-width: none; }
.brief-intro__art img { width: 100%; max-width: 400px; margin-bottom: -6px; }
.brief-intro__tips { gap: 18px; }
@media (max-width: 860px) { .brief-intro__box { padding: 24px 22px 0; } .brief-intro__art img { max-width: 240px; } .brief-intro__art { order: 3; } }
/* Ajuste: menos aire arriba/abajo; Wiracocha apoyado a la altura del final del texto, más a la derecha */
.brief-intro__box { padding: clamp(28px, 3vw, 40px) clamp(28px, 3.4vw, 48px) clamp(28px, 3vw, 40px) clamp(32px, 4.6vw, 68px); align-items: end; gap: clamp(32px, 6vw, 96px); }
.brief-intro__copy { padding-bottom: 0; }
.brief-intro__art { justify-content: flex-end; }
.brief-intro__art img { margin-bottom: 0; max-width: 380px; }
@media (max-width: 860px) { .brief-intro__box { padding: 24px 22px; } .brief-intro__art { justify-content: center; } }
.brief-intro__tips { margin-bottom: 0; }

/* ===== Barra lateral compacta + compañero ===== */
.brief__bar, body:has(.site-header.is-hidden) .brief__bar { gap: 12px; padding: 16px 14px 14px; }
.brief__xp { display: block; padding: 0 6px; }
.brief__xp-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.brief__xp b, .brief__xp-row b { font: 800 24px/1 var(--display); color: #fff; }
.brief__xp-bar { display: block; margin-top: 10px; height: 5px; }
.brief__steps button { padding: 7px 10px; font-size: 13.5px; }
.brief__side-actions { gap: 8px; padding-top: 12px; }
.brief__side-btn { width: 100%; margin: 0; padding: 8px 12px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; font: 700 12px var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.brief__side-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.brief__bar .brief__link { font-size: 12px; }
/* Compañero: bocadillo del ancho de la barra + Wiracocha debajo */
.brief__mate { display: grid; justify-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.brief__mate-say { position: relative; width: 100%; margin: 0; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink); font: 600 13.5px/1.4 var(--body); }
.brief__mate-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.brief__mate-img { width: 132px; height: auto; transform-origin: 50% 100%; }
.brief__mate.no-char .brief__mate-img { display: none; }
.brief__mate.no-char .brief__mate-say::after { display: none; }
.brief__mate.is-cheer .brief__mate-say { animation: mate-say .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.brief__mate.is-cheer .brief__mate-img { animation: mate-hop .9s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes mate-say { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes mate-hop { 0% { transform: none; } 25% { transform: translateY(-14px) rotate(-4deg) scale(1.04); } 50% { transform: translateY(0) scale(1.06, .95); } 70% { transform: translateY(-6px) rotate(3deg); } 100% { transform: none; } }
@media (max-width: 1000px) { .brief__mate { display: none; } }
@media (prefers-reduced-motion: reduce) { .brief__mate.is-cheer .brief__mate-say, .brief__mate.is-cheer .brief__mate-img { animation: none; } }

/* ===== Compañero v2: fijo abajo, fuera de la caja negra; aparece solo al completar un paso ===== */
.brief__mate { position: fixed; z-index: 30; bottom: 0; left: 0; width: 260px; display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; pointer-events: none; }
.brief__mate-say { width: 100%; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--black); color: #fff; font: 600 13.5px/1.4 var(--body); box-shadow: 0 16px 34px -16px rgba(17, 17, 17, .6); opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .3s ease, transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.brief__mate-say::after { border-top-color: var(--black); }
.brief__mate-img { width: 150px; height: auto; margin-bottom: -6px; transform: translateY(115%); transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.brief__mate.is-in .brief__mate-img { transform: none; }
.brief__mate.is-say .brief__mate-say { opacity: 1; transform: none; }
.brief__mate.is-cheer .brief__mate-say, .brief__mate.is-cheer .brief__mate-img { animation: none; }
.brief__mate.no-char .brief__mate-img { display: none; }
.brief__mate.no-char { bottom: 16px; }
@media (max-width: 1000px) { .brief__mate { display: none; } }
@media (prefers-reduced-motion: reduce) { .brief__mate-say, .brief__mate-img { transition: none; } }

/* Barra de avance: efecto cometa al llenarse (punta que brilla y estela de luz) */
.brief__xp-bar { position: relative; overflow: visible; }
.brief__xp-bar i { position: relative; background: linear-gradient(90deg, #c93a31, var(--yellow) 70%, #ff8a7f); transition: width .9s cubic-bezier(.22, .8, .2, 1); }
.brief__xp-bar i::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .85) 50%, transparent 100%) no-repeat; background-size: 60px 100%; background-position: -60px 0; opacity: 0; }
.brief__xp-bar i::after { content: ""; position: absolute; right: -3px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7), 0 0 14px 5px rgba(241, 79, 68, .75); opacity: 0; transform: scale(.4); }
.brief__xp.is-pop .brief__xp-bar i::before { animation: xp-sweep 1.1s ease-out both; }
.brief__xp.is-pop .brief__xp-bar i::after { animation: xp-comet 1.6s ease-out both; }
@keyframes xp-sweep { 0% { opacity: 1; background-position: -60px 0; } 100% { opacity: 0; background-position: calc(100% + 60px) 0; } }
@keyframes xp-comet { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1.25); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.5); } }
@media (prefers-reduced-motion: reduce) { .brief__xp.is-pop .brief__xp-bar i::before, .brief__xp.is-pop .brief__xp-bar i::after { animation: none; } }
.brief__mate-img { transition-duration: .35s; } .brief__mate-say { transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
/* Introducción: botón y consejos alineados con el bocadillo */
.brief-intro__start, .brief-intro__tips { margin-left: 88px; }
.brief-intro__tips { width: calc(100% - 88px); }
/* Bocadillo de Denis dentro de un paso */
.b-say { max-width: 760px; margin: 14px 0 34px; }
@media (max-width: 720px) { .brief-intro__start, .brief-intro__tips { margin-left: 0; width: 100%; } .brief-say { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; } .brief-say__who img { width: 52px; height: 52px; } }
.brief__bar { top: 100px; }
body:has(.site-header.is-hidden) .brief__bar { top: 16px; }

/* ===== Móvil (va al final para ganar a los ajustes de escritorio) ===== */
@media (max-width: 860px) {
  .brief-intro__box { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 20px; align-items: start; }
  .brief-intro__art { order: -1; justify-content: center; align-self: auto; }
  .brief-intro__art img { max-width: 170px; margin: 0; }
  .brief-intro__start, .brief-intro__tips { margin-left: 0; width: 100%; }
  .brief-intro__title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .brief-say { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .brief-say__who img { width: 52px; height: 52px; }
  .brief-say__cap a { white-space: normal; }
}
@media (max-width: 1000px) {
  .brief { display: block; }
  .brief__bar, body:has(.site-header.is-hidden) .brief__bar { position: sticky; top: 8px; display: grid; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; }
  .brief__xp-row b { font-size: 18px; }
  .brief__steps { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .brief__steps button { flex: none; width: auto; padding: 7px 11px; }
  .brief__steps button::after, .brief__side-actions { display: none; }
  .brief__card { padding: 20px 16px; border-radius: 20px; }
  .b-dlg[open] { grid-template-columns: minmax(0, 1fr); }
  .b-dlg__facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .b-pchip > span { min-height: 46px; font-size: 14px; }
  .b-pchip__hex { width: 84px; }
  .b-q { margin-bottom: 32px; }
  .brief__nav .btn { padding-inline: 18px; }
}
/* Móvil: sin Wiracocha en la introducción y con márgenes compactos */
@media (max-width: 860px) {
  .brief-intro__art { display: none; }
  .brief-intro__box { padding: 20px 16px; border-radius: 22px; }
  .brief-intro__tips { gap: 14px; }
}
@media (max-width: 720px) {
  .brief__card { padding: 18px 14px; }
  .b-stage__lead { margin-bottom: 24px; }
  .b-q { margin-bottom: 28px; }
  .b-acards, .b-acards--sphere { gap: 8px; }
  .b-acard > span { padding: 10px; }
  .b-tri { padding: 10px; }
  .b-dlg__body { padding: 18px 16px 22px; }
  .b-dlg__media { padding: 16px 16px 0; }
}

/* Inkastar: el amarillo no se lee como texto sobre blanco; los acentos de texto del brief van oscuros con subrayado. */
.brief-intro__title em, .b-stage h2 em { font-style: normal; color: inherit; background: linear-gradient(transparent 62%, rgba(var(--accent-rgb), .55) 62%, rgba(var(--accent-rgb), .55) 92%, transparent 92%); }
