/* finanzas1-hub.css (06-11-2026): el menú de Modo Examen y de la Guía como el hub de Grado.
   "Tus áreas": tarjetas en dos columnas con ícono, título, cuánto va y barra de avance (clases a.c / .v2av2 del Inicio de Grado).
   Al tocar una tarjeta se abre debajo la lista de sus temas. Paleta morada de Grado (#6d3cf5, noche #151b3f). */
html.v2r #v2temas.v2hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
html.v2r #v2temas.v2hub > .v2sec2{grid-column:1/-1;order:0;margin:4px 2px 0}
html.v2r #v2temas.v2hub > .v2sec2 b{font-size:1rem;color:#17213b}
html.v2r #v2temas.v2hub .v2uni{display:contents}
html.v2r #v2temas.v2hub .v2uni > .v2lista{display:none}
html.v2r #v2temas.v2hub .v2uni.abierta > .v2lista{display:block;grid-column:1/-1;order:30;margin:2px 0 6px;padding:4px 0 0}

/* la tarjeta */
html.v2r #v2temas.v2hub button.v2uni-h{order:9;width:100%;margin:0;min-height:118px;padding:16px;border:1px solid #e2e6ef;border-radius:18px;background:#fff;
  box-shadow:0 1px 2px rgba(20,26,58,.05),0 6px 18px rgba(20,26,58,.06);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;
  text-align:left;position:relative;transition:transform .15s,box-shadow .15s,border-color .15s}
html.v2r #v2temas.v2hub button.v2uni-h:hover{background:#fff;transform:translateY(-1px);box-shadow:0 2px 4px rgba(20,26,58,.06),0 10px 24px rgba(109,60,245,.12)}
html.v2r #v2temas.v2hub .v2uni.abierta > button.v2uni-h{border-color:#6d3cf5;box-shadow:0 0 0 2px #d9ccfd,0 10px 24px rgba(109,60,245,.14)}
html.v2r #v2temas.v2hub .v2ti{width:38px;height:38px;border-radius:11px;background:#efe9ff;color:#6d3cf5;display:grid;place-items:center;flex:none}
html.v2r #v2temas.v2hub .v2ti svg{width:20px;height:20px}
html.v2r #v2temas.v2hub .v2uni-h b{font-size:.98rem;line-height:1.25;color:#17213b;margin-top:2px}
html.v2r #v2temas.v2hub .v2uni-h > span{font-size:.78rem;color:#6b7390;font-weight:700;display:flex;align-items:center;gap:4px;margin-top:auto}
html.v2r #v2temas.v2hub .v2uni-h > span svg{width:16px;height:16px;color:#6d3cf5;position:absolute;right:14px;top:16px;transition:transform .2s}
html.v2r #v2temas.v2hub .v2uni.abierta .v2uni-h > span svg{transform:rotate(180deg)}
html.v2r #v2temas.v2hub .v2uni-bar{display:block;width:100%;height:5px;border-radius:5px;background:#ece8fb;overflow:hidden;margin-top:6px}
html.v2r #v2temas.v2hub .v2uni-bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#8b5cf6,#6d3cf5)}


/* orden de las tarjetas: primero las cuatro áreas de materia, después lo demás (la lista abierta va siempre al final) */
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Riesgo, portafolios y CAPM"] > .v2uni-h{order:1}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Renta fija"] > .v2uni-h{order:2}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Valor en riesgo"] > .v2uni-h{order:3}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Derivados"] > .v2uni-h{order:4}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Practicar"] > .v2uni-h,html.v2r #v2temas.v2hub .v2uni[data-v2uni="Ejercicios"] > .v2uni-h{order:5}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Reelpaso"] > .v2uni-h{order:6}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Qué entra"] > .v2uni-h{order:7}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Repaso final"] > .v2uni-h{order:8}
html.v2r #v2temas.v2hub .v2uni[data-v2uni="Tus apuntes"] > .v2uni-h{order:10}

/* las unidades sin avance (Reelpaso, apuntes) no llevan barra: la tarjeta queda igual de alta */
html.v2r #v2temas.v2hub .v2uni-h:not(:has(.v2uni-bar)){padding-bottom:16px}

@media (max-width:420px){
  html.v2r #v2temas.v2hub{gap:10px}
  html.v2r #v2temas.v2hub button.v2uni-h{min-height:108px;padding:14px}
  html.v2r #v2temas.v2hub .v2uni-h b{font-size:.92rem}
}
@media (min-width:900px){
  html.v2r #v2temas.v2hub{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------------------------------------------------------------------------------------------
   La Guía con las pestañas de dos filas de Grado (07-11), con las MISMAS medidas de las áreas de Grado
   (valores leídos de administracion.html): banda azul noche a todo el ancho, fila 1 = áreas con ícono y número
   de temas, fila 2 = los temas del área en un riel; el activo en morado (#8b5cff a #6d3cf5). */
html.v2r body.finanzas1-tabs > header nav{display:block!important;position:static!important;background:rgba(17,29,57,.88)!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;margin:16px 0 0!important;padding:0!important;max-width:none!important;width:auto}
html.v2r body.finanzas1-tabs > header{padding-bottom:0!important}
html.v2r body.finanzas1-tabs .v2ah-f{display:none}
html.v2r body.finanzas1-tabs .v2ah{padding-bottom:4px}
html.v2r body.finanzas1-tabs #v2temas{display:none!important}
html.v2r body.finanzas1-tabs .v2fh [data-v2atras],html.v2r body.finanzas1-tabs .v2fh .v2fh-u{display:none!important}
html.v2r body.finanzas1-tabs > header nav #tabs{display:block!important;width:auto!important;max-width:1000px!important;margin:0 auto!important;padding:8px 12px!important;background:none!important;border:0!important;overflow:visible!important}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-row{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-row::-webkit-scrollbar,html.v2r body.finanzas1-tabs #tabs.qg-on .qg-strip::-webkit-scrollbar{display:none;height:0}
html.v2r body.finanzas1-tabs #tabs.qg-on button{flex:0 0 auto;display:inline-flex;align-items:center;white-space:nowrap;border:0!important;border-radius:10px!important;padding:9px 14px!important;min-height:0!important;
  background:transparent!important;color:#dcd6f5!important;font-weight:600!important;font-size:.86rem!important;box-shadow:none!important;transition:.15s}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-strip button{font-size:.82rem!important}
html.v2r body.finanzas1-tabs #tabs.qg-on button:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
html.v2r body.finanzas1-tabs #tabs.qg-on button.active,html.v2r body.finanzas1-tabs #tabs.qg-on button.on{background:linear-gradient(135deg,#8b5cff,#6d3cf5)!important;color:#fff!important;box-shadow:0 6px 16px -8px rgba(127,85,255,.9)!important}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-ic{width:1.1em;height:1.1em;margin-right:6px;vertical-align:-.17em;flex:none}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-n{display:inline-block;min-width:16px;text-align:center;font-size:.66rem;font-weight:800;border-radius:999px;padding:0 5px;margin-left:5px;border:1px solid currentColor;opacity:.55;vertical-align:1px}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-sep{display:block;flex:0 0 auto;width:1px;align-self:stretch;margin:2px 5px;background:currentColor;opacity:.22}
html.v2r body.finanzas1-tabs #tabs.qg-on .qg-strip{display:flex;gap:4px;margin-top:7px;padding:5px 6px;border-radius:12px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.13)!important}
@media (max-width:520px){
  html.v2r body.finanzas1-tabs #tabs.qg-on .qg-n{display:none}
  html.v2r body.finanzas1-tabs #tabs.qg-on button{padding:11px 14px!important;min-height:44px!important}
}
