%% Cambiamos a Left-Right (LR) para estilo de proceso lineal
graph LR
%% Estilos visuales
classDef plan fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#1b5e20,rx:5,ry:5,cursor:pointer;
classDef hacer fill:#e3f2fd,stroke:#1565c0,stroke-width:2px,color:#0d47a1,rx:5,ry:5,cursor:pointer;
classDef verificar fill:#fff3e0,stroke:#ef6c00,stroke-width:2px,color:#e65100,rx:5,ry:5,cursor:pointer;
classDef actuar fill:#ffebee,stroke:#c62828,stroke-width:2px,color:#b71c1c,rx:5,ry:5,cursor:pointer;
%% FASE 1: PLANIFICAR
subgraph G1 [Fase 1: Diagnóstico y Estrategia]
direction TB
Step1("1. Contexto &
Partes Interesadas"):::plan
Step2("2. Alcance &
Mapa de Procesos"):::plan
Step3("3. Liderazgo &
Política"):::plan
Step4("4. Riesgos &
Objetivos"):::plan
end
%% FASE 2: HACER
subgraph G2 [Fase 2: Implementación Operativa]
direction TB
Step5("5. Recursos &
Competencia"):::hacer
Step6("6. Info
Documentada"):::hacer
Step7("7. Operación &
Control"):::hacer
Step8("8. Diseño
(Si aplica)"):::hacer
end
%% FASE 3: VERIFICAR
subgraph G3 [Fase 3: Evaluación]
direction TB
Step9("9. Seguimiento &
Medición"):::verificar
Step10("10. Auditoría
Interna"):::verificar
Step11("11. Revisión por
la Dirección"):::verificar
end
%% FASE 4: ACTUAR
subgraph G4 [Fase 4: Mejora]
direction TB
Step12("12. Acciones
Correctivas"):::actuar
Step13("13. Mejora
Continua"):::actuar
end
%% CONEXIONES
Step1 --> Step2
Step2 --> Step3
Step3 --> Step4
Step4 --> Step5
Step5 --> Step7
Step6 -.-> Step7
Step8 -.-> Step7
Step7 --> Step9
Step9 --> Step10
Step10 --> Step11
Step11 --> Step12
Step12 --> Step13
%% RETROALIMENTACIÓN
Step13 -.-> Step4
Step11 -.-> Step5
G1 --> G2
G2 --> G3
G3 --> G4
%% INTERACCIONES (CLICKS)
click Step1 call showDetail("Step1")
click Step2 call showDetail("Step2")
click Step3 call showDetail("Step3")
click Step4 call showDetail("Step4")
click Step5 call showDetail("Step5")
click Step6 call showDetail("Step6")
click Step7 call showDetail("Step7")
click Step8 call showDetail("Step8")
click Step9 call showDetail("Step9")
click Step10 call showDetail("Step10")
click Step11 call showDetail("Step11")
click Step12 call showDetail("Step12")
click Step13 call showDetail("Step13")