/* ==========================================================================
   ESTILOS INSTITUCIONALES SENA - CPIC | POLÍTICA DE DATOS Y SEGURIDAD SGSPI
   ========================================================================== */

:root {
    --sena-green: #39A900;
    --sena-green-dark: #2e8b00;
    --sena-green-light: rgba(57, 169, 0, 0.1);
    --sena-green-hover: #329600;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.public-policy-body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

.iso-policy-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   1. BARRA SUPERIOR DE NAVEGACIÓN Y RETORNO
   -------------------------------------------------------------------------- */
.iso-top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    margin: 0 -24px 25px -24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.iso-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iso-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background-color: #ffffff;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.iso-back-btn i {
    color: var(--sena-green);
    transition: transform 0.25s ease;
}

.iso-back-btn:hover {
    background-color: var(--sena-green);
    color: #ffffff;
    border-color: var(--sena-green);
    box-shadow: 0 4px 12px rgba(57, 169, 0, 0.25);
    transform: translateX(-2px);
}

.iso-back-btn:hover i {
    color: #ffffff;
    transform: translateX(-3px);
}

.iso-badge-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--sena-green-light);
    color: var(--sena-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--sena-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(57, 169, 0, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 169, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(57, 169, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 169, 0, 0); }
}

.iso-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iso-norm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    background-color: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.iso-norm-tag i {
    color: #0284c7;
}

.iso-norm-tag.sena-tag {
    background-color: var(--sena-green-light);
    color: var(--sena-green-dark);
    border-color: rgba(57, 169, 0, 0.2);
}

.iso-norm-tag.sena-tag i {
    color: var(--sena-green);
}

/* --------------------------------------------------------------------------
   2. HERO BANNER (DISEÑO SOBRIO E INSTITUCIONAL)
   -------------------------------------------------------------------------- */
.iso-hero {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--sena-green);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 30px 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.iso-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.iso-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    background-color: var(--sena-green-light);
    color: var(--sena-green-dark);
    border: 1px solid rgba(57, 169, 0, 0.25);
    border-radius: var(--radius-sm);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.iso-hero-text {
    flex: 1;
}

.iso-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.iso-doc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.iso-doc-meta i {
    color: var(--sena-green);
}

.iso-hero h1 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.iso-hero-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 950px;
    line-height: 1.65;
    margin: 0;
}

.iso-hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. ESTRUCTURA PRINCIPAL (SIDEBAR + MAIN CONTENT)
   -------------------------------------------------------------------------- */
.iso-main-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR STICKY (ÍNDICE)
   -------------------------------------------------------------------------- */
.iso-sidebar {
    position: sticky;
    top: 85px;
}

.iso-sidebar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.iso-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.iso-sidebar-header i {
    color: var(--sena-green);
    font-size: 1.1rem;
}

.iso-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.iso-nav-index {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iso-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-num {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 20px;
}

.nav-text {
    flex: 1;
}

.iso-nav-item:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
    transform: translateX(3px);
}

.iso-nav-item.active {
    background-color: var(--sena-green-light);
    color: var(--sena-green-dark);
    font-weight: 600;
    border-left-color: var(--sena-green);
}

.iso-nav-item.active .nav-num {
    color: var(--sena-green);
}

.iso-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.iso-sidebar-footer i {
    color: var(--sena-green);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   5. TARJETAS DE SECCIÓN (DOCUMENTO)
   -------------------------------------------------------------------------- */
.iso-document-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.iso-section-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 34px 38px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 95px;
    transition: box-shadow 0.2s ease;
}

