/* =========================================================
   FICHA TÉCNICA PPI 
   ========================================================= */

:root {
    --ppi-primary: #17365d;
    --ppi-primary-dark: #102744;
    --ppi-primary-light: #eaf0f7;
    --ppi-accent: #2871a8;

    --ppi-text: #263445;
    --ppi-text-muted: #64748b;
    --ppi-heading: #172b43;

    --ppi-border: #dce3eb;
    --ppi-border-light: #e8edf2;
    --ppi-surface: #ffffff;
    --ppi-surface-soft: #f7f9fc;
    --ppi-surface-alt: #f1f5f9;

    --ppi-success: #18794e;
    --ppi-success-bg: #e9f7ef;
    --ppi-info: #245a8d;
    --ppi-info-bg: #eaf3fc;
    --ppi-neutral: #526174;
    --ppi-neutral-bg: #eef2f6;

    --ppi-radius: 10px;
    --ppi-radius-lg: 14px;

    --ppi-shadow:
        0 18px 55px rgba(15, 35, 60, 0.17),
        0 3px 12px rgba(15, 35, 60, 0.06);
}

/* =========================================================
   1. OVERLAY Y CONTENEDOR PRINCIPAL
   ========================================================= */

.modalOverlay.ppi-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: flex-start;
    justify-content: center;

    padding: 24px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: rgba(12, 25, 43, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modalOverlay.ppi-modal-overlay[style*="display: flex"] {
    align-items: flex-start;
}

.ppi-modal,
#detalles-ficha.ppi-modal {
    position: relative;

    width: 100%;
    max-width: 1120px;
    min-width: 0;
    margin: 0 auto;

    overflow: hidden;
    background: var(--ppi-surface);
    color: var(--ppi-text);

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--ppi-shadow);

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;

    box-sizing: border-box;
}

.ppi-modal *,
.ppi-modal *::before,
.ppi-modal *::after {
    box-sizing: border-box;
}

/* =========================================================
   2. CABECERA INSTITUCIONAL
   ========================================================= */

.ppi-header {
    position: relative;
    overflow: hidden;

    color: #ffffff;
    background:
        linear-gradient(115deg, #102744 0%, #17365d 62%, #24527d 100%);

    border-bottom: 4px solid #d0a85c;
}

.ppi-header::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    top: -165px;
    right: -75px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;

    pointer-events: none;
}

.ppi-header-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ppi-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ppi-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ppi-brand>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ppi-eyebrow {
    display: block;
    color: #e3c98f;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.ppi-brand-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.5;
}

.ppi-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;

    width: 38px;
    height: 38px;
    padding: 0;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;

    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ppi-close:hover {
    background: rgba(255, 255, 255, 0.19);
    transform: scale(1.04);
}

.ppi-header-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px 30px;
}

.ppi-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.ppi-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;
    max-width: 100%;
    padding: 5px 10px;

    border: 1px solid transparent;
    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.55px;
    line-height: 1.4;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ppi-badge-primary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.ppi-badge-info {
    color: #e0efff;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(191, 219, 254, 0.30);
}

.ppi-badge-success {
    color: #d5f7e2;
    background: rgba(22, 163, 74, 0.17);
    border-color: rgba(134, 239, 172, 0.30);
}

.ppi-badge-neutral {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
}

.ppi-project-title {
    max-width: 900px;
    margin: 0;

    color: #ffffff;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.25;

    overflow-wrap: anywhere;
}

.ppi-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;

    margin-top: 19px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
}

.ppi-header-meta strong {
    color: #ffffff;
    font-weight: 650;
}

.ppi-header-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    padding: 12px 32px;

    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.13);
    border-top: 1px solid rgba(255, 255, 255, 0.10);

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.15px;
}

/* =========================================================
   3. CUERPO DEL DOCUMENTO
   ========================================================= */

.ppi-content {
    display: flex;
    flex-direction: column;
    gap: 22px;

    padding: 28px 32px;
    background: #f5f7fa;
}

.ppi-section {
    min-width: 0;
    overflow: hidden;

    background: var(--ppi-surface);
    border: 1px solid var(--ppi-border);
    border-radius: var(--ppi-radius-lg);

    box-shadow: 0 2px 5px rgba(20, 40, 65, 0.025);
}

.ppi-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px 23px;

    background: #ffffff;
    border-bottom: 1px solid var(--ppi-border-light);
}

.ppi-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border: 1px solid #dce5ef;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.ppi-section-heading>div {
    min-width: 0;
}

.ppi-section-heading h2 {
    margin: 0;

    color: var(--ppi-heading);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.15px;
    line-height: 1.4;
}

