/* CalmaLink · Panel para profesores del test vocacional (vp- prefix). Self-contained. */
.vp {
  --vp-navy: #16354B; --vp-deep: #0a1e33; --vp-teal: #167E79; --vp-amber: #f2c35a; --vp-muted: #4b5d72; --vp-line: #dbe5ee; --vp-paper: #f6f9fb;
  color: var(--vp-navy); max-width: 1180px; margin: 0 auto; padding-inline: 20px;
}
.vp, .vp *, .vp *::before, .vp *::after { box-sizing: border-box; }
.vp [hidden] { display: none !important; }
.vp p, .vp figure { margin: 0; }
.vp h1, .vp h2 { margin: 0; text-wrap: balance; }
.vp button, .vp input, .vp select { font: inherit; color: inherit; }
.vp :focus-visible { outline: 3px solid var(--vp-amber); outline-offset: 3px; }
.vp-eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--vp-teal); }
.vp-fine { font-size: .82rem; color: var(--vp-muted); }
.vp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 16px; font-weight: 800; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.vp-amber, .vp a.vp-amber { background: var(--vp-amber); color: var(--vp-navy); }
.vp-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242, 195, 90, .45); }
.vp-line { background: #fff; border-color: var(--vp-line); }
.vp-line:hover { border-color: var(--vp-navy); }
.vp-link { background: none; border: 0; padding: 6px; font-weight: 800; color: var(--vp-teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vp-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* login */
.vp-login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 60px); align-items: center; border-radius: 30px; padding: clamp(24px, 5vw, 56px);
  background: radial-gradient(55% 70% at 95% 0%, #fff1cf 0%, rgba(255, 241, 207, 0) 60%), linear-gradient(140deg, #f3faf6, #eef4fb); }
.vp-login h1 { margin-top: 10px; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.vp-login h1 em { font-style: normal; color: var(--vp-teal); }
.vp-lead { margin-top: 14px !important; font-size: 1.08rem; color: var(--vp-muted); max-width: 56ch; }
.vp-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.vp-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--vp-muted); }
.vp-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #102F48; color: #fff; font-weight: 800; }
.vp-steps b { color: var(--vp-navy); }
.vp-card { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 24px 60px rgba(11, 23, 38, .13); display: grid; gap: 14px; }
.vp-cardtitle { font-size: 1.2rem; }
.vp-card label { display: grid; gap: 6px; font-size: .86rem; font-weight: 800; }
.vp-card input { width: 100%; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--vp-line); font-weight: 600; background: #fff; }
.vp-card input[name="code"] { text-transform: uppercase; }
.vp-err { border-radius: 10px; padding: 10px 12px; background: #fdecea; color: #8a2318; font-weight: 700; font-size: .9rem; }
.vp-small { justify-self: center; font-weight: 700; font-size: .9rem; color: var(--vp-teal); }

/* dashboard */
.vp-dash { animation: vp-in .5s ease both; }
@keyframes vp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vp-dashhead { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--vp-line); }
.vp-dashhead h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.vp-kpis { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vp-kpi { border-radius: 20px; padding: 18px 20px; background: var(--vp-paper); border: 1px solid var(--vp-line); display: grid; gap: 4px; }
.vp-kpi small { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-muted); }
.vp-kpi b { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.vp-grid2 { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.vp-panel { margin-top: 14px; border-radius: 24px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--vp-line); min-width: 0; }
.vp-grid2 .vp-panel { margin-top: 0; }
.vp-panel figcaption { display: grid; gap: 2px; margin-bottom: 16px; }
.vp-panel figcaption b { font-size: 1.12rem; }
.vp-panel figcaption span { font-size: .88rem; color: var(--vp-muted); }
.vp-radar { width: 100%; max-width: 420px; display: block; margin: 0 auto; overflow: visible; }
.vp-radar .ring { fill: none; stroke: #e1e9f1; }
.vp-radar .ring.out { stroke: #c9d6e2; }
.vp-radar .axis { stroke: #e1e9f1; }
.vp-radar .shape { fill: rgba(29, 138, 108, .16); stroke: var(--vp-teal); stroke-width: 2.5; stroke-linejoin: round; }
.vp-radar .dot { stroke: #fff; stroke-width: 2.5; }
.vp-radar .lbl { font: 800 15px "Manrope", system-ui, sans-serif; fill: var(--vp-navy); }
.vp-radar .lblv { font: 700 13px "Manrope", system-ui, sans-serif; fill: var(--vp-muted); font-variant-numeric: tabular-nums; }
.vp-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vp-hbars li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.vp-hbars .nm { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; min-width: 0; }
.vp-hbars .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-hbars .lt { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.vp-hbars .tr { height: 14px; border-radius: 4px; background: #edf2f6; overflow: hidden; }
.vp-hbars .tr i { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--vp-teal); transition: width 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.vp-hbars .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .92rem; }
.vp-hbars .v small { color: var(--vp-muted); font-weight: 700; }
.vp-areabars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.vp-areabars li { grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 70px; }
.vp-tablehead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.vp-tablehead > b { font-size: 1.12rem; }
.vp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-filters input, .vp-filters select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--vp-line); background: #fff; font-weight: 600; min-width: 0; max-width: 100%; }
.vp-tablebox { margin-top: 10px; overflow-x: auto; border: 1px solid var(--vp-line); border-radius: 16px; }
.vp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.vp-table th { text-align: left; background: var(--vp-paper); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--vp-muted); padding: 0; }
.vp-table th > button, .vp-table th > span { display: block; width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; font-weight: 800; }
.vp-table th > button { cursor: pointer; }
.vp-table th > button::after { content: " ↕"; opacity: .5; }
.vp-table td { padding: 12px 14px; border-top: 1px solid var(--vp-line); vertical-align: middle; }
.vp-table tbody tr.row { cursor: pointer; transition: background .2s; }
.vp-table tbody tr.row:hover, .vp-table tbody tr.row.open { background: #f3faf6; }
.vp-table .who { display: block; font-size: .78rem; color: var(--vp-muted); font-weight: 700; }
.vp-code { display: inline-flex; gap: 4px; }
.vp-code b { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font-size: .85rem; }
.vp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-tags span { padding: 4px 10px; border-radius: 99px; background: var(--vp-paper); border: 1px solid var(--vp-line); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.vp-table td.date { font-variant-numeric: tabular-nums; color: var(--vp-muted); white-space: nowrap; }
.vp-detail td { background: #fbfdfc; padding: 16px 18px; }
.vp-mini { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.vp-mini div { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.vp-mini .tr { height: 70px; border-radius: 8px; background: #edf2f6; display: flex; align-items: flex-end; overflow: hidden; }
.vp-mini .tr i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.vp-mini b { font-variant-numeric: tabular-nums; }
.vp-dash > .vp-fine:last-child { margin-top: 14px; }

@media (max-width: 900px) {
  .vp-login, .vp-grid2 { grid-template-columns: 1fr; }
  .vp-areabars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vp { padding-inline: 16px; }
  .vp-kpis { grid-template-columns: 1fr; }
  .vp-hbars li, .vp-areabars li { grid-template-columns: minmax(0, 1fr) 62px; gap: 4px 10px; }
  .vp-hbars .nm { grid-column: 1 / -1; }
  .vp-hbars .nm span:last-child { white-space: normal; }
  .vp-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .vp *, .vp-dash { animation: none !important; transition: none !important; } }
@media print {
  html.vp-printing body * { visibility: hidden !important; }
  html.vp-printing .vp-dash, html.vp-printing .vp-dash * { visibility: visible !important; }
  html.vp-printing .vp-dash { position: absolute; left: 0; top: 0; width: 100%; }
  .vp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vp-btns, .vp-filters,   .vp-panel, .vp-table tr { break-inside: avoid; }
  .vp-tablebox { overflow: visible; }
}
