/* =========================================
   PREMIUM SENA GLASSMORPHISM THEME 
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- Modern SENA Palette --- */
    --sena-green: #39a900;
    --sena-dark-green: #1b5e20;
    --sena-blue: #00324d;
    --sena-deep-blue: #001f3f;
    --sena-orange: #ff6d00;

    /* --- Accents & Gradients --- */
    --accent-glow: #00e676;
    --gradient-primary: linear-gradient(135deg, var(--sena-blue) 0%, var(--sena-dark-green) 100%);
    --gradient-header: linear-gradient(120deg, #00324d, #004d73, #39a900);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));

    /* --- Neutral & Text --- */
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --bg-body: #f0f4f8;
    /* Soft blue-grey */

    /* --- Glassmorphism Basics --- */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --blur-val: 12px;

    /* --- Dimensions & Radius --- */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    /* --- Animations --- */
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(57, 169, 0, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(57, 169, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(57, 169, 0, 0);
    }
}

@keyframes shimmy {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(3px);
    }

    50% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(57, 169, 0, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 50, 77, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   HEADER & HERO - Premium Style
   ========================================= */
header {
    background: var(--gradient-header);
    padding: 6rem 1rem 8rem;
    /* Extra padding bottom for overlap */
    text-align: center;
    color: white;
    position: relative;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
    box-shadow: 0 10px 40px rgba(0, 50, 77, 0.3);
    overflow: hidden;
}

/* Modern Abstract Mesh Background */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

header .sena-logo {
    width: 140px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

header .sena-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Glass Search Bar */
.search-container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchInput:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   CONTAINER & NAVIGATION - Glass Cards
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 5;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: -80px;
    /* Overlap header */
    perspective: 1000px;
}

.nav-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur-val));
    backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: white;
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--sena-green);
    box-shadow: 0 0 0 3px rgba(57, 169, 0, 0.15), var(--glass-shadow);
}

.nav-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nav-card:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-title {
    font-weight: 700;
    color: var(--sena-blue);
    font-size: 1rem;
    line-height: 1.2;
}

/* =========================================
   CONTENT AREA - Main Stage
   ========================================= */
.content-area {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    display: none;
    /* JS toggles */
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-area.active-content {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h3.section-title {
    font-size: 2.5rem;
    color: var(--sena-blue);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 50, 77, 0.1);
}

h3.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--sena-green);
    border-radius: 2px;
}

/* =========================================
   COMPONENTS - Modernized
   ========================================= */

/* Tip Boxes */
.tip-box {
    margin: 30px 0;
    padding: 25px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tip-box:hover {
    transform: translateX(5px);
}

/* Variants */
.tip-info {
    background: linear-gradient(to right, #e3f2fd, #f1f8e9);
    border-left: 6px solid #29b6f6;
}

.tip-warning {
    background: linear-gradient(to right, #fff8e1, #fffde7);
    border-left: 6px solid #ffa726;
}

.tip-danger {
    background: linear-gradient(to right, #ffebee, #fce4ec);
    border-left: 6px solid #ef5350;
}

.tip-success {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9);
    border-left: 6px solid var(--sena-green);
}

.tip-icon {
    font-size: 2rem;
    line-height: 1;
}

.tip-content,
.content-area p,
.timeline-content p,
.process-card p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    display: block;
    width: 100%;
}

.tip-title {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--sena-blue);
    font-weight: 700;
}

.tip-content strong {
    color: var(--sena-blue);
    font-weight: 700;
}

/* =========================================
   PREMIUM COMPONENTS - The WOW Factor
   ========================================= */

/* Premium Alert (For Due Process/Critical Warnings) */
.premium-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 2px solid #feb2b2;
    border-radius: var(--radius-md);
    padding: 40px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 15px 35px rgba(229, 62, 62, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
}

.premium-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #e53e3e;
}

.premium-alert-icon {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-soft 2s infinite;
}

.premium-alert-content h4 {
    color: #c53030;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.premium-alert-content p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Feature Cards (For Grid sections) */
.feature-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: var(--transition-standard);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 50, 77, 0.08);
    border-color: var(--sena-green);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Info Island (Gradient background sections) */