.ppi-section-heading p {
    margin: 4px 0 0;

    color: var(--ppi-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ppi-section-body {
    min-width: 0;
    padding: 23px;
}

/* =========================================================
   4. SISTEMA DE CUADRÍCULAS
   ========================================================= */

.ppi-grid {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.ppi-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ppi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ppi-section-pair {
    align-items: stretch;
}

.ppi-section-pair>.ppi-section {
    height: 100%;
}

.ppi-span-2 {
    grid-column: span 2;
}

.ppi-mt {
    margin-top: 16px;
}

/* =========================================================
   5. CAMPOS INFORMATIVOS
   ========================================================= */

.ppi-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    min-width: 0;
    min-height: 100%;
    padding: 16px 17px;

    background: var(--ppi-surface-soft);
    border: 1px solid var(--ppi-border-light);
    border-radius: var(--ppi-radius);

    overflow-wrap: anywhere;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ppi-field:hover {
    border-color: #a6cbee;
    background: #ffffff;
}

.ppi-label {
    display: block;
    margin: 0 0 9px;

    color: #617187;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.85px;
    line-height: 1.5;
    text-transform: uppercase;
}

.ppi-field p {
    margin: 0;

    color: var(--ppi-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;

    overflow-wrap: anywhere;
    word-break: normal;
}

.ppi-field p:empty::before {
    content: "Sin información registrada";
    color: #98a4b3;
    font-size: 12px;
    font-style: italic;
}

.ppi-field .ppi-label+p {
    min-width: 0;
}

.ppi-preserve-lines {
    white-space: pre-line;
}

/* =========================================================
   6. ETIQUETAS Y VALORES DINÁMICOS
   ========================================================= */

.ppi-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;

    min-width: 0;
    min-height: 22px;

    color: var(--ppi-text);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ppi-tags:empty::before {
    content: "Sin información registrada";
    color: #98a4b3;
    font-size: 12px;
    font-style: italic;
}

/*
   Estilos para etiquetas creadas dinámicamente.
   Incluye elementos comunes sin forzar que todo el
   contenido dinámico se convierta en una etiqueta.
*/

.ppi-tags .ppi-tag,
.ppi-tags .ppi-chip {
    display: inline-flex;
    align-items: center;

    max-width: 100%;
    padding: 5px 10px;

    color: #334a63;
    background: #edf2f7;
    border: 1px solid #dce5ee;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;

    overflow-wrap: anywhere;
    white-space: normal;
}

.ppi-tags .ppi-tag:hover,
.ppi-tags .ppi-chip:hover {
    background: #e4edf6;
    border-color: #cbd9e7;
}

/* =========================================================
   7. IMPACTOS ESPERADOS
   ========================================================= */

.ppi-impact {
    min-width: 0;
    padding: 18px;

    background: #ffffff;
    border: 1px solid var(--ppi-border);
    border-top: 3px solid #6685a8;
    border-radius: 9px;
}

.ppi-impact h3 {
    margin: 0 0 15px;
    padding-bottom: 12px;

    color: var(--ppi-heading);
    border-bottom: 1px solid var(--ppi-border-light);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.65px;
    line-height: 1.6;
    text-transform: uppercase;
}

.ppi-impact-economic {
    border-top-color: #4276ad;
}

.ppi-impact-social {
    border-top-color: #8972b5;
}

.ppi-impact-environmental {
    border-top-color: #418a68;
}

/* =========================================================
   8. PRESUPUESTO Y FINANCIACIÓN
   ========================================================= */

.ppi-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    min-height: 140px;
    padding: 23px;

    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid var(--ppi-border);
    border-radius: 10px;
}

.ppi-metric>.ppi-label {
    margin-bottom: 14px;
}

.ppi-money {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;

    min-width: 0;
    color: var(--ppi-primary);
    font-variant-numeric: tabular-nums;
}

.ppi-money>strong {
    min-width: 0;
    color: var(--ppi-primary);

    font-size: clamp(22px, 3vw, 31px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.ppi-money>span {
    color: var(--ppi-primary);
    font-size: 20px;
    font-weight: 700;
}

.ppi-money>small {
    color: var(--ppi-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.ppi-metric-commitment {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f3 100%);
    border-color: #d7e8dc;
}

.ppi-metric-commitment .ppi-money>strong,
.ppi-metric-commitment .ppi-money>span {
    color: var(--ppi-success);
}

/* =========================================================
   9. CADENA DE VALOR
   ========================================================= */

.ppi-value-chain {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ppi-value-chain:empty::before {
    content: "No hay información de la cadena de valor disponible.";
    display: block;
    padding: 20px;

    color: var(--ppi-text-muted);
    background: var(--ppi-surface-soft);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    font-size: 12px;
    text-align: center;
}

.ppi-value-chain table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;

    font-size: 12px;
}

.ppi-value-chain th {
    padding: 12px;
    color: #ffffff;
    background: var(--ppi-primary);

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
}

.ppi-value-chain td {
    padding: 12px;
    color: var(--ppi-text);
    border-bottom: 1px solid var(--ppi-border-light);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.ppi-value-chain tr:nth-child(even) td {
    background: var(--ppi-surface-soft);
}

/* =========================================================
   10. PIE DEL DOCUMENTO
   ========================================================= */

.ppi-document-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    padding: 17px 32px;

    color: #728095;
    background: #ffffff;
    border-top: 1px solid var(--ppi-border);

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* =========================================================
   11. ACCESIBILIDAD Y CONTENIDO LARGO
   ========================================================= */

.ppi-modal button:focus-visible {
    outline: 3px solid #83b7ed;
    outline-offset: 3px;
}

.ppi-modal a {
    color: #245f96;
    overflow-wrap: anywhere;
}

.ppi-modal img,
.ppi-modal svg,
.ppi-modal video {
    max-width: 100%;
}

.ppi-modal pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* =========================================================
   12. RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 850px) {
    .modalOverlay.ppi-modal-overlay {
        padding: 14px 10px;
    }

    .ppi-content {
        padding: 20px;
        gap: 17px;
    }

    .ppi-header-top {
        padding: 18px 22px;
    }

    .ppi-header-content {
        padding: 24px 22px;
    }

    .ppi-header-footer {
        padding: 11px 22px;
    }

    .ppi-section-heading {
        padding: 17px 18px;
    }

    .ppi-section-body {
        padding: 18px;
    }

    .ppi-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ppi-impact:last-child {
        grid-column: 1 / -1;
    }

    .ppi-document-footer {
        padding: 16px 22px;
    }
}

/* =========================================================
   13. RESPONSIVE: MÓVIL
   ========================================================= */

@media (max-width: 600px) {
    .modalOverlay.ppi-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .ppi-modal,
    #detalles-ficha.ppi-modal {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        margin: 0;

        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ppi-header-top {
        gap: 12px;
        padding: 17px 16px;
    }

    .ppi-brand {
        gap: 10px;
    }

    .ppi-brand-mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .ppi-eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .ppi-brand-subtitle {
        font-size: 11px;
    }

    .ppi-close {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .ppi-header-content {
        padding: 22px 17px 24px;
    }

    .ppi-project-title {
        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .ppi-badges {
        gap: 6px;
        margin-bottom: 15px;
    }

    .ppi-badge {
        padding: 5px 8px;
        font-size: 9px;
    }

    .ppi-header-footer {
        padding: 11px 17px;
        font-size: 8px;
        letter-spacing: 0.7px;
    }

    .ppi-content {
        padding: 13px;
        gap: 14px;
    }

    .ppi-grid-2,
    .ppi-grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ppi-span-2,
    .ppi-impact:last-child {
        grid-column: auto;
    }

    .ppi-section-heading {
        gap: 11px;
        padding: 15px 13px;
    }

    .ppi-section-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .ppi-section-heading h2 {
        font-size: 13px;
    }

    .ppi-section-heading p {
        font-size: 10px;
    }

    .ppi-section-body {
        padding: 13px;
    }

    .ppi-field {
        padding: 14px;
    }

    .ppi-field p {
        font-size: 12px;
        line-height: 1.75;
    }

    .ppi-mt {
        margin-top: 12px;
    }

    .ppi-metric {
        min-height: 120px;
        padding: 18px;
    }

    .ppi-money>strong {
        font-size: 26px;
    }

    .ppi-document-footer {
        padding: 15px 17px;
        font-size: 8px;
    }

    .ppi-value-chain {
        overflow-x: auto;
    }

    .ppi-value-chain table {
        min-width: 480px;
    }
}

/* =========================================================
   14. PREFERENCIA DE MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ppi-close,
    .ppi-field {
        transition: none;
    }
}

/* =========================================================
   15. IMPRESIÓN
   ========================================================= */

@media print {
    .modalOverlay.ppi-modal-overlay {
        position: static;
        display: block !important;
        overflow: visible;

        padding: 0;
        background: #ffffff;
        backdrop-filter: none;
    }

    .ppi-modal,
    #detalles-ficha.ppi-modal {
        width: 100%;
        max-width: none;
        margin: 0;

        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ppi-close {
        display: none;
    }

    .ppi-content {
        padding: 12px 0;
        background: #ffffff;
    }

    .ppi-section {
        break-inside: avoid;
        box-shadow: none;
    }

    .ppi-header,
    .ppi-section-heading,
    .ppi-section-number,
    .ppi-metric,
    .ppi-impact {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}





/* =========================================================
   EVALUACIÓN PPI
   Complemento visual sobre los estilos existentes ppi-*
   ========================================================= */

.eval-modal {
    max-width: 1000px;
}

/* Descripción de la cabecera */

.eval-header-description {
    max-width: 720px;
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.8;
}

/* Valores que contienen badges */

.eval-field-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    min-width: 0;
}

/* Estado de la evaluación */

.eval-status,
.eval-decision {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    padding: 7px 11px;

    border: 1px solid transparent;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
}

.eval-status {
    color: var(--ppi-info);
    background: var(--ppi-info-bg);
    border-color: #d3e4f5;
}

/* =========================================================
   TARJETAS DE CRITERIOS
   ========================================================= */

.eval-criteria-grid {
    align-items: stretch;
    gap: 16px;
}

.eval-criterion {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    min-width: 0;
    padding: 19px;

    background: #ffffff;
    border: 1px solid var(--ppi-border);
    border-radius: var(--ppi-radius-lg);

    box-shadow: 0 2px 5px rgba(20, 40, 65, 0.025);
}

.eval-criterion-wide {
    grid-column: 1 / -1;
}

.eval-criterion-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    min-width: 0;
    min-height: 43px;
}

.eval-criterion-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border: 1px solid #dce5ef;
    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.eval-criterion-heading h3 {
    min-width: 0;
    margin: 4px 0 0;

    color: var(--ppi-heading);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

/* Puntuación individual */

.eval-score {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;

    margin: 17px 0;
    padding: 12px 14px;

    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border: 1px solid #dce5ef;
    border-radius: 7px;

    font-variant-numeric: tabular-nums;
}

.eval-score>span:first-child {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.eval-score-divider {
    color: #91a2b6;
    font-size: 17px;
    font-weight: 400;
}

.eval-score-max {
    color: var(--ppi-text-muted);
    font-size: 11px;
    font-weight: 650;
}

/* Observaciones de cada criterio */

.eval-observation {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;

    background: var(--ppi-surface-soft);
    border: 1px solid var(--ppi-border-light);
    border-radius: 7px;
}

.eval-observation .ppi-label {
    margin-bottom: 7px;
}

.eval-observation p {
    min-height: 40px;
    margin: 0;

    color: var(--ppi-text-muted);
    font-size: 12px;
    font-style: italic;
    line-height: 1.8;

    overflow-wrap: anywhere;
    white-space: pre-line;
}

/* =========================================================
   RESUMEN DE PUNTUACIÓN
   ========================================================= */

.eval-results {
    margin-top: 24px;
    padding: 22px;

    background: #ffffff;
    border: 1px solid var(--ppi-border);
    border-radius: var(--ppi-radius-lg);
}

.eval-results-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 19px;
    padding-bottom: 16px;

    border-bottom: 1px solid var(--ppi-border-light);
}

.eval-results-mark {
    flex: 0 0 5px;
    width: 5px;
    height: 35px;

    background: var(--ppi-accent);
    border-radius: 5px;
}

.eval-results-heading h3 {
    margin: 0;

    color: var(--ppi-heading);
    font-size: 14px;
    font-weight: 750;
}

.eval-results-heading p {
    margin: 4px 0 0;

    color: var(--ppi-text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.eval-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.eval-result-card {
    min-width: 0;
    padding: 19px;

    background: var(--ppi-surface-soft);
    border: 1px solid var(--ppi-border);
    border-radius: 9px;
}

.eval-result-card .ppi-label {
    margin-bottom: 10px;
}

.eval-result-value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;

    font-variant-numeric: tabular-nums;
}

.eval-result-value strong {
    color: var(--ppi-heading);
    font-size: clamp(25px, 3vw, 33px);
    font-weight: 800;
    letter-spacing: -0.7px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.eval-result-value>span {
    color: var(--ppi-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.eval-result-primary {
    background: #edf4fb;
    border-color: #ccdeef;
}

.eval-result-primary .eval-result-value strong {
    color: var(--ppi-primary);
}

/* =========================================================
   DICTAMEN Y RECOMENDACIONES
   ========================================================= */

.eval-field-wide {
    grid-column: 1 / -1;
}

.eval-decision-success {
    color: var(--ppi-success);
    background: var(--ppi-success-bg);
    border-color: #cce9d7;
}

.eval-decision-warning {
    color: #8a5a12;
    background: #fff5df;
    border-color: #f0dfb5;
}

.eval-preserve-lines {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* =========================================================
   ARCHIVOS ADJUNTOS
   ========================================================= */

.eval-attachments {
    min-width: 0;
    margin-top: 20px;
    padding: 17px;

    background: var(--ppi-surface-soft);
    border: 1px solid var(--ppi-border-light);
    border-radius: var(--ppi-radius);
}

.eval-attachments-heading .ppi-label {
    margin-bottom: 12px;
}

.eval-attachments-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;

    min-width: 0;
    overflow-wrap: anywhere;
}

.eval-empty {
    color: var(--ppi-text-muted);
    font-size: 12px;
    font-style: italic;
    line-height: 1.7;
}

/* Elementos de archivos generados dinámicamente.
   No se fuerzan estilos sobre enlaces o botones existentes. */

.eval-attachments-list a {
    overflow-wrap: anywhere;
}

.eval-attachments-list img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   BOTÓN DE CIERRE
   ========================================================= */

.eval-document-footer {
    gap: 16px;
}

.eval-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 9px 17px;

    color: #ffffff;
    background: var(--ppi-primary);
    border: 1px solid var(--ppi-primary);
    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.2px;

    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.eval-close-button:hover {
    background: var(--ppi-primary-dark);
    border-color: var(--ppi-primary-dark);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {
    .eval-modal {
        max-width: 100%;
    }

    .eval-criterion {
        padding: 15px;
    }

    .eval-results {
        padding: 17px;
    }
}

@media (max-width: 600px) {
    .eval-header-description {
        font-size: 12px;
    }

    .eval-criteria-grid,
    .eval-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eval-criterion-wide,
    .eval-field-wide {
        grid-column: auto;
    }

    .eval-criterion {
        padding: 14px;
    }

    .eval-score {
        margin: 13px 0;
    }

    .eval-results {
        margin-top: 17px;
        padding: 13px;
    }

    .eval-result-card {
        padding: 16px;
    }

    .eval-document-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .eval-close-button {
        width: 100%;
    }
}





/* =========================================================
   FORMULARIO DE EVALUACIÓN
   Reutiliza ppi-* y eval-* existentes
   ========================================================= */

/* Campos editables */

.eval-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
    margin-top: 17px;
}

.eval-form-field .ppi-label {
    margin-bottom: 0;
}

.eval-form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 12px;

    color: var(--ppi-text);
    background: #ffffff;
    border: 1px solid var(--ppi-border);
    border-radius: 7px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;

    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eval-form-control::placeholder {
    color: #98a4b3;
    opacity: 1;
}

.eval-form-control:focus {
    outline: none;
    border-color: var(--ppi-accent);
    box-shadow: 0 0 0 3px rgba(40, 113, 168, 0.12);
}

.eval-form-control:disabled {
    background: var(--ppi-surface-alt);
    color: var(--ppi-text-muted);
    cursor: not-allowed;
}

/* Textareas */

.eval-textarea {
    min-height: 95px;
    resize: vertical;
    line-height: 1.75;
}

/* Puntuación */

.eval-input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.eval-score-input {
    width: 135px;
    max-width: 100%;

    color: var(--ppi-primary);
    font-size: 16px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.eval-input-suffix {
    color: var(--ppi-text-muted);
    font-size: 11px;
    font-weight: 650;
}

/* Elimina las flechas del input number solo si
   el diseño del proyecto requiere una apariencia más limpia.
   Se conservan los controles nativos por defecto. */

/* Campos de recomendación y prioridad */

.ppi-field>.eval-form-control {
    margin-top: 1px;
}

.eval-form-control option {
    color: var(--ppi-text);
    background: #ffffff;
}

/* Resumen: separación y jerarquía visual */

.eval-results .eval-result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.eval-results .eval-result-value {
    min-height: 42px;
}

/* Archivos */

.eval-file-field {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 18px;

    background: var(--ppi-surface-soft);
    border: 1px dashed var(--ppi-border);
    border-radius: var(--ppi-radius);
}

.eval-file-field[hidden] {
    display: none !important;
}

.eval-file-input {
    height: auto;
    padding: 10px;
}

.eval-help-text {
    margin: 9px 0 0;
    color: var(--ppi-text-muted);
    font-size: 11px;
    line-height: 1.7;
}

/* Acciones */

.eval-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;

    padding-top: 20px;
    border-top: 1px solid var(--ppi-border);
}

.eval-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;
    padding: 11px 19px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;

    cursor: pointer;
    transition: background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.eval-form-button:focus-visible {
    outline: 3px solid #83b7ed;
    outline-offset: 3px;
}

.eval-form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eval-form-button-secondary {
    color: var(--ppi-primary);
    background: #ffffff;
    border-color: var(--ppi-border);
}

.eval-form-button-secondary:hover {
    background: var(--ppi-surface-soft);
    border-color: #b8c8d9;
}

.eval-form-button-primary {
    color: #ffffff;
    background: var(--ppi-primary);
    border-color: var(--ppi-primary);
}

.eval-form-button-primary:hover {
    background: var(--ppi-primary-dark);
    border-color: var(--ppi-primary-dark);
}

/* Responsive */

@media (max-width: 600px) {
    .eval-form-field {
        margin-top: 14px;
    }

    .eval-input-row {
        align-items: flex-start;
    }

    .eval-score-input {
        width: 100%;
    }

    .eval-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .eval-form-button {
        width: 100%;
    }
}







/* =========================================================
   COMPLEMENTO CSS PARA LA NUEVA MATRIZ PONDERADA
   Agregar DESPUÉS de tus reglas ppi-* y eval-* actuales.
   No necesitas Tailwind. No borres los estilos base ppi-*.
   ========================================================= */

.eval-modal {
    max-width: 1000px;
}

.eval-project-summary {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--ppi-border);
    border-radius: var(--ppi-radius-lg);
    box-shadow: 0 2px 5px rgba(20, 40, 65, .025);
}

.eval-project-summary h2 {
    margin: 0 0 10px;
    color: var(--ppi-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eval-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 16px;
    color: var(--ppi-text-muted);
    font-size: 11px;
}

.eval-project-meta strong {
    color: var(--ppi-text);
    font-weight: 700;
}

.eval-project-tag {
    padding: 4px 10px;
    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border: 1px solid #dce5ef;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.eval-part {
    min-width: 0;
    padding: 20px;
    background: #f1f5f9;
    border: 1px solid var(--ppi-border);
    border-radius: var(--ppi-radius-lg);
}

.eval-part-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 17px;
}

.eval-part-heading h2 {
    margin: 0;
    color: var(--ppi-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.eval-part-heading p {
    margin: 5px 0 0;
    color: var(--ppi-text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.eval-part-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--ppi-primary);
    background: #fff;
    border: 1px solid var(--ppi-border);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.eval-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eval-score-card {
    min-width: 0;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--ppi-border);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(20, 40, 65, .025);
}

.eval-score-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.eval-score-card-heading h3 {
    margin: 0;
    color: var(--ppi-heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.eval-score-card-heading p {
    margin: 3px 0 0;
    color: var(--ppi-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.eval-weight-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border: 1px solid #dce5ef;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.eval-score-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 13px;
}

.eval-score-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--ppi-text-muted);
    background: #fff;
    border: 1px solid var(--ppi-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.eval-score-button:hover {
    color: var(--ppi-primary);
    background: var(--ppi-primary-light);
    border-color: #9db8d5;
}

.eval-score-button:focus-visible {
    outline: 3px solid #83b7ed;
    outline-offset: 2px;
}

.eval-score-button.seleccionado,
.eval-score-button[aria-pressed="true"] {
    border-color: var(--ppi-primary, #17365d);
    background: var(--ppi-primary, #17365d);
    color: #fff;
    box-shadow: 0 2px 6px rgb(23 54 93 / 18%);
}

.eval-score-points {
    margin-left: 5px;
    color: var(--ppi-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.eval-range-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.eval-range-grid p {
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    color: var(--ppi-text-muted);
    background: #f3f6fa;
    border: 1px solid #edf1f5;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.eval-observation-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
}

.eval-observation-field .ppi-label {
    margin: 0;
}

.eval-observation-field .eval-textarea {
    min-height: 70px;
}

.eval-weighted-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 15px 17px;
    background: #eaf1f9;
    border: 1px solid #cbdced;
    border-radius: 11px;
}

.eval-weighted-summary h3 {
    margin: 0;
    color: var(--ppi-heading);
    font-size: 13px;
    font-weight: 800;
}

.eval-weighted-summary p {
    margin: 5px 0 0;
    color: var(--ppi-text-muted);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.eval-score-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.eval-score-ring svg {
    display: block;
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

.eval-score-ring circle {
    fill: none;
    stroke-width: 3;
}

.eval-ring-track {
    stroke: #cbd5e1;
}

.eval-ring-progress {
    stroke: var(--ppi-primary);
    stroke-linecap: round;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset .2s ease;
}

.eval-score-ring span {
    position: absolute;
    color: var(--ppi-heading);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.eval-general-observations {
    margin-top: 0;
}

.eval-character-count {
    align-self: flex-end;
    color: var(--ppi-text-muted);
    font-size: 10px;
}

.eval-final-fields {
    margin-top: 17px;
}

.eval-final-fields .ppi-field {
    min-height: 0;
}

.eval-final-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ppi-border);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(20, 40, 65, .025);
}

.eval-final-summary>div:first-child>strong {
    display: block;
    color: var(--ppi-primary);
    font-size: 26px;
    font-weight: 850;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.eval-final-summary .ppi-label {
    margin: 0 0 5px;
}

.eval-final-summary p {
    margin: 5px 0 0;
    color: var(--ppi-text-muted);
    font-size: 10px;
    line-height: 1.6;
}

.eval-final-summary-side {
    text-align: right;
}

.eval-final-status {
    display: inline-block;
    padding: 5px 9px;
    color: #855b16;
    background: #fff5df;
    border: 1px solid #f0dfb5;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.eval-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--ppi-border);
}

.eval-form-actions .eval-form-button {
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
}

.eval-form-actions .eval-form-button span {
    font-size: 14px;
    line-height: 1;
}

@media (max-width:850px) {
    .eval-part {
        padding: 16px;
    }

    .eval-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:600px) {
    .eval-project-summary {
        padding: 16px;
    }

    .eval-project-summary h2 {
        font-size: 16px;
    }

    .eval-part {
        padding: 12px;
    }

    .eval-part-heading h2 {
        font-size: 14px;
    }

    .eval-score-card {
        padding: 13px;
    }

    .eval-score-card-heading h3 {
        font-size: 13px;
    }

    .eval-score-button {
        flex-basis: 31px;
        width: 31px;
        height: 33px;
    }

    .eval-score-buttons {
        gap: 5px;
    }

    .eval-score-points {
        flex-basis: 100%;
        margin: 4px 0 0;
    }

    .eval-range-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eval-weighted-summary {
        align-items: flex-start;
        padding: 13px;
    }

    .eval-weighted-summary h3 {
        font-size: 12px;
    }

    .eval-weighted-summary p {
        font-size: 10px;
    }

    .eval-final-summary {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .eval-final-summary-side {
        text-align: left;
    }

    .eval-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .eval-form-actions .eval-form-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion:reduce) {

    .eval-score-button,
    .eval-ring-progress {
        transition: none;
    }
}







/* BOTÓN DE CREAR ACTA */
.btn-crear-acta,
.btn-crear-integrante {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 17px;
    flex-shrink: 0;
    color: #fff;
    background: #17365d;
    border: 1px solid #17365d;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn-crear-acta:hover,
.btn-crear-integrante:hover {
    background: #102744;
    transform: translateY(-1px);
}

.actors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* MODAL Y FORMULARIO */
.acta-modal {
    max-width: 1000px;
}

.acta-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-bottom: 17px;
}

.acta-form-field:last-child {
    margin-bottom: 0;
}

.acta-form-field .ppi-label {
    margin-bottom: 0;
}

.acta-field-wide {
    grid-column: 1 / -1;
}

.acta-modal .ppi-content {
    gap: 20px;
}

.acta-modal .ppi-section-body {
    padding: 23px;
}

.acta-modal textarea {
    resize: vertical;
}

.acta-file-input {
    height: auto;
    padding: 10px;
}

.acta-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.acta-file-item {
    padding: 6px 10px;
    color: #334a63;
    background: #edf2f7;
    border: 1px solid #dce5ee;
    border-radius: 5px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* PARTICIPANTES, AGENDA Y COMPROMISOS DINÁMICOS */
.acta-dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 15px;
}

.acta-dynamic-item {
    min-width: 0;
    padding: 17px;
    background: #f7f9fc;
    border: 1px solid #dce3eb;
    border-radius: 9px;
}

.acta-dynamic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.acta-dynamic-item-title {
    margin: 0;
    color: #17365d;
    font-size: 12px;
    font-weight: 800;
}

.acta-dynamic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.acta-dynamic-grid .acta-form-field {
    margin-bottom: 0;
}

.acta-remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 10px;
    color: #a52834;
    background: #fff;
    border: 1px solid #e5c5c9;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.acta-remove-item:hover {
    background: #fff0f1;
}

.acta-form-message {
    padding: 12px 15px;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 7px;
    font-size: 12px;
    white-space: pre-line;
}

.acta-form-message[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .actors-header {
        align-items: stretch;
    }

    .btn-crear-acta {
        width: 100%;
    }

    .acta-modal .ppi-content {
        padding: 13px;
    }

    .acta-modal .ppi-section-body {
        padding: 14px;
    }

    .acta-dynamic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .acta-dynamic-item {
        padding: 13px;
    }
}



.acta-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.acta-preview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #dce3eb;
    border-radius: 9px;
    background: #f4f6f9;
}

.acta-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acta-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(160, 30, 40, .92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.acta-preview-remove:hover {
    background: #a01e28;
}

.acta-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 6px 6px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}





.actas-total {
    padding: 7px 12px;
    color: #17365d;
    background: #edf3f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.actas-cards-grid{
    margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.acta-row{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  transition:.25s;
}

.acta-row:hover{
  border-color:#cbd5e1;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
}

.acta-row-main{
  padding:18px 20px;
}

.acta-row-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.acta-row-title{
  margin:0;
  font-size:16px;
  font-weight:700;
  color:#111827;
}

.acta-row-meta{
  margin-top:4px;
  color:#64748b;
  font-size:13px;
}

.acta-row-stats{
  display:flex;
  gap:22px;
  margin-top:16px;
  flex-wrap:wrap;
}

.acta-row-stats span{
  display:flex;
  align-items:center;
  gap:6px;
  color:#475569;
  font-size:13px;
}

.acta-row-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #f1f5f9;
}

.acta-row-proxima{
  font-size:12px;
  color:#64748b;
}


.acta-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


@media(max-width:640px){

  .acta-row-header,
  .acta-row-footer{
    flex-direction:column;
    align-items:flex-start;
  }
}

.acta-registros-confirmados {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.acta-registro-confirmado {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fafc;
}

.acta-registro-contenido {
  flex: 1;
  min-width: 0;
}

.acta-registro-linea {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 13px;
}

.acta-registro-linea:last-child {
  margin-bottom: 0;
}

.acta-registro-linea strong {
  color: #17365d;
}

.acta-registro-confirmado .acta-remove-item {
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 600px) {
  .acta-registro-confirmado {
    flex-direction: column;
  }

  .acta-registro-confirmado .acta-remove-item {
    align-self: flex-start;
  }
}




/* Contenido de lectura del detalle del acta */
.acta-detail-list {
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acta-detail-list li {
  padding-left: 0.25rem;
  line-height: 1.6;
  color: #334155;
}

.acta-detail-commitments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acta-compromiso-item {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.acta-compromiso-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.acta-compromiso-item p {
  margin: 0.35rem 0;
  line-height: 1.5;
  color: #475569;
  overflow-wrap: anywhere;
}

.acta-detail-observations {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#modalDetalleActa .eval-form-control {
  min-height: 44px;
  display: flex;
  align-items: center;
  background: #f8fafc;
  color: #334155;
  overflow-wrap: anywhere;
}

#modalDetalleActa .acta-preview-grid img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.65rem;
}

#modalDetalleActa .acta-card-anexo {
  display: block;
  overflow: hidden;
  border-radius: 0.65rem;
}


.col-mision {
    white-space: pre-line;
    line-height: 1.6;
}



/* =========================================================
   MODALES DE EVALUADORES
   Compatibilidad con el sistema visual PPI
   ========================================================= */

#evaluador-info .eval-modal {
    max-width: 1000px;
}

#modal-evaluador .eval-assignment-modal {
    max-width: 620px;
}

#evaluador-info .ppi-header-meta strong {
    overflow-wrap: anywhere;
}

#evaluador-info .ppi-field,
#modal-evaluador .ppi-field {
    min-width: 0;
}

#evaluador-info .ppi-field p,
#evaluador-info #contenedor-hv {
    overflow-wrap: anywhere;
    word-break: normal;
}

#evaluador-info #contenedor-hv a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 12px;

    color: var(--ppi-primary);
    background: #ffffff;
    border: 1px solid var(--ppi-border);
    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

#evaluador-info #contenedor-hv a:hover {
    background: var(--ppi-primary-light);
    border-color: #b8c8d9;
}

#modal-evaluador .ppi-content {
    gap: 16px;
}

#modal-evaluador .eval-form-control {
    min-height: 45px;
}

@media (max-width: 600px) {
    #modal-evaluador .eval-assignment-modal {
        max-width: 100%;
    }
}


.cadena-valor-componente {
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.cadena-valor-titulo {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #12345A;
    font-size: 16px;
    font-weight: 700;
}

.cadena-valor-campo {
    margin-bottom: 16px;
}

.cadena-valor-campo:last-child {
    margin-bottom: 0;
}

.cadena-valor-campo strong {
    display: block;
    margin-bottom: 8px;
    color: #285B78;
    font-size: 13px;
    font-weight: 700;
}

.cadena-valor-campo p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.cadena-valor-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
}

.cadena-valor-lista li {
    padding-left: 4px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.cadena-valor-lista .texto-vacio {
    color: #94a3b8;
    list-style: none;
}

.texto-vacio {
    color: #94a3b8;
}