/* Caso Voice of Customer: diagramas de arquitectura, proceso, facetas y roles */
.voc-fig { margin: 0; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface, #fff); }
.voc-fig figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: calc(14px * var(--reading-scale, 1)); line-height: 1.45; }
.voc-fig figcaption b { color: var(--ink); font-weight: 600; }
.vk { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.vt { display: block; margin: 4px 0 10px; font-size: 17px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.vtag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--wash); color: var(--ink); font: 500 10.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.vtag.person { background: #e3efe1; color: #1f4d2a; }
.vtag.both { background: linear-gradient(90deg, var(--wash) 50%, #e3efe1 50%); }

/* Arquitectura */
.voc-arch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.voc-arch > li { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.voc-arch > li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 600 18px/1 var(--mono); }
.voc-arch ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.voc-arch ul li { padding: 6px 9px; border: 1px solid var(--rule); border-radius: 7px; background: var(--surface, #fff); font-size: 13.5px; line-height: 1.35; }
.voc-arch ul li.next { border-style: dashed; color: var(--muted); }
.voc-arch .vstack { display: grid; gap: 10px; }
.voc-arch .vjira { position: relative; margin-top: 14px; padding: 12px; border: 1px dashed var(--ink); border-radius: 8px; background: var(--wash); font-size: 13.5px; line-height: 1.35; }
.voc-arch .vjira::before { content: "↓"; position: absolute; left: 50%; top: -17px; transform: translateX(-50%); color: var(--muted); font: 600 15px/1 var(--mono); }
.voc-arch .vjira b { display: block; font-size: 15px; font-weight: 650; }
.voc-build { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.voc-build span.chip { padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; background: var(--paper); }
.voc-build span.chip b { font-weight: 650; }

/* Proceso semanal */
.voc-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: v; }
.voc-steps > li { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font-size: 13.5px; line-height: 1.4; }
.voc-steps > li::before { counter-increment: v; content: counter(v); display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; font: 600 11px/1 var(--mono); }
.voc-steps b { font-size: 16px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.voc-steps .vtag { justify-self: start; }
.voc-steps > li:last-child { background: #eef6ec; border-color: #bcd8b8; }
.voc-note { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--rule); border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Facetas */
.voc-facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.voc-facets > li { display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.voc-facets .vn { font: 600 11px/1 var(--mono); color: var(--blue); }
.voc-facets b { font-size: 17px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.voc-facets span.d { color: var(--muted); font-size: 14px; line-height: 1.4; }
.voc-facets > li.derived { border-style: dashed; background: var(--wash); border-color: #c9cdee; }

/* Roles y tareas */
.voc-roles { display: grid; grid-template-columns: 1.05fr 36px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.voc-roles > li { display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.voc-roles > li.agent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.voc-roles > li.agent .vk { color: #b9c0ff; }
.voc-roles > li.arrow { padding: 0; border: 0; background: none; place-items: center; align-content: center; color: var(--muted); font: 600 20px/1 var(--mono); }
.voc-roles ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.voc-roles ul li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.4; }
.voc-roles ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 1px; background: currentColor; }
.voc-roles .vt { margin-bottom: 4px; }
.voc-jira { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--ink); border-radius: 8px; background: var(--wash); font-size: 14px; line-height: 1.4; }
.voc-jira b { font-weight: 650; }

@media (max-width: 1100px) {
  .voc-arch { grid-template-columns: 1fr; gap: 26px; }
  .voc-arch > li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .voc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voc-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voc-roles > li.agent { grid-column: 1 / -1; }
  .voc-roles > li.arrow { display: none; }
}
@media (max-width: 760px) {
  .voc-steps { grid-template-columns: 1fr; }
  .voc-facets { grid-template-columns: 1fr 1fr; }
  .voc-roles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .voc-facets { grid-template-columns: 1fr; } }
