/* ==========================================================================
   BRÚJULA VOCACIONAL — el veredicto
   La respuesta corta tiene que verse como la respuesta, no como una tarjeta
   más del informe. De ahí el peso visual y el borde dorado.
   ========================================================================== */

.veredicto-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 22px 26px 18px;
  background: linear-gradient(to bottom,
              color-mix(in srgb, var(--gold) 7%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--line);
}
.vc-rank {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--gold); font-weight: 660;
}
.vc-head h3 { font-size: 1.7rem; letter-spacing: -.02em; }
.vc-head h3 a { color: var(--ink); text-decoration: none; }
.vc-head h3 a:hover { color: var(--accent); }
.vc-score { text-align: right; flex: none; }
.vc-score .v {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold);
}
.vc-score .l {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-top: 3px;
}

.vc-body { padding: 20px 26px 6px; }
.vc-body p:last-child { margin-bottom: 1em; }

.vc-esp {
  padding: 20px 26px 24px; border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.vc-esp h4 { margin-bottom: .2em; }

/* Cada especialidad: barra vertical de encaje + nombre + a qué se parece */
.esp-row {
  display: grid; grid-template-columns: 6px 1fr auto;
  gap: 16px; align-items: stretch;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.esp-row:last-child { border-bottom: none; }
.esp-bar {
  width: 6px; border-radius: 4px; background: var(--line);
  display: flex; align-items: flex-end; overflow: hidden; min-height: 46px;
}
.esp-bar i { display: block; width: 100%; background: var(--muted); border-radius: 4px; }
.esp-row.mejor .esp-bar i { background: var(--gold); }
.esp-nombre { font-weight: 620; font-size: 1rem; display: flex; align-items: center; flex-wrap: wrap; }
.esp-desc { color: var(--ink-2); font-size: .91rem; margin-top: 2px; line-height: 1.45; }
.esp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.esp-tags span {
  font-size: .72rem; padding: 2px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.esp-num {
  font-family: var(--serif); font-size: 1.25rem; color: var(--muted);
  align-self: center; min-width: 30px; text-align: right;
}
.esp-row.mejor .esp-num { color: var(--gold); }

.alt-card h4 a { color: var(--ink); text-decoration: none; }
.alt-card h4 a:hover { color: var(--accent); }
.alt-esp {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: .88rem; line-height: 1.5;
}
.alt-esp b { color: var(--ink); }

/* Ficha de carrera: la misma lista, en formato compacto */
.esp-lista .esp-row { grid-template-columns: 6px 1fr auto; }
.esp-lista .esp-row.mejor .esp-bar i { background: var(--accent); }
.esp-lista .esp-row.mejor .esp-num { color: var(--accent); }

/* ----------------------------------------------- elección forzada de valores -- */

.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vt-card {
  position: relative; text-align: left; padding: 16px 16px 14px 46px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  cursor: pointer; font-family: var(--sans); color: var(--ink); transition: all .13s ease;
}
.vt-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.vt-card.on { border-color: var(--gold); background: var(--gold-soft); }
.vt-num {
  position: absolute; left: 13px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: transparent;
}
.vt-card.on .vt-num { background: var(--gold); border-color: var(--gold); color: #fff; }
.vt-n { display: block; font-weight: 620; font-size: .97rem; margin-bottom: 3px; }
.vt-d { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* -------------------------------------------------------- desempate --------- */

.dsp {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px dashed var(--gold); background: var(--gold-soft);
}
.dsp-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.dsp-head .btn { flex: none; }
.dsp .q.bipolar { padding: 16px 0; }
.dsp-done { border-style: solid; }

.plegable > summary { list-style: none; }
.plegable > summary::-webkit-details-marker { display: none; }
.plegable[open] > summary { display: none !important; }

@media (max-width: 720px) {
  .vc-head { flex-direction: column; gap: 10px; }
  .vc-score { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .vc-score .v { font-size: 2rem; }
  .vc-head h3 { font-size: 1.4rem; }
  .esp-row { grid-template-columns: 5px 1fr; }
  .esp-num { grid-column: 2; text-align: left; font-size: 1rem; }
}
