/* CTMC · Brújula minera (vista previa). Usa las variables del sitio, rediseño La veta. */
.brj-sec { padding: clamp(40px, 6vw, 80px) 0; background: var(--bg-alt); }
.brj-box { max-width: 920px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.brj-quiz, .brj-res { background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.brj-top { text-align: center; margin-bottom: 1.4rem; }
.brj-top h2 { margin: .3rem 0 .5rem; }
.brj-top p { max-width: 58ch; margin: 0 auto; text-align: center; }
.brj-bar { height: 6px; border-radius: 6px; background: #F1E9DB; overflow: hidden; }
.brj-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #F9A21B, #C9500F); transition: width .35s ease; }
.brj-step { margin: .9rem 0 .2rem; font: 700 .85rem var(--f-display); color: #AD450C; text-align: center; }
.brj-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.brj-t { font: 700 clamp(1.25rem, 2.6vw, 1.6rem)/1.2 var(--f-display); color: #0B2245; text-align: center; width: 100%; margin: .2rem 0 .4rem; }
.brj-h { text-align: center; color: var(--fg-soft); margin: 0 auto 1.1rem; max-width: 56ch; }
.brj-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brj-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brj-opt { text-align: left; font: 500 .95rem/1.3 var(--f-body, inherit); color: #0B2245; background: #FAF6EF; border: 2px solid transparent;
  border-radius: 18px; padding: 13px 15px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.brj-opt:hover { border-color: #F9A21B; }
.brj-opt[aria-pressed="true"] { background: #FFF1DE; border-color: #C9500F; font-weight: 700; }
.brj-count { text-align: center; font-size: .85rem; color: var(--fg-soft); margin: .8rem 0 0; }
.brj-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 1.4rem; }
.brj-nav [data-next] { margin-left: auto; }
.brj-priv { text-align: center; margin-top: 1rem; }

.brj-res:focus { outline: none; }
.brj-res-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.brj-res-hd h2 { margin: .2rem 0 0; }
.brj-prof { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: #FAF6EF; border-radius: 26px; padding: 18px 24px; margin-bottom: 22px; }
.brj-prof p { text-align: justify; hyphens: none; }
.brj-radar { width: 100%; height: auto; overflow: visible; }
.brj-grid { fill: none; stroke: #E4D8C4; stroke-width: 1; }
.brj-axis { stroke: #E4D8C4; stroke-width: 1; }
.brj-area { fill: rgba(201, 80, 15, .22); stroke: #C9500F; stroke-width: 2.5; stroke-linejoin: round; }
.brj-dot { fill: #C9500F; }
.brj-lab { font: 600 10.5px var(--f-display); fill: #0B2245; }

.brj-card { background: var(--surface); border: 2px solid #F1E9DB; border-radius: 28px; padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; }
.brj-card.main { border-color: #F9A21B; box-shadow: var(--shadow); }
.brj-card-hd { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.brj-card h3 { font: 800 clamp(1.3rem, 2.8vw, 1.75rem)/1.15 var(--f-display); color: #0B2245; margin: .25rem 0 .4rem; }
.brj-d, .brj-why, .brj-fx-tx, .brj-small, .brj-intl p { text-align: justify; hyphens: none; }
.brj-d { color: var(--fg-soft); margin: 0; }
.brj-ring { width: 84px; flex: 0 0 84px; }
.brj-ring-bg { fill: none; stroke: #F1E9DB; stroke-width: 8; }
.brj-ring-fg { fill: none; stroke: #C9500F; stroke-width: 8; stroke-linecap: round; }
.brj-ring-tx { font: 800 17px var(--f-display); fill: #0B2245; }
.brj-why { font-size: 1.02rem; color: #0B2245; margin: 1rem 0 .5rem; }
.brj-status { display: inline-block; font: 700 .86rem var(--f-display); color: #AD450C; background: #FFF1DE; border-radius: 999px; padding: 6px 14px; margin: 0 0 .6rem; }
.brj-status.ok { color: #1F6B3A; background: #E5F3E8; }
.brj-card h4 { font: 700 .98rem var(--f-display); color: #0B2245; margin: 1.3rem 0 .6rem; }
.brj-veta { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.brj-vs { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 9px 4px; border-radius: 14px; background: #FAF6EF; color: #9A8E7C; }
.brj-vs b { font: 800 .9rem var(--f-display); }
.brj-vs small { font-size: .68rem; line-height: 1.15; }
.brj-vs.on { background: #0B2245; color: #fff; }
.brj-vs.on b { color: #F9A21B; }
.brj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .7rem; }
.brj-tab { font: 600 .85rem var(--f-display); border: 2px solid #F1E9DB; background: #fff; color: #0B2245; border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.brj-tab[aria-selected="true"] { background: #C9500F; border-color: #C9500F; color: #fff; }
.brj-fx-tx { background: #FAF6EF; border-radius: 18px; padding: 14px 18px; margin: 0; color: #0B2245; }
.brj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brj-chip { font-size: .86rem; line-height: 1.3; border-radius: 14px; padding: 7px 12px; }
.brj-chip.ok { background: #E5F3E8; color: #1F6B3A; }
.brj-chip.add { background: #FFF1DE; color: #8A3A0A; }
.brj-chip.intl { background: #E8EDF6; color: #0B2245; }
.brj-ruta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.brj-ruta li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #FAF6EF; border-radius: 18px; padding: 14px 10px; font-size: .86rem; color: #0B2245; }
.brj-ruta li.here { background: #0B2245; color: #fff; }
.brj-ruta li.past { opacity: .7; }
.brj-rn { font: 800 1.15rem var(--f-display); color: #C9500F; }
.brj-ruta li.here .brj-rn { color: #F9A21B; }
.brj-ruta em { font-style: normal; font: 700 .72rem var(--f-display); background: #F9A21B; color: #0B2245; border-radius: 999px; padding: 2px 9px; }
.brj-intl { margin-top: .4rem; }
.brj-intl p { margin: 0 0 .6rem; }
.brj-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.4rem; }
.brj-new { font: 700 .85rem var(--f-display); color: #AD450C; background: #FFF1DE; border-radius: 999px; padding: 8px 14px; }
.brj-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.brj-alts .brj-card { margin-bottom: 0; }
.brj-alts .brj-ruta, .brj-alts .brj-two { grid-template-columns: 1fr 1fr; }
.brj-more { display: block; margin: .8rem auto 0; font: 700 .9rem var(--f-display); color: #C9500F; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.brj-reg { text-align: center; background: #0B2245; color: #fff; border-radius: 28px; padding: 28px; margin-top: 22px; }
.brj-reg h3 { color: #fff; margin: 0 0 .5rem; }
.brj-reg p { max-width: 60ch; margin: 0 auto 1rem; text-align: center; color: #DCE3EE; }

.brj-rev { padding: clamp(40px, 6vw, 72px) 0; }
.brj-rev .brj-box > p { text-align: justify; hyphens: none; }
.brj-rev-tag { display: block; width: max-content; margin: 0 auto .6rem; font: 700 .8rem var(--f-display); color: #AD450C; background: #FFF1DE; border-radius: 999px; padding: 6px 14px; }
.brj-rev h2 { text-align: center; }
.brj-rev h3 { margin: 1.8rem 0 .8rem; text-align: center; }
.brj-rev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brj-rev-it { background: var(--surface); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); }
.brj-rev-it strong { display: block; font: 700 1rem var(--f-display); color: #0B2245; }
.brj-rev-it span { display: block; font: 600 .78rem var(--f-display); color: #AD450C; margin: .15rem 0 .35rem; }
.brj-rev-it p { margin: 0; font-size: .9rem; color: var(--fg-soft); }

@media (max-width: 760px) {
  .brj-opts, .brj-many { grid-template-columns: 1fr; }
  .brj-prof { grid-template-columns: 1fr; padding: 14px; }
  .brj-prof p, .brj-d, .brj-why, .brj-fx-tx, .brj-small, .brj-intl p, .brj-rev .brj-box > p { text-align: left; }
  .brj-veta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brj-ruta, .brj-alts .brj-ruta { grid-template-columns: 1fr 1fr; }
  .brj-two, .brj-alts, .brj-alts .brj-two, .brj-rev-grid { grid-template-columns: 1fr; }
  .brj-ring { width: 68px; flex-basis: 68px; }
}

/* Botón Siguiente siempre a la vista en el celular */
@media (max-width: 760px) {
  .brj-nav { position: sticky; bottom: 12px; z-index: 5; background: var(--surface); padding: 10px; margin: 1.2rem -10px 0; border-radius: 20px; box-shadow: 0 -6px 18px rgba(11, 34, 69, .12); }
}

/* Etapas y equipos que conectan con el resultado */
.ca-stage.brj-hit { outline: 3px solid #2E8B57; outline-offset: 2px; }
.brj-link { display: block; margin-top: .55rem; font: 700 .8rem/1.3 var(--f-display); color: #1F6B3A; background: #E5F3E8; border-radius: 12px; padding: 6px 10px; }
.brj-up { text-align: center; margin-top: 1.2rem; }

/* Tarjeta del resultado en el celular: el porcentaje va en la esquina y el texto usa todo el ancho */
@media (max-width: 760px) {
  .brj-card-hd { display: block; position: relative; }
  .brj-card-hd .eyebrow, .brj-card-hd h3 { padding-right: 70px; }
  .brj-card-hd .brj-ring { position: absolute; top: 0; right: 0; width: 62px; }
}