.iso-section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-title-wrap {
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sena-green-dark);
    background-color: var(--sena-green-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.section-title-wrap h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.section-body-text {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.section-body-text p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.section-body-text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. GRILLAS Y COMPONENTES ESPECÍFICOS
   -------------------------------------------------------------------------- */
.iso-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.info-cell {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.info-cell strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-cell strong i {
    color: var(--sena-green);
    margin-right: 6px;
}

.info-cell p {
    margin: 0 !important;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Lista Legal */
.iso-legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.iso-legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background-color: var(--sena-green-light);
    color: var(--sena-green-dark);
    border-radius: 8px;
    font-size: 1.1rem;
}

.iso-legal-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.iso-legal-list p {
    margin: 0 !important;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. TABLAS TÉCNICAS Y BADGES
   -------------------------------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.iso-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.iso-table thead {
    background-color: #f1f5f9;
}

.iso-table th {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.iso-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.iso-table tbody tr:last-child td {
    border-bottom: none;
}

.iso-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges de Clasificación */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-public {
    background-color: rgba(57, 169, 0, 0.12);
    color: var(--sena-green-dark);
    border: 1px solid rgba(57, 169, 0, 0.3);
}

.badge-private {
    background-color: rgba(2, 132, 199, 0.12);
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-sensitive {
    background-color: rgba(234, 88, 12, 0.12);
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.badge-confidential {
    background-color: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* --------------------------------------------------------------------------
   8. CALLOUTS Y SUBCARDS
   -------------------------------------------------------------------------- */
.iso-callout {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.iso-callout.callout-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
}

.callout-icon {
    font-size: 1.5rem;
    color: #d97706;
}

.callout-content h4 {
    color: #92400e;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.callout-content p {
    color: #78350f;
    font-size: 0.88rem;
    margin: 0 !important;
}

.iso-callout.callout-minor {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid var(--sena-green);
}

.iso-callout.callout-minor .callout-icon {
    color: var(--sena-green-dark);
}

.iso-callout.callout-minor .callout-content h4 {
    color: var(--sena-green-dark);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.iso-callout.callout-minor .callout-content p {
    color: #166534;
    font-size: 0.88rem;
    margin: 0 !important;
}

.iso-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.subcard {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.subcard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.subcard-header i {
    font-size: 1.3rem;
    color: var(--sena-green);
}

.subcard-header h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

.subcard p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-list li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 22px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sena-green);
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   9. LISTA DE FINALIDADES Y DERECHOS ARCO
   -------------------------------------------------------------------------- */
.purposes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.purpose-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
}

.purpose-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sena-green);
    min-width: 32px;
}

.purpose-desc strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.purpose-desc p {
    margin: 0 !important;
    font-size: 0.88rem;
}

.arco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.arco-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.arco-card:hover {
    transform: translateY(-3px);
    border-color: var(--sena-green);
    box-shadow: var(--shadow-sm);
}

.arco-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--sena-green-light);
    color: var(--sena-green);
    border-radius: 50%;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.arco-card h4 {
    font-size: 0.96rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.arco-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 !important;
    line-height: 1.5;
}

/* Retención Documental */
.retention-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.retention-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.retention-list > li > i {
    font-size: 1.3rem;
    color: var(--sena-green);
    margin-top: 4px;
}

.retention-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.retention-list p {
    margin: 0 !important;
    font-size: 0.88rem;
}

/* Canales de Contacto */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--sena-green);
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 0.94rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px !important;
}

.contact-card a {
    display: inline-block;
    color: var(--sena-green-dark);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
.iso-footer {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding: 30px 0 24px 0;
    width: 100%;
}

.iso-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.iso-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.iso-footer-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.iso-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.iso-footer-brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.iso-footer-brand-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.iso-footer-copy {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 580px;
    flex-shrink: 0;
}

.iso-footer-copy-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.iso-footer-legal-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1080px) {
    .iso-main-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    
    .arco-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 900px) {
    .iso-main-layout {
        grid-template-columns: 1fr;
    }

    .iso-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .iso-cards-grid,
    .iso-info-grid {
        grid-template-columns: 1fr;
    }

    .iso-hero {
        padding: 30px 24px;
    }

    .iso-hero-content {
        flex-direction: column;
        gap: 16px;
    }

    .iso-hero h1 {
        font-size: 1.5rem;
    }

    .iso-section-card {
        padding: 24px 20px;
    }

    .iso-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 18px;
    }

    .iso-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .iso-footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .iso-footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .iso-footer-brand-text {
        align-items: center;
        text-align: center;
    }

    .iso-footer-copy {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
}