/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores oscuros azulados */
    --primary-dark: #0a0e1a;
    --secondary-dark: #1a1f2e;
    --accent-blue: #16213e;
    --accent-purple: #0f3460;
    --text-primary: #e0e6ed;
    --text-secondary: #a8b4c2;
    --text-accent: #4dabf7;
    --border-color: #2a3446;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1f2e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--gradient);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Logo/Sello */
.header-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid var(--text-accent);
    box-shadow: 
        0 15px 30px rgba(77, 171, 247, 0.25),
        0 0 0 1px rgba(77, 171, 247, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    backdrop-filter: blur(10px);
}

.header-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 25px 50px rgba(77, 171, 247, 0.35),
        0 0 0 1px rgba(77, 171, 247, 0.2);
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.header-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.header-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.95rem;
    color: var(--text-accent);
    font-weight: 500;
}

/* Main */
.main {
    padding: 4rem 0;
}

/* Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-accent), #4dabf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tasks Grid - Proyectos */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.task-card {
    background: var(--accent-purple);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-accent);
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.task-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.task-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.task-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.task-date {
    color: var(--text-secondary);
}

.task-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.task-link:hover {
    color: #60a5fa;
}

/* DOCUMENTOS OFICIALES - BOTONES INDIVIDUALES */
.section.docs {
    padding: 3rem 0;
    background: rgba(26, 31, 46, 0.5);
    margin: 4rem 0;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.section-title-small {
    font-size: 1.8rem !important;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--text-accent), #4dabf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.doc-button {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Estilos específicos para cada botón */
.syllabus-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.lineas-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.doc-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.doc-button:hover::before {
    left: 100%;
}

.doc-button i {
    font-size: 2.8rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.syllabus-btn i {
    background: rgba(255,255,255,0.2);
}

.lineas-btn i {
    background: rgba(255,255,255,0.2);
}

.doc-button div {
    flex: 1;
}

.doc-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.doc-subtitle {
    display: block;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.doc-button:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--text-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .header-image img {
        width: 100px;
        height: 100px;
        max-width: 100px;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doc-button {
        padding: 1.75rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .doc-button i {
        font-size: 2.5rem;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .header {
        padding: 2rem 0;
    }
    
    .header-image img {
        width: 90px;
        height: 90px;
        max-width: 90px;
    }
}