.info-island {
    padding: 40px;
    border-radius: var(--radius-lg);
    color: white;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-island.blue {
    background: linear-gradient(135deg, var(--sena-blue) 0%, #005a8d 100%);
}

.info-island.green {
    background: linear-gradient(135deg, var(--sena-dark-green) 0%, var(--sena-green) 100%);
}

.info-island.orange {
    background: linear-gradient(135deg, #e65100 0%, var(--sena-orange) 100%);
}

.info-island h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.info-island p,
.info-island li {
    color: rgba(255, 255, 255, 0.9);
}

/* Timeline Enhancement */
.timeline {
    position: relative;
    margin: 60px 0;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e0;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid var(--sena-orange);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Red Card Special */
.timeline-item.red-card .timeline-dot {
    border-color: #d32f2f;
}

.timeline-item.red-card .timeline-content {
    background: #fff5f5;
    border-left: 4px solid #d32f2f;
}

/* Process Cards */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.process-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.process-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(57, 169, 0, 0.3);
}

/* Buttons */
.btn-link,
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--sena-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 50, 77, 0.2);
}

.btn-link:hover,
.btn-download:hover {
    background: var(--sena-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(57, 169, 0, 0.3);
}

/* Charts & Stats */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--sena-blue);
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sena-blue);
    line-height: 1;
}

.progress-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: var(--width, 0%);
    transition: width 1s ease-out;
}

/* Chart Table - Redesigned for Responsiveness */
.chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.chart-table th,
.chart-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.chart-table th {
    background: #f8f9fa;
    color: var(--sena-blue);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Time Distribution Cards (alternative for small screens) */
.time-dist-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.time-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--sena-green);
}

.time-card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--sena-blue);
    margin-bottom: 5px;
}

.time-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Activity Pills */
.activity-pill {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f8;
    color: var(--sena-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px;
    border: 1px solid rgba(0, 50, 77, 0.1);
    transition: all 0.2s;
}

.activity-pill:hover {
    background: var(--sena-blue);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--sena-deep-blue);
    color: #cbd5e0;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sena-green), var(--sena-blue), var(--sena-orange));
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
/* =========================================
   NORMATIVE GRID - Premium Interactive Cards
   ========================================= */
.normative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 25px;
    margin-top: 40px;
}

.normative-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    border-top: 5px solid var(--sena-blue);
}

.normative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 50, 77, 0.1);
    border-top-color: var(--sena-green);
}

.norm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.norm-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sena-orange);
    background: #fff3e0;
    padding: 4px 10px;
    border-radius: 20px;
}

.norm-title {
    font-size: 1.2rem;
    color: var(--sena-blue);
    font-weight: 800;
    margin: 0;
}

.norm-summary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s;
}

.normative-card:hover .norm-summary {
    color: var(--sena-blue);
}

