.documents-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.documents-header {
    text-align: center;
    margin-bottom: 50px;
}

.documents-header h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.documents-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 2px;
}

.documents-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.document-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.document-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.8rem;
    color: white;
}

.document-title h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.document-title span {
    color: #6c757d;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.document-content {
    padding: 20px 25px;
}

.document-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.85rem;
}

.meta-item i {
    color: #3498db;
    font-size: 0.9rem;
}

.document-actions {
    display: flex;
    gap: 12px;
}

.btn-preview, .btn-download {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-preview {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-preview:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-download {
    background-color: #27ae60;
    color: white;
    border: 2px solid #27ae60;
}

.btn-download:hover {
    background-color: #219653;
    border-color: #219653;
    transform: translateY(-2px);
}

/* Colores para diferentes tipos de documentos */
.reglamento .document-icon { background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%); }
.responsiva .document-icon { background: linear-gradient(135deg, #a7a2a2 0%, #0aef62 100%); }
.formatos .document-icon { background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); }
.mapa .document-icon { background: linear-gradient(135deg, #FFD166 0%, #F9A826 100%); }
.horarios .document-icon { background: linear-gradient(135deg, #9B5DE5 0%, #7B2CBF 100%); }
.requisitos .document-icon { background: linear-gradient(135deg, #00BBF9 0%, #00A8E8 100%); }
.resultados .document-icon { background: linear-gradient(135deg, #F15BB5 0%, #E11584 100%); }

/* Badge de actualización */
.update-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B6B;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-header h1 {
        font-size: 2.2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    
    .document-header {
        padding: 20px;
    }
    
    .document-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .documents-header h1 {
        font-size: 1.8rem;
    }
    
    .document-header {
        flex-direction: column;
        text-align: center;
    }
    
    .document-title h3 {
        font-size: 1.2rem;
    }
}