.ux-pagina { margin: 0; min-height: 100vh; background: #eef2f6; color: #06263D; font: 1rem/1.55 system-ui, sans-serif; padding: clamp(16px, 6vw, 72px); box-sizing: border-box; }
.ux-tarjeta, .ux-dialog { background: #fff; color: #06263D; border: 1px solid #cbd5e1; border-radius: 18px; padding: clamp(20px, 4vw, 44px); box-sizing: border-box; }
.ux-tarjeta { max-width: 44rem; margin: auto; }
.ux-tarjeta h1, .ux-dialog h2 { line-height: 1.15; color: #10253d; }
.ux-tarjeta form label { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0; }
.ux-etiqueta { color: #4f17a8; font-weight: 700; }
.ux-dialog { width: min(32rem, calc(100% - 28px)); }
.ux-dialog::backdrop { background: #10253db5; }
.ux-tarjeta .primary, .ux-dialog .primary { padding: .7rem 1.1rem; border: 0; border-radius: 8px; background: #4f17a8; color: #fff; font: inherit; cursor: pointer; }
.ux-tarjeta :focus-visible, .ux-dialog :focus-visible, .pmp-opinion :focus-visible { outline: 3px solid #4f17a8; outline-offset: 3px; }
.pmp-reporte { position: relative; }
body.reporte-oculto .pmp-reporte > * { visibility: hidden; }
#velo-reporte { position: fixed; inset: 0; z-index: 9999; background: #10253d; color: white; display: grid; place-items: center; text-align: center; padding: 24px; }
#velo-reporte[hidden] { display: none; }
body.reporte-oculto .pmp-reporte::after { visibility: hidden; }
.pmp-reporte .dominios-reporte { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 12px; }
.pmp-reporte .dominio-reporte { background: #eef2f8; color: #06263D; border-radius: 12px; padding: 16px; }
.dominio-reporte strong { display: block; font-size: 1.75rem; }



.pmp-opinion fieldset { border: 0; padding: 0; margin: 10px 0; }
.pmp-opinion .estrellas { display: flex; flex-wrap: wrap; gap: 6px; }
.pmp-opinion label.estrella { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 3px; }
.pmp-opinion .estrella span { font-size: 1.35rem; color: #4f17a8; }
.pmp-opinion textarea { width: 100%; min-height: 86px; display: block; margin: 6px 0 12px; box-sizing: border-box; font: inherit; }
@media print {
  #velo-reporte, .pmp-opinion { display: none !important; }
  body.reporte-oculto .pmp-reporte > * { visibility: visible; }
  .pmp-reporte::after { display: none; }
  .dominio-reporte { break-inside: avoid; }
}

/* Reporte por dominio y tarea: paleta de la marca personal (tinta, azul grisáceo, naranja) */
.pmp-reporte { --n-alto: #06263D; --n-medio: #5B7A93; --n-bajo: #F45A22; --n-poco: #B9C5CF; --n-bajo-txt: #C2410C; }
.pmp-reporte .nivel-alto { color: var(--n-alto); font-weight: 700; }
.pmp-reporte .nivel-medio { color: #3E5A70; font-weight: 700; }
.pmp-reporte .nivel-bajo { color: var(--n-bajo-txt); font-weight: 700; }
.pmp-reporte .proporcion { margin: 4px 0 14px; }
.pmp-reporte .proporcion-tit { margin: 0 0 8px; font-size: .85rem; color: #41596B; font-weight: 600; }
.pmp-reporte .franja { display: flex; gap: 3px; height: 54px; border-radius: 6px; overflow: hidden; }
.pmp-reporte .franja-seg { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 96px; color: #fff; }
.pmp-reporte .franja-seg b { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.pmp-reporte .franja-seg span { font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.pmp-reporte .fr-alto { background: var(--n-alto); }
.pmp-reporte .fr-medio { background: var(--n-medio); }
.pmp-reporte .fr-bajo { background: var(--n-bajo); }
.pmp-reporte .franja-ley { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: #2d4257; }
.pmp-reporte .franja-ley li { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pmp-reporte .dom-bloque { border: 1px solid #d3dce5; border-left: 5px solid #06263D; border-radius: 4px; padding: 16px 18px 6px; margin: 14px 0; background: #fff; }
.pmp-reporte .dom-bloque .dom-head { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 14px; padding: 0 0 12px; margin: 0 0 2px; border: 0; border-bottom: 2px solid #F45A22; max-width: none; }
.pmp-reporte .dom-bloque .dom-head strong { font-size: 1.7rem; line-height: 1; color: #06263D; }
.pmp-reporte .dom-bloque .dom-head small { color: #41596B; }
.pmp-reporte .dom-head h4.dom-nombre { margin: 0; font-size: 1rem; line-height: 1; }
.pmp-reporte .dom-head .tag { font-size: .95rem; padding: 6px 12px; font-weight: 700; }
.pmp-reporte .tareas-lista { list-style: none; margin: 0; padding: 0; }
.pmp-reporte .tarea-fila { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(130px,1fr) 3rem 7.4rem; gap: 6px 14px; align-items: center; padding: 11px 0; border-top: 1px solid #e3e9ef; }
.pmp-reporte .tarea-nombre { display: block; font-weight: 600; color: #06263D; }
.pmp-reporte .tarea-txt small { display: block; color: #41596B; font-size: .78rem; }
.pmp-reporte .escala { padding: 0 8px; }
.pmp-reporte .pista { position: relative; display: flex; height: 14px; }
.pmp-reporte .zona { display: block; height: 100%; }
.pmp-reporte .z1 { width: 60%; background: #fde9e0; }
.pmp-reporte .z2 { width: 20%; background: #e6ecf1; border-left: 1px solid #fff; }
.pmp-reporte .z3 { width: 20%; background: #cfd9e2; border-left: 1px solid #fff; }
.pmp-reporte .pt { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #06263D; }
.pmp-reporte .pt-alto { background: var(--n-alto); }
.pmp-reporte .pt-medio { background: var(--n-medio); }
.pmp-reporte .pt-bajo { background: var(--n-bajo); }
.pmp-reporte .pt-poco { background: #fff; box-shadow: 0 0 0 1px #8497a8; border-color: #fff; }
.pmp-reporte .tarea-pct { font-weight: 700; text-align: right; color: #06263D; }
.pmp-reporte .nv { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.pmp-reporte .nv::before { content: ''; width: 10px; height: 10px; border-radius: 2px; flex: none; background: var(--n-poco); }
.pmp-reporte .nv-alto { color: var(--n-alto); }
.pmp-reporte .nv-alto::before { background: var(--n-alto); }
.pmp-reporte .nv-medio { color: #3E5A70; }
.pmp-reporte .nv-medio::before { background: var(--n-medio); }
.pmp-reporte .nv-bajo { color: var(--n-bajo-txt); }
.pmp-reporte .nv-bajo::before { background: var(--n-bajo); }
.pmp-reporte .nv-poco { color: #41596B; }
.pmp-reporte .nv-poco::before { background: #fff; box-shadow: inset 0 0 0 1px #8497a8; }
.pmp-reporte .tag.P { background: #ece6f7; color: #4F17A8; }
.pmp-reporte .tag.R { background: #dde6ee; color: #06263D; }
.pmp-reporte .tag.N { background: #e6ecf1; color: #41596B; box-shadow: inset 0 0 0 1px #b9c5cf; }
@media (max-width: 650px) {
  .pmp-reporte .franja { height: auto; flex-direction: column; }
  .pmp-reporte .franja-seg { flex: none !important; padding: 10px 12px; flex-direction: row; justify-content: space-between; align-items: center; }
  .pmp-reporte .tarea-fila { grid-template-columns: minmax(0,1fr) auto; }
  .pmp-reporte .escala { grid-column: 1 / -1; order: 3; }
  .pmp-reporte .tarea-pct { text-align: left; order: 2; }
  .pmp-reporte .nv { order: 4; }
}
@media print {
  .pmp-reporte .tarea-fila { break-inside: avoid; }
  .pmp-reporte .dom-head { break-after: avoid; }
  .pmp-reporte .franja-seg, .pmp-reporte .zona, .pmp-reporte .pt, .pmp-reporte .nv::before, .pmp-reporte .dom-head .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Aviso de muestra corta (10 o 20 preguntas) */
.aviso-muestra { background: #fdf2e3; border: 1px solid #e8c48a; border-left: 6px solid #F45A22; border-radius: 10px; padding: 12px 16px; margin: 14px 0; color: #5c4317; font-size: .92rem; line-height: 1.5; }
.aviso-muestra b { color: #7a4900; }
.aviso-muestra-reporte { margin: 16px 0 18px; }
@media print { .aviso-muestra { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; } }
/* Cierre del reporte */
.pmp-reporte .cierre-reporte { border-top: 3px solid #F45A22; background: #f4f7fa; }
.pmp-reporte .cierre-reporte h3 { color: #06263D; }
.pmp-reporte .cierre-reporte p { color: #2d4257; margin: 8px 0; }
.pmp-reporte .firma-cierre { margin-top: 14px; color: #41596b; font-size: .9rem; }
@media print { .pmp-reporte .cierre-reporte { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.pmp-opinion .publicar { border: 0; padding: 0; margin: 4px 0 12px; }
.pmp-opinion .publicar legend { font-weight: 700; }
.pmp-opinion .casilla, .pmp-opinion .forma-publicar label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.pmp-opinion .forma-publicar { margin-inline-start: 24px; }