.norm-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.normative-card.active .norm-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.normative-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-norm {
    display: inline-block;
    padding: 8px 18px;
    background: var(--sena-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn-norm:hover {
    background: var(--sena-green);
    transform: scale(1.05);
}

/* Specific item colors (optional) */
.normative-card:nth-child(4n+1) {
    border-top-color: var(--sena-blue);
}

.normative-card:nth-child(4n+2) {
    border-top-color: var(--sena-green);
}

.normative-card:nth-child(4n+3) {
    border-top-color: var(--sena-orange);
}

.normative-card:nth-child(4n+4) {
    border-top-color: #9c27b0;
}

/* Action Cards (Generalidades) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    margin-top: 25px;
}

.action-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--sena-blue);
    transition: height 0.3s ease;
    z-index: 0;
    opacity: 0.8;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 50, 77, 0.15);
    border-color: rgba(57, 169, 0, 0.3);
}

.action-card:hover::after {
    height: 100%;
    opacity: 0.03;
}

.action-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.1));
}

.action-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

.action-card strong {
    color: var(--sena-blue);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.action-card:hover strong {
    color: var(--sena-green);
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Specific Accent Colors */
.action-card.competencias::after {
    background: var(--sena-blue);
}

.action-card.proyectos::after {
    background: var(--sena-orange);
}

.action-card.sector::after {
    background: var(--sena-green);
}

.action-card.evidencias::after {
    background: #9c27b0;
}

@media (max-width: 768px) {

    /* --- 1. Timeline Vertical a la Izquierda --- */
    .timeline::before {
        display: none;
        /* Eliminar línea vertical en móvil */
    }

    /* Reset total para items pares e impares */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding: 0;
        margin: 0 0 15px 0;
        text-align: left;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    /* Contenido de la tarjeta */
    .timeline-content {
        width: 100%;
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        /* Sombra más suave */
    }

    /* Indicador de expansión (Flecha) */
    .timeline-content::after {
        content: '▼';
        position: absolute;
        top: 22px;
        right: 18px;
        color: var(--sena-orange);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .timeline-item.expanded .timeline-content::after {
        transform: rotate(180deg);
    }

    /* Header siempre visible */
    .norm-header {
        margin-bottom: 0;
        /* Pegado si está colapsado */
        padding-right: 25px;
        /* Espacio para la flecha */
    }

    .timeline-item.expanded .norm-header {
        margin-bottom: 10px;
    }

    /* Ocultar detalles por defecto (Colapsado) */
    .norm-summary,
    .timeline-content p,
    .btn-norm {
        display: none;
    }

    /* Mostrar detalles al expandir */
    .timeline-item.expanded .norm-summary,
    .timeline-item.expanded .timeline-content p,
    .timeline-item.expanded .btn-norm {
        display: block;
        animation: fadeInDetails 0.3s forwards;
    }

    .timeline-item.expanded .norm-summary {
        margin-bottom: 10px;
        color: var(--sena-blue);
    }

    .timeline-content p {
        text-align: justify;
        margin-bottom: 15px;
        color: #555;
        font-size: 0.95rem;
    }

    @keyframes fadeInDetails {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Eliminar puntos flotantes */
    .timeline-dot {
        display: none;
    }

    /* --- 2. Optimización Tips y Contenedores (Mobile First - Texto Envolvente) --- */
    .tip-box {
        display: block;
        /* Bloque para permitir float */
        padding: 15px;
        margin: 20px 0;
        overflow: hidden;
        /* Clearfix seguro */
        gap: 0;
        /* Resetear gap de flex */
    }

    .tip-icon {
        float: left;
        font-size: 1.8rem;
        margin-right: 12px;
        margin-bottom: 0;
        /* Ajustado para que el texto fluya pegado */
        line-height: 1;
        min-width: auto;
        height: auto;
        padding-top: 2px;
        /* Ajuste visual alineación con título */
    }

    .tip-content {
        display: block;
    }

    .tip-title {
        font-size: 1rem;
        margin-bottom: 8px;
        /* Más espacio antes del texto */
        display: block;
        min-height: 32px;
        /* Altura mínima para cubrir el icono */
        padding-top: 2px;
        /* Alineación fina */
    }

    /* Tarjetas de Procesos y Estadísticas */
    .process-card,
    .stat-card {
        padding: 20px 15px;
    }

    .process-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* --- 3. Header Compacto --- */
    header {
        padding: 2.5rem 1rem 3.5rem;
    }

    header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    header h2 {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* --- 4. Contenido y Layout --- */
    .content-area {
        padding: 20px 15px;
        margin-top: 20px;
        border-radius: 16px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: -50px;
    }

    .nav-card {
        padding: 12px 8px;
        min-height: 100px;
    }

    .nav-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .nav-title {
        font-size: 0.85rem;
    }

    /* --- 5. Tablas vs Tarjetas --- */
    .chart-table {
        display: none;
    }

    .time-dist-cards {
        display: flex;
    }

    /* --- 6. Grid Unificado --- */
    .normative-grid,
    .format-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .normative-card,
    .format-card {
        padding: 18px;
        width: 100%;
    }

    .format-card {
        min-height: auto;
    }
}

/* =========================================
   MODAL - PDF Preview
   ========================================= */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #888;
    width: 98%;
    max-width: 98vw;
    height: 94vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.close-modal {
    color: #555;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--sena-orange);
    text-decoration: none;
    cursor: pointer;
}

.modal-header-title {
    padding: 20px 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sena-blue);
    border-bottom: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
}

#pdfFrame {
    width: 100%;
    flex-grow: 1;
    border: none;
    background: #f0f0f0;
}

.modal-footer-actions {
    padding: 15px 25px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   CHECKLIST INTERACTIVO
   ========================================= */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 10px;
}

.checklist-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.checklist-item.checked {
    background-color: #e8f5e9;
    /* Light Green */
    border-color: rgba(57, 169, 0, 0.3);
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.checklist-item.checked .checkbox-custom {
    background-color: var(--sena-green);
    border-color: var(--sena-green);
    box-shadow: 0 4px 10px rgba(57, 169, 0, 0.3);
}

/* Texto del checklist */
.checklist-item h4 {
    transition: color 0.2s;
    font-size: 1rem;
    color: var(--text-main);
}

.checklist-item.checked h4 {
    color: #4a5568;
    text-decoration: line-through;
    opacity: 0.8;
}

.checklist-item small {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
}