* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    padding: 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

.back-link i {
    font-size: 0.9rem;
}

h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    color: #64748b;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.intro-section {
    margin-bottom: 3rem;
}

.intro-section p {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 1.5rem;
    text-align: justify;
}

h2 {
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2 i {
    color: #4f46e5;
    font-size: 1.5rem;
}

.pillars-section {
    margin-bottom: 3rem;
}

.pillar-item {
    background: #f8fafc;
    border-left: 4px solid #4f46e5;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.pillar-item:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateX(4px);
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.pillar-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pillar-content {
    color: #475569;
    line-height: 1.7;
}

.engagement-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.engagement-section h2 {
    margin-top: 0;
}

.engagement-item {
    margin-bottom: 1.5rem;
}

.engagement-item:last-child {
    margin-bottom: 0;
}

.engagement-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engagement-title i {
    color: #4f46e5;
}

.engagement-content {
    color: #475569;
    padding-left: 1.75rem;
}

.vision-section {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.vision-section h2 {
    color: white;
    margin-top: 0;
}

.vision-section h2 i {
    color: rgba(255, 255, 255, 0.9);
}

.vision-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.8;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .pillar-item {
        padding: 1.25rem;
    }
    
    .engagement-section {
        padding: 1.5rem;
    }
    
    .vision-section {
        padding: 1.75rem;
    }
    
    .vision-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.35rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pillar-item {
        padding: 1rem;
    }
    
    .engagement-section {
        padding: 1.25rem;
    }
    
    .vision-section {
        padding: 1.5rem;
    }
}

/* Mode sombre - Media Query */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }

    .container {
        background: #1e293b;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    h1 {
        color: #f1f5f9;
    }
    
    .subtitle {
        color: #94a3b8;
    }

    h2 {
        color: #f1f5f9;
    }
    
    h2 i {
        color: #818cf8;
    }

    .intro-section p {
        color: #cbd5e1;
    }

    .back-link {
        color: #818cf8;
    }

    .back-link:hover {
        color: #a5b4fc;
    }
    
    .pillar-item {
        background: #0f172a;
        border-left-color: #6366f1;
    }
    
    .pillar-number {
        background: #6366f1;
    }
    
    .pillar-title {
        color: #f1f5f9;
    }
    
    .pillar-content {
        color: #cbd5e1;
    }
    
    .engagement-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .engagement-title {
        color: #f1f5f9;
    }
    
    .engagement-title i {
        color: #818cf8;
    }
    
    .engagement-content {
        color: #cbd5e1;
    }
}

/* Mode sombre - Classe */
body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .container {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode h1 {
    color: #f1f5f9;
}

body.dark-mode .subtitle {
    color: #94a3b8;
}

body.dark-mode h2 {
    color: #f1f5f9;
}

body.dark-mode h2 i {
    color: #818cf8;
}

body.dark-mode .intro-section p {
    color: #cbd5e1;
}

body.dark-mode .back-link {
    color: #818cf8;
}

body.dark-mode .back-link:hover {
    color: #a5b4fc;
}

body.dark-mode .pillar-item {
    background: #0f172a;
    border-left-color: #6366f1;
}

body.dark-mode .pillar-number {
    background: #6366f1;
}

body.dark-mode .pillar-title {
    color: #f1f5f9;
}

body.dark-mode .pillar-content {
    color: #cbd5e1;
}

body.dark-mode .engagement-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .engagement-title {
    color: #f1f5f9;
}

body.dark-mode .engagement-title i {
    color: #818cf8;
}

body.dark-mode .engagement-content {
    color: #cbd5e1;
}
