{
    "version": "vdoc1336",
    "app_version": "7.1200",
    "framework": "VTM2 Global Interface Framework",
    "principle": "Todo componente visual activo usa un contrato VTM2 unico. No se aceptan variantes por pantalla cuando existe componente canonico.",
    "taxonomy": [
        "layout",
        "pattern",
        "component",
        "state",
        "utility",
        "functional_hook"
    ],
    "decisions": [
        "approved",
        "functional",
        "blocked",
        "review"
    ],
    "layouts": [
        {
            "id": "app-shell",
            "selector": ".vtm2-shell",
            "status": "approved",
            "html_contract": "header.vtm2-app-header + #layout.vtm2-shell > aside.vtm2-sidebar + main.vtm2-main"
        },
        {
            "id": "section-view",
            "selector": "[data-vtm-layout=\"section-view\"]",
            "status": "approved",
            "html_contract": ".vtm2-view > .vtm2-section-panel | .vtm2-view > header.vtm2-section-header + .vtm2-dashboard-group"
        },
        {
            "id": "wiki-reading",
            "selector": "[data-vtm-layout=\"wiki-reading\"]",
            "status": "approved"
        },
        {
            "id": "welcome-section-view",
            "selector": "#welcome[data-vtm-layout=\"section-view\"]",
            "status": "approved",
            "html_contract": "#welcome usa anatomia normal de seccion VTM2 y reutiliza section-header, dashboard-group, card-grid y feature-card. Ver docs/271_RETIRADA_HERO_HOME_ICONOS_CANONICOS.md"
        },
        {
            "id": "styleguide",
            "selector": "[data-vtm-layout=\"styleguide\"]",
            "status": "review"
        }
    ],
    "patterns": [
        {
            "id": "section-header",
            "status": "approved",
            "selectors": [
                ".vtm2-section-header",
                ".vtm2-section-header-main",
                ".vtm2-breadcrumb",
                ".vtm2-section-title",
                ".vtm2-section-desc",
                ".vtm2-section-header-actions",
                ".vtm2-section-return"
            ],
            "html_contract": "header.vtm2-section-header > .vtm2-section-header-main + optional .vtm2-section-header-actions",
            "visual_contract": "estructura canonica de cabecera; breadcrumb con apariencia base uniforme entre enlaces y texto, diferenciando enlaces solo en hover/focus"
        },
        {
            "id": "card-grid",
            "status": "approved",
            "selectors": [
                ".vtm2-card-grid",
                ".vtm2-tarjeta"
            ]
        },
        {
            "id": "sidebar-menu",
            "status": "approved",
            "selectors": [
                ".vtm2-sidebar-nav",
                ".vtm2-sidebar-item"
            ]
        },
        {
            "id": "update-inline",
            "status": "approved",
            "selectors": [
                ".vtm2-section-panel",
                ".vtm2-update-inline",
                ".vtm2-update-card",
                ".vtm2-file-picker",
                ".vtm2-message"
            ],
            "html_contract": "El resultado del actualizador conserva hook data-vtm2-update-feedback, pero la piel visual es vtm2-message."
        },
        {
            "id": "toast",
            "status": "approved",
            "selectors": [
                ".vtm2-toast-stack",
                ".vtm2-toast"
            ]
        },
        {
            "id": "local-visual-debt-classification",
            "status": "review",
            "selectors": [
                "data/vtm2_local_visual_classes_inventory.vdoc1336.json",
                "data/vtm2_local_visual_classes_classification.vdoc1336.json"
            ],
            "html_contract": "La deuda local preVTM2 se clasifica por familia, fase, riesgo y componente objetivo; no autoriza CSS legacy."
        },
        {
            "id": "protected-special-block",
            "status": "approved",
            "selectors": [
                ".vtm2-special-block",
                ".vtm2-dice-guide"
            ],
            "html_contract": "Bloques especiales de maquetación didáctica propia; no aplanar como card/panel genérico."
        },
        {
            "id": "generic-operational-panel",
            "status": "approved",
            "selectors": [
                ".vtm2-operational-panel",
                ".vtm2-status-box",
                ".vtm2-meta-grid",
                ".vtm2-kv",
                ".vtm2-action-panel",
                ".vtm2-icon-badge",
                ".vtm2-record-list",
                ".vtm2-record"
            ],
            "html_contract": "Panel operativo transversal con estado, metadatos, accion principal y registros compactos; no crear familias por area."
        },
        {
            "id": "editorial-home-contract",
            "status": "blocked",
            "selectors": [
                "data-vtm-layout=editorial-home",
                "docs/260_CONTRATO_PORTADA_EDITORIAL_HOME_VTM2.md",
                "docs/268_CONTRATO_EDITORIAL_HOME_SECTION_VIEW_HERO.md"
            ],
            "html_contract": "Contrato obligatorio: #welcome es section-view VTM2 estandar con componentes existentes. No vtm2-hero, no cards home, no encabezados home, no overrides #welcome .vtm2-*."
        },
        {
            "id": "editorial-home-preflight",
            "status": "approved",
            "selectors": [
                "#welcome",
                "docs/267_AUDITORIA_PREVIA_PORTADA_EDITORIAL_HOME_VTM2.md"
            ],
            "html_contract": "#welcome se audita como ruta critica contenida antes de iniciar la via B."
        },
        {
            "id": "editorial-home-section-view-contract",
            "status": "approved",
            "selectors": [
                "docs/271_RETIRADA_HERO_HOME_ICONOS_CANONICOS.md",
                "#welcome",
                "section-view"
            ],
            "html_contract": "#welcome no introduce componente hero. Encabezados, subencabezados, grid y cards usan contratos VTM2 existentes."
        },
        {
            "id": "section-anatomy-contract",
            "status": "approved",
            "selectors": [
                ".vtm2-section-panel",
                ".vtm2-section-header",
                ".vtm2-operational-panel",
                "docs/262_ANATOMIA_SECCIONES_VTM2.md"
            ],
            "html_contract": "Toda vista nueva debe heredar anatomia de seccion VTM2 o documentar contrato propio antes de tocar HTML/CSS/JS."
        },
        {
            "id": "visual-contract-panel",
            "status": "approved",
            "selectors": [
                "#gestion-contrato-visual",
                ".vtm2-group-heading",
                ".vtm2-content-heading",
                ".vtm2-table"
            ],
            "html_contract": "Gestion contiene el contrato visual vivo. Todo componente activo debe aparecer en esta pantalla y en este manifiesto antes de usarse."
        },
        {
            "id": "content-heading-contract",
            "status": "approved",
            "selectors": [
                ".vtm2-content-heading",
                ".vtm2-content-heading--primary",
                ".vtm2-content-heading--secondary",
                ".vtm2-content-heading--tertiary"
            ],
            "html_contract": "Encabezados internos del Compendio: primary hereda la logica visual de .vtm2-group-heading; secondary es menor que primary; tertiary no usa mayusculas completas."
        },
        {
            "id": "rules-table-contract",
            "status": "approved",
            "selectors": [
                ".vtm2-table-wrap",
                ".vtm2-table",
                ".vtm2-table--rules",
                ".vtm2-table--compact"
            ],
            "html_contract": "Toda tabla reglada se conserva como table dentro de envoltorio VTM2; no convertir tablas en cards."
        }
    ],
    "components": {
        "layout": [
            "vtm2-runtime",
            "vtm2-app-header",
            "vtm2-shell",
            "vtm2-sidebar",
            "vtm2-main",
            "vtm2-view",
            "vtm2-view--dashboard",
            "vtm2-dashboard",
            "vtm2-section-panel"
        ],
        "section_header": [
            "vtm2-section-header",
            "vtm2-section-header-main",
            "vtm2-breadcrumb",
            "vtm2-section-title",
            "vtm2-section-desc",
            "vtm2-section-header-actions",
            "vtm2-section-return"
        ],
        "header": [
            "vtm2-brand",
            "vtm2-primary-nav",
            "vtm2-primary-nav-item",
            "vtm2-dev-tools",
            "vtm2-dev-tool",
            "vtm2-search",
            "vtm2-search-icon",
            "vtm2-search-input",
            "vtm2-search-count",
            "vtm2-search-clear",
            "vtm2-userbar",
            "vtm2-user-actions",
            "vtm2-user-status",
            "vtm2-user-button"
        ],
        "sidebar": [
            "vtm2-sidebar-nav",
            "vtm2-sidebar-heading",
            "vtm2-sidebar-subheading",
            "vtm2-sidebar-item",
            "vtm2-sidebar-icon",
            "vtm2-sidebar-label",
            "vtm2-nav-icon",
            "vtm2-nav-text",
            "vtm2-nav-group",
            "vtm2-nav-group-heading",
            "vtm2-nav-group-body",
            "vtm2-nav-children",
            "vtm2-nav-h1-btn",
            "vtm2-nav-h2-btn"
        ],
        "dashboard": [
            "vtm2-dashboard-group",
            "vtm2-group-heading",
            "vtm2-card-grid",
            "vtm2-card-grid--soon",
            "vtm2-tarjeta",
            "vtm2-feature-icon",
            "vtm2-feature-copy",
            "vtm2-feature-title",
            "vtm2-feature-desc",
            "vtm2-feature-arrow"
        ],
        "buttons": [
            "vtm2-btn",
            "vtm2-button-primary",
            "vtm2-button-secondary",
            "vtm2-menu-toggle",
            "vtm2-floating-menu"
        ],
        "update": [
            "vtm2-section-panel",
            "vtm2-update-inline",
            "vtm2-system-panel",
            "vtm2-update-card",
            "vtm2-update-status-row",
            "vtm2-update-version",
            "vtm2-update-form",
            "vtm2-update-workflow",
            "vtm2-update-upload-zone",
            "vtm2-update-submit-zone",
            "vtm2-update-step-label",
            "vtm2-update-note",
            "vtm2-file-picker",
            "vtm2-file-picker-input",
            "vtm2-file-picker-button",
            "vtm2-file-picker-name",
            "vtm2-update-feedback",
            "vtm2-update-feedback-copy",
            "vtm2-update-feedback-version"
        ],
        "icons": [
            "vtm2-icon",
            "vtm2-icon--sidebar",
            "vtm2-icon--feature",
            "vtm2-icon-badge",
            "vtm2-icon-download-files",
            "vtm2-icon-auditoria",
            "vtm2-icon-update",
            "vtm2-icon-admin-alt"
        ],
        "modals": [
            "vtm2-modal",
            "vtm2-modal-backdrop",
            "vtm2-modal-dialog",
            "vtm2-modal-dialog--confirm",
            "vtm2-modal-header",
            "vtm2-modal-title",
            "vtm2-modal-body",
            "vtm2-modal-footer",
            "vtm2-modal-close"
        ],
        "messages": [
            "vtm2-message",
            "vtm2-message--info",
            "vtm2-message--success",
            "vtm2-message--warning",
            "vtm2-message--error",
            "vtm2-message-content",
            "vtm2-message-title",
            "vtm2-message-body",
            "vtm2-message-close"
        ],
        "toast": [
            "vtm2-toast-stack",
            "vtm2-toast",
            "vtm2-toast--ok",
            "vtm2-toast--err",
            "vtm2-toast--warn",
            "vtm2-toast-icon",
            "vtm2-toast-actions"
        ],
        "protected_special_blocks": [
            "vtm2-special-block",
            "vtm2-dice-guide",
            "vtm2-dice-guide-head",
            "vtm2-dice-guide-kicker",
            "vtm2-dice-guide-title",
            "vtm2-dice-guide-grid",
            "vtm2-dice-guide-block",
            "vtm2-dice-guide-step",
            "vtm2-dice-guide-content",
            "vtm2-dice-guide-dice-run",
            "vtm2-dice-guide-die",
            "vtm2-dice-guide-roll-row",
            "vtm2-dice-guide-roll-label",
            "vtm2-dice-guide-roll-total"
        ],
        "generic_operational": [
            "vtm2-operational-panel",
            "vtm2-status-box",
            "vtm2-meta-grid",
            "vtm2-kv",
            "vtm2-kv-label",
            "vtm2-kv-value",
            "vtm2-action-panel",
            "vtm2-action-panel-main",
            "vtm2-icon-badge",
            "vtm2-record-list",
            "vtm2-record",
            "vtm2-record-main",
            "vtm2-record-title-row",
            "vtm2-record-title",
            "vtm2-record-meta",
            "vtm2-record-actions"
        ],
        "styleguide": [
            "vtm-styleguide",
            "vtm-styleguide-shell",
            "vtm-styleguide-nav",
            "vtm-styleguide-section",
            "vtm-styleguide-token-grid",
            "vtm-style-swatch",
            "vtm-styleguide-breakpoint",
            "vtm-global-side-menu"
        ],
        "content_headings": [
            "vtm2-content-heading",
            "vtm2-content-heading--primary",
            "vtm2-content-heading--secondary",
            "vtm2-content-heading--tertiary",
            "vtm2-reading-heading",
            "vtm2-reading-heading--group",
            "vtm2-reading-heading--entry",
            "vtm2-reading-heading--detail"
        ],
        "compendium_navigation": [
            "vtm2-section-links",
            "vtm2-local-section-links",
            "vtm2-section-links-title",
            "vtm2-section-links-list",
            "vtm2-section-link",
            "vtm2-inline-link",
            "vtm2-inline-link--reference",
            "xref"
        ],
        "rules_tables": [
            "vtm2-table-wrap",
            "vtm2-table--rules",
            "vtm2-table--compact",
            "tbl-wrap",
            "tbl-wrap-compact",
            "tbl-wrap-narrow",
            "tbl-wrap-wide",
            "tbl-cols-2",
            "tbl-cols-8",
            "tbl-first-col-sticky",
            "tbl-contract-table-reference",
            "tbl-contract-table-profile-overview",
            "tbl-contract-table-d100",
            "rc-table-wrap",
            "rc-table--reference",
            "rc-table--profile-overview",
            "rc-table--d100",
            "tbl-col-mech",
            "tbl-left-first",
            "tbl-center-last",
            "tbl-center-first",
            "tbl-center-all",
            "tbl-has-mech-cols",
            "tbl-mech-table"
        ],
        "rules_blocks": [
            "vtm2-stat-block",
            "vtm2-stat-facts",
            "vtm2-stat-facts--antagonist",
            "vtm2-stat-fact",
            "vtm2-stat-label",
            "vtm2-power-block",
            "vtm2-power-facts",
            "vtm2-power-fact",
            "vtm2-trait-block",
            "vtm2-trait-control",
            "vtm2-equipment-block",
            "vtm2-vehicle-block",
            "vtm2-rules-text",
            "vtm2-pips"
        ],
        "render_contract_legacy_hooks": [
            "section-wrap",
            "section",
            "lv1",
            "lv2",
            "body",
            "embedded-sections",
            "embedded-content",
            "embedded-block",
            "embedded-title",
            "embedded-body",
            "embedded-children",
            "chapter-reading",
            "structured-chapter-reading",
            "catalog-reading",
            "profile-catalog-reading",
            "structured-chapter-content",
            "catalog-content",
            "profile-catalog-content",
            "structured-child",
            "render-role-section",
            "render-role-detail",
            "render-role-entry",
            "renderer-chapter",
            "renderer-structured-chapter",
            "renderer-entry",
            "anchor-title-marker",
            "depth-1",
            "depth-2",
            "depth-3",
            "depth-4",
            "profile-block",
            "profile-title",
            "profile-body",
            "profile-section-block",
            "profile-section-title",
            "profile-section-body",
            "profile-sections",
            "predator-profile-block",
            "rc-profile",
            "rc-profile-sections",
            "rc-section-title",
            "rc-subsection-title",
            "rc-entry-title",
            "rc-entry-section",
            "rc-entry-section-title",
            "entry-section-title",
            "field-label",
            "rc-field-label",
            "square-list",
            "dot-scale",
            "dot-scale-level",
            "dot-scale-text",
            "rules-icon-panel",
            "rules-icon-panel-head",
            "rules-icon-panel-title",
            "rules-icon-panel-note",
            "rules-icon-panel-grid",
            "rules-icon-item",
            "rules-icon-img",
            "rules-icon-copy",
            "rules-icon-label",
            "rules-icon-text",
            "ui-inline-marker",
            "ui-marker-filled",
            "ui-marker-sm",
            "antagonist-profile-note",
            "antagonist-profile-equipo",
            "antagonist-profile-especial"
        ],
        "visual_contract": [
            "visual-contract-panel"
        ],
        "states": [
            "is-active",
            "is-active-current",
            "is-open",
            "is-hidden",
            "is-disabled",
            "is-upcoming",
            "is-anonymous",
            "is-on",
            "is-filled",
            "hidden",
            "offcanvas"
        ],
        "functional_hooks": [
            "data-vtm-layout",
            "data-vtm-area",
            "data-vtm-section",
            "data-vtm2-component",
            "data-vtm2-audit",
            "data-render-diagnostic",
            "data-gestion-direct-action",
            "data-vtm2-return-link",
            "data-vtm2-update-form",
            "data-vtm2-update-feedback",
            "data-vtm2-update-feedback-close",
            "data-vtm2-protected-block"
        ]
    },
    "forbidden_active": [
        "vtm2-dashboard-header",
        "vtm2-dashboard-title",
        "vtm2-dashboard-desc",
        "vtm2-section-header--update",
        "vtm-view-header",
        "vtm-section-header",
        "title-h1",
        "title-h2",
        "title-h3",
        "title-card"
    ],
    "audit_rules": [
        {
            "id": "section_header_single_contract",
            "severity": "error",
            "description": "Toda vista migrada usa .vtm2-section-header con .vtm2-section-title y .vtm2-section-desc."
        },
        {
            "id": "breadcrumb_visual_equivalence",
            "severity": "error",
            "description": "En .vtm2-breadcrumb, a/button/span deben compartir apariencia base; enlaces solo se distinguen en hover/focus."
        },
        {
            "id": "management_subviews_are_audited",
            "severity": "error",
            "description": "Las subvistas de Gestion deben recorrerse como rutas SPA y usar .vtm2-section-panel cuando tengan cabecera propia."
        },
        {
            "id": "no_old_header_aliases",
            "severity": "error",
            "description": "No se aceptan .vtm2-dashboard-header, .vtm2-dashboard-title, .vtm2-dashboard-desc ni variantes por vista en cabeceras migradas."
        },
        {
            "id": "audits_share_vtm2_contract",
            "severity": "error",
            "description": "La auditoria VTM2 individual y la auditoria total deben bloquear los mismos estandares VTM2 aprobados."
        },
        {
            "id": "no_unknowns",
            "severity": "error",
            "description": "Todo elemento relevante detectado debe aparecer en el manifiesto y en la sección Gestion > Contrato visual. Unknown bloquea aceptación."
        },
        {
            "id": "protected_special_blocks",
            "severity": "error",
            "description": "Los bloques especiales protegidos deben conservar componente propio VTM2 y no convertirse en card/panel genérico."
        },
        {
            "id": "generic_operational_reuse",
            "severity": "error",
            "description": "Paneles operativos y listados compactos deben usar componentes genéricos VTM2, no familias específicas de área."
        },
        {
            "id": "local_visual_debt_classified",
            "severity": "error",
            "description": "Toda deuda local preVTM2 debe estar inventariada y clasificada antes de migrarse a VTM2."
        },
        {
            "id": "editorial_home_contract_required",
            "severity": "error",
            "description": "No se puede tocar #welcome sin aplicar el contrato: #welcome = section-view VTM2 estandar + componentes existentes. Ver docs/268_CONTRATO_EDITORIAL_HOME_SECTION_VIEW_HERO.md."
        },
        {
            "id": "editorial_home_preflight_required",
            "severity": "error",
            "description": "#welcome debe ser section-view sin crear sistema paralelo: sección VTM2 y cards existentes. Ver docs/269_IMPLEMENTACION_VTM2_HERO_PORTADA.md."
        },
        {
            "id": "section_anatomy_required",
            "severity": "error",
            "description": "No se puede tocar una vista sin aplicar docs/262_ANATOMIA_SECCIONES_VTM2.md o documentar contrato propio."
        },
        {
            "id": "vtm2_hero_implemented",
            "severity": "error",
            "description": "La portada debe retirar .vtm2-hero y usar .vtm2-card-grid/.vtm2-tarjeta existentes, sin clases home paralelas."
        }
    ]
}